tazpanel diff index.cgi @ rev 456

boot.cgi: ISO mine: "table"izing input form.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Apr 13 01:44:08 2015 +0300 (2015-04-13)
parents 169f1ccfb613
children d0dbe11a2060
line diff
     1.1 --- a/index.cgi	Wed Apr 08 15:32:20 2015 +0300
     1.2 +++ b/index.cgi	Mon Apr 13 01:44:08 2015 +0300
     1.3 @@ -177,13 +177,22 @@
     1.4  	<header>
     1.5  		<span data-icon="text">$file</span>
     1.6  EOT
     1.7 -			[ -w "$file" ] && cat <<EOT
     1.8 +			if [ -w "$file" ]; then
     1.9 +				cat <<EOT
    1.10  		<form>
    1.11  			<input type="hidden" name="file" value="$file"/>
    1.12  			<button name="action" value="edit" data-icon="edit">$(_ 'Edit')</button><!--
    1.13  			-->$(file_is_modified $file button)
    1.14  		</form>
    1.15  EOT
    1.16 +			elif [ -r "$file" ]; then
    1.17 +				cat <<EOT
    1.18 +		<form>
    1.19 +			<input type="hidden" name="file" value="$file"/>
    1.20 +			$(file_is_modified $file button)
    1.21 +		</form>
    1.22 +EOT
    1.23 +			fi
    1.24  			cat <<EOT
    1.25  	</header>
    1.26