tazpanel rev 367
Reorder boot & network menus
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jun 30 09:56:45 2013 +0200 (2013-06-30) |
parents | d821006e0279 |
children | 448b0f6d7311 |
files | boot.cgi styles/default/header.html |
line diff
1.1 --- a/boot.cgi Sat Jun 29 21:29:35 2013 +0200 1.2 +++ b/boot.cgi Sun Jun 30 09:56:45 2013 +0200 1.3 @@ -107,6 +107,7 @@ 1.4 cfg="" 1.5 grep -qi "^${name}_OPTIONS=" /etc/daemons.conf && cfg="options|$cfg" 1.6 [ -s /etc/$name.conf ] && cfg="edit|$cfg" 1.7 + [ -s /etc/$name/$name.conf ] && cfg="edit::/etc/$name/$name.conf|$cfg" 1.8 [ -n "$(which $name)" ] && cfg="man|help|$cfg" 1.9 case "$name" in 1.10 firewall)
2.1 --- a/styles/default/header.html Sat Jun 29 21:29:35 2013 +0200 2.2 +++ b/styles/default/header.html Sun Jun 30 09:56:45 2013 +0200 2.3 @@ -41,12 +41,12 @@ 2.4 </li> 2.5 <li><a href="/network.cgi">$(gettext 'Network')</a> 2.6 <ul> 2.7 + <li><a href="/index.cgi?file=/etc/network.conf"><img 2.8 + src="/styles/default/images/edit.png" />$(gettext 'Config file')</a></li> 2.9 <li><a href="/network.cgi?eth"><img 2.10 src="/styles/default/images/ethernet.png" />$(gettext 'Ethernet')</a></li> 2.11 <li><a href="/network.cgi?wifi"><img 2.12 src="/styles/default/images/wireless.png" />$(gettext 'Wireless')</a></li> 2.13 - <li><a href="/index.cgi?file=/etc/network.conf"><img 2.14 - src="/styles/default/images/edit.png" />$(gettext 'Config file')</a></li> 2.15 $(for i in menu.d/network/* ; do [ -f $i ] && . $i menu $i ; done) 2.16 </ul> 2.17 </li> 2.18 @@ -61,12 +61,12 @@ 2.19 </li> 2.20 <li><a href="/boot.cgi">$(gettext 'Boot')</a> 2.21 <ul> 2.22 + <li><a href="/boot.cgi?grub"><img 2.23 + src="/styles/default/images/tux.png" />$(gettext 'Boot loader')</a></li> 2.24 <li><a href="/boot.cgi?log"><img 2.25 src="/styles/default/images/text.png" />$(gettext 'Boot logs')</a></li> 2.26 <li><a href="/boot.cgi?daemons"><img 2.27 src="/styles/default/images/recharge.png" />$(gettext 'Manage daemons')</a></li> 2.28 - <li><a href="/boot.cgi?grub"><img 2.29 - src="/styles/default/images/tux.png" />$(gettext 'Boot loader')</a></li> 2.30 $(for i in menu.d/boot/* ; do [ -f $i ] && . $i menu $i ; done) 2.31 </ul> 2.32 </li>