tazpanel diff hardware.cgi @ rev 525

Add "noheader" flag to get page without header/footer/panel "wrappers" (for pop-ups); strip, minify and gzip scripts and styles.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Aug 20 17:00:19 2015 +0300 (2015-08-20)
parents 3117717c007d
children 3c251737e46b
line diff
     1.1 --- a/hardware.cgi	Mon Jun 08 04:32:19 2015 +0300
     1.2 +++ b/hardware.cgi	Thu Aug 20 17:00:19 2015 +0300
     1.3 @@ -485,14 +485,7 @@
     1.4  <section>
     1.5  	<header>
     1.6  		$(_ 'Filesystems table')
     1.7 -EOT
     1.8 -		[ -w /etc/fstab ] && cat <<EOT
     1.9 -		<form action="index.cgi">
    1.10 -			<input type="hidden" name="file" value="/etc/fstab"/>
    1.11 -			<button name="action" value="edit" data-icon="edit">$(_ 'Edit')</button>
    1.12 -		</form>
    1.13 -EOT
    1.14 -		cat <<EOT
    1.15 +		$(edit_button /etc/fstab)
    1.16  	</header>
    1.17  	<table class="wide zebra center">
    1.18  		<thead>