tazpanel diff boot.cgi @ rev 439

index.cgi: restore header in the file viewer; network.cgi: show both disabled start/stop/restart buttons for user.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Apr 07 04:12:24 2015 +0300 (2015-04-07)
parents 958365a41cdb
children f09ef19be78d
line diff
     1.1 --- a/boot.cgi	Mon Apr 06 13:08:02 2015 +0200
     1.2 +++ b/boot.cgi	Tue Apr 07 04:12:24 2015 +0300
     1.3 @@ -345,7 +345,11 @@
     1.4  <form>
     1.5  	<button name="log"     data-icon="logs"   >$(gettext 'Boot logs'     )</button>
     1.6  	<button name="daemons" data-icon="daemons">$(gettext 'Manage daemons')</button>
     1.7 +EOT
     1.8 +		[ -w /boot/grub/menu.lst ] && cat <<EOT
     1.9  	<button name="grub"    data-icon="grub"   >$(gettext 'Boot loader'   )</button>
    1.10 +EOT
    1.11 +		cat <<EOT
    1.12  </form>
    1.13  
    1.14  
    1.15 @@ -373,7 +377,11 @@
    1.16  		$(gettext 'Local startup commands')
    1.17  		<form action="index.cgi">
    1.18  			<input type="hidden" name="file" value="/etc/init.d/local.sh"/>
    1.19 +EOT
    1.20 +		[ -w /etc/init.d/local.sh ] && cat <<EOT
    1.21  			<button name="action" value="edit" data-icon="edit">$(gettext 'Edit')</button>
    1.22 +EOT
    1.23 +		cat <<EOT
    1.24  		</form>
    1.25  	</header>
    1.26  	<pre>$(cat /etc/init.d/local.sh | syntax_highlighter sh)</pre>