# HG changeset patch # User Aleksej Bobylev # Date 1428369144 -10800 # Node ID 9aeb8fa5beaaccd1ebf518fa5345cffdc56e4191 # Parent 3b7af62b1a2e6984e9255b8210afac643f91d9d9 index.cgi: restore header in the file viewer; network.cgi: show both disabled start/stop/restart buttons for user. diff -r 3b7af62b1a2e -r 9aeb8fa5beaa index.cgi --- a/index.cgi Tue Apr 07 03:50:06 2015 +0300 +++ b/index.cgi Tue Apr 07 04:12:24 2015 +0300 @@ -174,18 +174,19 @@ cat < +
+ $file EOT [ -w "$file" ] && cat < - $file
$(file_is_modified $file button)
-
EOT cat < +
 EOT
diff -r 3b7af62b1a2e -r 9aeb8fa5beaa network.cgi
--- a/network.cgi	Tue Apr 07 03:50:06 2015 +0300
+++ b/network.cgi	Tue Apr 07 04:12:24 2015 +0300
@@ -579,21 +579,23 @@
 			stop_disabled='disabled'
 		fi
 
+		if [ ! -w /etc/network.conf ]; then
+			start_disabled='disabled'; stop_disabled='disabled'
+		fi
+
 		cat <$(gettext 'Networking')
 
 

$(gettext 'Manage network connections and services')

-EOT - [ -w /etc/network.conf ] && cat < -EOT - cat <$(gettext 'Configuration:')