tazpanel diff boot.cgi @ rev 566
hardware.cgi: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 24 22:20:07 2016 +0100 (2016-01-24) |
parents | 9860696beace |
children | 37371a0ba561 |
line diff
1.1 --- a/boot.cgi Mon Nov 23 12:08:42 2015 +0100 1.2 +++ b/boot.cgi Sun Jan 24 22:20:07 2016 +0100 1.3 @@ -24,7 +24,7 @@ 1.4 *) tail -n40;; 1.5 esac 1.6 [ $(wc -l < $1) -gt 40 ] && cat <<EOT 1.7 -<hr/><a data-icon="view" href="index.cgi?file=$1">$(_ 'Show more...')</a> 1.8 +<hr/><a data-icon="@view@" href="index.cgi?file=$1">$(_ 'Show more...')</a> 1.9 EOT 1.10 } 1.11 1.12 @@ -236,18 +236,18 @@ 1.13 case "$1" in 1.14 edit) 1.15 cat <<EOT 1.16 -<a href="index.cgi?file=${3:-/etc/$name.conf}&action=edit" title="${2:-$name configuration} in ${3:-/etc/$name.conf}" data-img="conf"></a> 1.17 +<a href="index.cgi?file=${3:-/etc/$name.conf}&action=edit" title="${2:-$name configuration} in ${3:-/etc/$name.conf}" data-img="@conf@"></a> 1.18 EOT 1.19 ;; 1.20 options) 1.21 key=$(echo -n $name | tr [a-z] [A-Z])_OPTIONS 1.22 cat <<EOT 1.23 -<a href="index.cgi?file=/etc/daemons.conf&action=setvar&var=$key&default=$3" title="${2:-$key}" data-img="opt"></a> 1.24 +<a href="index.cgi?file=/etc/daemons.conf&action=setvar&var=$key&default=$3" title="${2:-$key}" data-img="@opt@"></a> 1.25 EOT 1.26 ;; 1.27 man) 1.28 cat <<EOT 1.29 -<a href="index.cgi?exec=man ${3:-$name}&back=boot.cgi%3Fdaemons" title="${2:-$name Manual}" data-img="man"></a> 1.30 +<a href="index.cgi?exec=man ${3:-$name}&back=boot.cgi%3Fdaemons" title="${2:-$name Manual}" data-img="@man@"></a> 1.31 EOT 1.32 ;; 1.33 help) 1.34 @@ -256,11 +256,11 @@ 1.35 cupsd|dropbear|gpm|slim|wpa_supplicant) help='-h' 1.36 esac 1.37 cat <<EOT 1.38 -<a href="index.cgi?exec=$(which ${3:-$name}) $help&back=boot.cgi%3Fdaemons" title="${2:-$name Help}" data-img="help"></a> 1.39 +<a href="index.cgi?exec=$(which ${3:-$name}) $help&back=boot.cgi%3Fdaemons" title="${2:-$name Help}" data-img="@help@"></a> 1.40 EOT 1.41 ;; 1.42 web) cat <<EOT 1.43 -<a href="${i#$1:$2:}" title="${2:-$name website:} ${i#$1:$2:}" target="_blank" data-img="web"></a> 1.44 +<a href="${i#$1:$2:}" title="${2:-$name website:} ${i#$1:$2:}" target="_blank" data-img="@web@"></a> 1.45 EOT 1.46 ;; 1.47 esac 1.48 @@ -269,8 +269,8 @@ 1.49 echo "</td>" 1.50 if [ "$pid" ]; then 1.51 cat <<EOT 1.52 -<td><span title="$(_ 'Started')" data-img="on"></span></td> 1.53 -<td><a href="?daemons=stop=$name" title="$(_ 'Stop')" data-img="stop"></a></td> 1.54 +<td><span title="$(_ 'Started')" data-img="@on@"></span></td> 1.55 +<td><a href="?daemons=stop=$name" title="$(_ 'Stop')" data-img="@stop@"></a></td> 1.56 <td> 1.57 EOT 1.58 for i in $pid; do 1.59 @@ -280,8 +280,8 @@ 1.60 done 1.61 else 1.62 cat <<EOT 1.63 -<td><span title="$(_ 'Stopped')" data-img="off"></span></td> 1.64 -<td><a href="?daemons=start=$name" title="$(_ 'Start')" data-img="start"></a></td> 1.65 +<td><span title="$(_ 'Stopped')" data-img="@off@"></span></td> 1.66 +<td><a href="?daemons=start=$name" title="$(_ 'Start')" data-img="@start@"></a></td> 1.67 <td>----- 1.68 EOT 1.69 fi 1.70 @@ -324,14 +324,14 @@ 1.71 </table> 1.72 </div> 1.73 <footer> 1.74 - <button type="submit" data-icon="ok">$(_ 'Change')</button> 1.75 + <button type="submit" data-icon="@ok@">$(_ 'Change')</button> 1.76 </footer> 1.77 </section> 1.78 </form> 1.79 1.80 <form action="index.cgi"> 1.81 <input type="hidden" name="file" value="$GRUBMENU"/> 1.82 - <button data-icon="text">$(_ 'View or edit menu.lst')</button> 1.83 + <button data-icon="@text@">$(_ 'View or edit menu.lst')</button> 1.84 </form> 1.85 1.86 1.87 @@ -401,14 +401,14 @@ 1.88 <form method="post" action="?iso" class="wide"> 1.89 <table> 1.90 <tr><td>$(_ 'ISO image file full path') 1.91 - <span data-img="info" title="$(_ 'set /dev/cdrom for a physical CD-ROM')"></span> 1.92 + <span data-img="@info@" title="$(_ 'set /dev/cdrom for a physical CD-ROM')"></span> 1.93 </td> 1.94 <td>$(file_chooser "iso" "$iso")</td></tr> 1.95 <tr><td>$(_ 'Working directory')</td> 1.96 <td>$(dir_chooser "workdir" "$workdir")</td></tr> 1.97 </td></tr> 1.98 <tr><td>$(_ 'Target partition') 1.99 - <span data-img="info" title="$(_ 'For hard disk installation only. Will create /slitaz tree and keep other files. No partitioning and no formatting.')"></span> 1.100 + <span data-img="@info@" title="$(_ 'For hard disk installation only. Will create /slitaz tree and keep other files. No partitioning and no formatting.')"></span> 1.101 </td> 1.102 <td><select name="instdev"> 1.103 <option value="/dev/null">$(_ 'Choose a partition (optional)')</option> 1.104 @@ -423,7 +423,7 @@ 1.105 cat <<EOT 1.106 </select></td></tr> 1.107 <tr><td>$(_ 'USB key device') 1.108 - <span data-img="info" title="$(_ 'For USB boot key only. Will erase the full device.')"></span> 1.109 + <span data-img="@info@" title="$(_ 'For USB boot key only. Will erase the full device.')"></span> 1.110 </td> 1.111 <td><select name="usbkeydev"> 1.112 <option value="/dev/null">$(_ 'Choose a USB key (optional)')</option> 1.113 @@ -460,7 +460,7 @@ 1.114 fi 1.115 1.116 cat <<EOT 1.117 - <button data-icon="cd" name="mine">$(_ 'Mine')</button> 1.118 + <button data-icon="@cd@" name="mine">$(_ 'Mine')</button> 1.119 </footer> 1.120 </form> 1.121 </section> 1.122 @@ -478,15 +478,15 @@ 1.123 <p>$(_ 'Everything that happens before user login')</p> 1.124 1.125 <form> 1.126 - <button name="log" data-icon="logs" >$(_ 'Boot logs')</button> 1.127 - <button name="syslog" data-icon="logs" >$(_ 'System logs')</button> 1.128 - <button name="daemons" data-icon="daemons" data-root>$(_ 'Manage daemons')</button> 1.129 + <button name="log" data-icon="@logs@">$(_ 'Boot logs')</button> 1.130 + <button name="syslog" data-icon="@logs@">$(_ 'System logs')</button> 1.131 + <button name="daemons" data-icon="@daemons@" data-root>$(_ 'Manage daemons')</button> 1.132 EOT 1.133 [ "$REMOTE_USER" == "root" -a -x /usr/bin/taziso ] && cat <<EOT 1.134 - <button name="iso" data-icon="cd" >$(_ 'ISO mine')</button> 1.135 + <button name="iso" data-icon="@cd@">$(_ 'ISO mine')</button> 1.136 EOT 1.137 [ -w /boot/grub/menu.lst ] && cat <<EOT 1.138 - <button name="grub" data-icon="grub" >$(_ 'Boot loader')</button> 1.139 + <button name="grub" data-icon="@grub@">$(_ 'Boot loader')</button> 1.140 EOT 1.141 cat <<EOT 1.142 </form> 1.143 @@ -497,9 +497,9 @@ 1.144 <form action="index.cgi" class="wide"> 1.145 <table> 1.146 <tr><td>$(_ 'Main configuration file:') <b>rcS.conf</b></td> 1.147 - <td><button name="file" value="/etc/rcS.conf" data-icon="view">$(_ 'View')</button></td></tr> 1.148 + <td><button name="file" value="/etc/rcS.conf" data-icon="@view@">$(_ 'View')</button></td></tr> 1.149 <tr><td>$(_ 'Login manager settings:') <b>slim.conf</b></td> 1.150 - <td><button name="file" value="/etc/slim.conf" data-icon="view">$(_ 'View')</button></td></tr> 1.151 + <td><button name="file" value="/etc/slim.conf" data-icon="@view@">$(_ 'View')</button></td></tr> 1.152 </table> 1.153 </form> 1.154 </section>