tazpanel diff boot.cgi @ rev 429
hardware.cgi: loop zone scroll
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 05 20:50:25 2015 +0000 (2015-04-05) |
parents | 299f204b8f1f |
children | 958365a41cdb |
line diff
1.1 --- a/boot.cgi Tue Mar 24 03:39:08 2015 +0200 1.2 +++ b/boot.cgi Sun Apr 05 20:50:25 2015 +0000 1.3 @@ -18,14 +18,13 @@ 1.4 1.5 # Print last 40 lines of given file with "more" link 1.6 1.7 -loghead() 1.8 -{ 1.9 +loghead() { 1.10 case $2 in 1.11 htmlize) tail -n40 $1 | htmlize;; 1.12 - *) tail -n40;; 1.13 + *) tail -n40;; 1.14 esac 1.15 [ $(wc -l < $1) -gt 40 ] && cat <<EOT 1.16 -<hr/><a href="/index.cgi?file=$1">$(gettext 'Show more...')</a> 1.17 +<hr/><a data-icon="view" href="/index.cgi?file=$1">$(gettext 'Show more...')</a> 1.18 EOT 1.19 } 1.20 1.21 @@ -365,23 +364,19 @@ 1.22 1.23 <section> 1.24 <header>$(gettext 'Kernel cmdline')</header> 1.25 - <div> 1.26 - <pre>$(cat /proc/cmdline)</pre> 1.27 - </div> 1.28 + <pre>$(cat /proc/cmdline)</pre> 1.29 </section> 1.30 1.31 1.32 <section> 1.33 - <header>$(gettext 'Local startup commands')</header> 1.34 - <div> 1.35 - <pre>$(cat /etc/init.d/local.sh | syntax_highlighter sh)</pre> 1.36 - </div> 1.37 - <footer> 1.38 + <header> 1.39 + $(gettext 'Local startup commands') 1.40 <form action="index.cgi"> 1.41 <input type="hidden" name="file" value="/etc/init.d/local.sh"/> 1.42 - <button name="action" value="edit" data-icon="edit">$(gettext 'Edit script')</button> 1.43 + <button name="action" value="edit" data-icon="edit">$(gettext 'Edit')</button> 1.44 </form> 1.45 - </footer> 1.46 + </header> 1.47 + <pre>$(cat /etc/init.d/local.sh | syntax_highlighter sh)</pre> 1.48 </section> 1.49 EOT 1.50 ;;