tazpanel diff index.cgi @ rev 586

Add zh_CN to Makefile LINGUAS
author Paul Issott <paul@slitaz.org>
date Fri Apr 15 20:58:24 2016 +0100 (2016-04-15)
parents a01cde2b84e4
children 6e5673c7fa08
line diff
     1.1 --- a/index.cgi	Tue Dec 08 13:38:20 2015 +0200
     1.2 +++ b/index.cgi	Fri Apr 15 20:58:24 2016 +0100
     1.3 @@ -34,7 +34,7 @@
     1.4  				diff -abu $tmp$1 $1 | sed "s|$tmp||"
     1.5  				rm -rf $tmp;;
     1.6  			button)
     1.7 -				echo -n '<button name="action" value="diff" data-icon="diff">'$(_ 'Differences')'</button>';;
     1.8 +				echo -n '<button name="action" value="diff" data-icon="@diff@">'$(_ 'Differences')'</button>';;
     1.9  		esac
    1.10  		break
    1.11  	done
    1.12 @@ -44,7 +44,7 @@
    1.13  # OK status in table
    1.14  
    1.15  ok_status_t() {
    1.16 -	echo '<td><span class="diff-add" data-img="ok"></span></td></tr>'
    1.17 +	echo '<td><span class="diff-add" data-img="@ok@"></span></td></tr>'
    1.18  }
    1.19  
    1.20  
    1.21 @@ -180,10 +180,10 @@
    1.22  				cat <<EOT
    1.23  <section>
    1.24  	<header>
    1.25 -		<span data-icon="edit">${title:-$file}</span>
    1.26 +		<span data-icon="@edit@">${title:-$file}</span>
    1.27  		<form id="editform" method="post" action="?file=$file">
    1.28 -			<button data-icon="save">$(_ 'Save')</button>
    1.29 -			<button name="action" value="diff" data-icon="diff">$(_ 'Differences')</button>
    1.30 +			<button data-icon="@save@">$(_ 'Save')</button>
    1.31 +			<button name="action" value="diff" data-icon="@diff@">$(_ 'Differences')</button>
    1.32  		</form>
    1.33  		$(back_button)
    1.34  	</header>
    1.35 @@ -202,7 +202,7 @@
    1.36  	<form method="post" action="?file=$file" class="nogap">
    1.37  		<input type="hidden" name="var" value="$(GET var)">
    1.38  		<input type="text" name="content" value="${data:-$(GET default)}">
    1.39 -		<button type="submit" data-icon="save">$(_ 'Save')</button>
    1.40 +		<button type="submit" data-icon="@save@">$(_ 'Save')</button>
    1.41  	</form>
    1.42  </section>
    1.43  EOT
    1.44 @@ -232,16 +232,16 @@
    1.45  			cat <<EOT
    1.46  <section class="bigNoScrollable">
    1.47  	<header>
    1.48 -		<span data-icon="text">${title:-$file}</span>
    1.49 +		<span data-icon="@text@">${title:-$file}</span>
    1.50  EOT
    1.51  			if [ -w "$file" ]; then
    1.52  				cat <<EOT
    1.53  		<form>
    1.54  			<input type="hidden" name="file" value="$file"/>
    1.55  			<button onclick='editFile(); return false' id="edit_button" 
    1.56 -				data-icon="edit">$(_ 'Edit')</button><!--
    1.57 +				data-icon="@edit@">$(_ 'Edit')</button><!--
    1.58  			--><button onclick='saveFile("$file", "$title"); return false' id="save_button" 
    1.59 -				data-icon="save" style="display:none">$(_ 'Save')</button><!--
    1.60 +				data-icon="@save@" style="display:none">$(_ 'Save')</button><!--
    1.61  			-->$(file_is_modified $file button)
    1.62  		</form>
    1.63  EOT
    1.64 @@ -312,7 +312,7 @@
    1.65  <section>
    1.66  	<header>
    1.67  		$(_ 'History')
    1.68 -		<form><button name="terminal" data-icon="terminal">$(_ 'Back')</button></form>
    1.69 +		<form><button name="terminal" data-icon="@terminal@">$(_ 'Back')</button></form>
    1.70  	</header>
    1.71  	<form>
    1.72  		<input type="hidden" name="path" value="$path"/>
    1.73 @@ -326,7 +326,7 @@
    1.74  	cmd = $0;
    1.75  	gsub("%",  "%25", cmd); gsub("+",  "%2B", cmd); gsub(" ",    "+",   cmd);
    1.76  	gsub("\"", "%22", cmd); gsub("!",  "%21", cmd); gsub(q, "%27", cmd);
    1.77 -	printf("<a data-icon=\"run\" href=\"?cmd=%s&path=%s\">%s</a> ", cmd, path, run);
    1.78 +	printf("<a data-icon=\"@run@\" href=\"?cmd=%s&path=%s\">%s</a> ", cmd, path, run);
    1.79  	printf("<input type=\"checkbox\" name=\"rm\" value=\"%d\" id=\"hist%d\">", num, num);
    1.80  	printf("<label for=\"hist%d\">%s</label>\n", num, $0);
    1.81  	num++;
    1.82 @@ -335,7 +335,7 @@
    1.83  			cat <<EOT
    1.84  		</pre>
    1.85  		<footer>
    1.86 -			<button name="rmhistory" data-icon="remove">$(_ 'Clear')</button>
    1.87 +			<button name="rmhistory" data-icon="@remove@">$(_ 'Clear')</button>
    1.88  		</footer>
    1.89  	</form>
    1.90  </section>
    1.91 @@ -395,8 +395,8 @@
    1.92  </section>
    1.93  
    1.94  <form>
    1.95 -	<button name="termsettings" data-icon="settings">$(_ 'Settings')</button>
    1.96 -	<button name="cmd" value="history" data-icon="history">$(_ 'History')</button>
    1.97 +	<button name="termsettings" data-icon="@settings@">$(_ 'Settings')</button>
    1.98 +	<button name="cmd" value="history" data-icon="@history@">$(_ 'History')</button>
    1.99  </form>
   1.100  
   1.101  <script type="text/javascript">
   1.102 @@ -467,7 +467,7 @@
   1.103  	<header>
   1.104  		$(_ 'Terminal settings')
   1.105  		<form>
   1.106 -			<button name="terminal" data-icon="terminal">$(_ 'Terminal')</button>
   1.107 +			<button name="terminal" data-icon="@terminal@">$(_ 'Terminal')</button>
   1.108  		</form>
   1.109  	</header>
   1.110  	<pre class="term $pal" style="height: auto; font-family: '$font'">
   1.111 @@ -500,7 +500,7 @@
   1.112  				printf("<option value=\"%s\"%s>%s</option>\n", $0, ($0 == pal)?" selected":"", $0)
   1.113  				}')
   1.114  			</select>
   1.115 -			<button name="termsettings" data-icon="ok">$(_ 'Apply')</button>
   1.116 +			<button name="termsettings" data-icon="@ok@">$(_ 'Apply')</button>
   1.117  		</form>
   1.118  	</footer>
   1.119  </section>
   1.120 @@ -546,7 +546,7 @@
   1.121  		$(ps auxww | sed "/^ *$curpid /!d")
   1.122  		<form>
   1.123  		<input type="hidden" name="top"/>
   1.124 -		<button type="submit" data-icon="remove" name="kill" value="$curpid">$(_ 'Kill')</button>
   1.125 +		<button type="submit" data-icon="@remove@" name="kill" value="$curpid">$(_ 'Kill')</button>
   1.126  		</form>
   1.127  	</header>
   1.128  <form>
   1.129 @@ -788,7 +788,7 @@
   1.130  		</tbody>
   1.131  	</table>
   1.132  	<footer>
   1.133 -		<form><button name="file" value="$output" data-icon="view">$(_ 'View')</button></form>
   1.134 +		<form><button name="file" value="$output" data-icon="@view@">$(_ 'View')</button></form>
   1.135  	</footer>
   1.136  </section>
   1.137  
   1.138 @@ -810,9 +810,9 @@
   1.139  
   1.140  		cat <<EOT
   1.141  <form class="nogap"><!--
   1.142 -	--><button name="terminal" data-icon="terminal">$(_ 'Terminal')</button><!--
   1.143 -	--><button name="top"      data-icon="proc"    >$(_ 'Process activity')</button><!--
   1.144 -	--><button name="report"   data-icon="report"  data-root>$(_ 'Create a report')</button><!--
   1.145 +	--><button name="terminal" data-icon="@terminal@">$(_ 'Terminal')</button><!--
   1.146 +	--><button name="top"      data-icon="@proc@">$(_ 'Process activity')</button><!--
   1.147 +	--><button name="report"   data-icon="@report@" data-root>$(_ 'Create a report')</button><!--
   1.148  --></form>
   1.149  
   1.150  <section>
   1.151 @@ -839,7 +839,7 @@
   1.152  	<header>
   1.153  		$(_ 'Network status')
   1.154  		<form action="network.cgi">
   1.155 -			<button data-icon="wifi">$(_ 'Network')</button>
   1.156 +			<button data-icon="@wifi@">$(_ 'Network')</button>
   1.157  		</form>
   1.158  	</header>
   1.159  	$(list_network_interfaces)
   1.160 @@ -850,7 +850,7 @@
   1.161  	<header>
   1.162  		$(_ 'Filesystem usage statistics')
   1.163  		<form action="hardware.cgi">
   1.164 -			<button data-icon="hdd">$(_ 'Disks')</button>
   1.165 +			<button data-icon="@hdd@">$(_ 'Disks')</button>
   1.166  		</form>
   1.167  	</header>
   1.168  	<table class="wide zebra center">
   1.169 @@ -861,7 +861,7 @@
   1.170  		df -h | grep ^/dev | while read fs size used av pct mp; do
   1.171  				cat <<EOT
   1.172  			<tr>
   1.173 -				<td><span data-icon="hdd">${fs#/dev/}</span></td>
   1.174 +				<td><span data-icon="@hdd@">${fs#/dev/}</span></td>
   1.175  				<td>$(blkid $fs | sed '/LABEL=/!d;s/.*LABEL="\([^"]*\).*/\1/')</td>
   1.176  				<td>$(blkid $fs | sed '/TYPE=/!d;s/.*TYPE="\([^"]*\).*/\1/')</td>
   1.177  				<td>$size</td>
   1.178 @@ -884,7 +884,7 @@
   1.179  	<header>
   1.180  		$(_ 'Panel Activity')
   1.181  		<form>
   1.182 -			<button name="file" value="$LOG_FILE" data-icon="view">$(_ 'View')</button>
   1.183 +			<button name="file" value="$LOG_FILE" data-icon="@view@">$(_ 'View')</button>
   1.184  		</form>
   1.185  	</header>
   1.186  	<div>