tazinst rev 46 3.98

Slightly remake TazPanel menu to match new TazPanel menu style.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 25 00:53:57 2015 +0200 (2015-03-25)
parents 43d6867bea03
children a37d3f4dd5f0
files installer.cgi
line diff
     1.1 --- a/installer.cgi	Mon Mar 23 17:44:14 2015 +0100
     1.2 +++ b/installer.cgi	Wed Mar 25 00:53:57 2015 +0200
     1.3 @@ -2,7 +2,7 @@
     1.4  #
     1.5  # Main CGI interface for Tazinst, the SliTaz installer.
     1.6  #
     1.7 -# Copyright (C) 2012-2014 SliTaz GNU/Linux - BSD License
     1.8 +# Copyright (C) 2012-2015 SliTaz GNU/Linux - BSD License
     1.9  #
    1.10  # Authors : Dominique Corbex <domcox@slitaz.org>
    1.11  #
    1.12 @@ -11,7 +11,7 @@
    1.13  # restricted path
    1.14  PATH="/usr/sbin:/usr/bin:/sbin:/bin"
    1.15  
    1.16 -VERSION=3.96
    1.17 +VERSION=3.98
    1.18  
    1.19  # Common functions from libtazpanel
    1.20  . lib/libtazpanel
    1.21 @@ -34,14 +34,18 @@
    1.22  # menu
    1.23  #------
    1.24  case "$1" in
    1.25 -menu)	[ "$REMOTE_USER" == "root" ] && cat << EOT
    1.26 -<li><a href="/installer.cgi">$(gettext 'Install')</a>
    1.27 -	<ul>
    1.28 -		<li><a href="/installer.cgi?page=menu_install"><img
    1.29 -			src="/styles/default/images/tux.png" />$(gettext 'Install SliTaz')</a></li>
    1.30 -		<li><a href="/installer.cgi?page=menu_upgrade"><img
    1.31 -			src="/styles/default/images/recharge.png" />$(gettext 'Upgrade system')</a></li>
    1.32 -	</ul>
    1.33 +	menu)
    1.34 +		[ "$REMOTE_USER" == "root" ] && cat << EOT
    1.35 +<li tabindex="0">
    1.36 +	<span>$(gettext 'Install')</span>
    1.37 +	<menu>
    1.38 +		<li><a data-icon="install"
    1.39 +			href="/installer.cgi">$(gettext 'Install')</a></li>
    1.40 +		<li><a data-icon="slitaz"
    1.41 +			href="/installer.cgi?page=menu_install">$(gettext 'Install SliTaz')</a></li>
    1.42 +		<li><a data-icon="upgrade"
    1.43 +			href="/installer.cgi?page=menu_upgrade">$(gettext 'Upgrade system')</a></li>
    1.44 +	</menu>
    1.45  </li>
    1.46  EOT
    1.47  	exit