tazpanel diff styles/default/header.html @ rev 420

network: things are now successfull: connect to Ethernet or {new or stored} Wi-Fi, re-connect Ethernet <-> Wi-Fi without previously stopping, start and stop Ethernet or Wi-Fi connections. Seems network part of TazPanel is fully workable now.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 25 00:38:04 2015 +0200 (2015-03-25)
parents 7475f4b95a7b
children 73305834575f
line diff
     1.1 --- a/styles/default/header.html	Sun Jan 18 18:59:01 2015 +0100
     1.2 +++ b/styles/default/header.html	Wed Mar 25 00:38:04 2015 +0200
     1.3 @@ -3,91 +3,85 @@
     1.4  <html lang="${LANG%%_*}">
     1.5  <head>
     1.6  	<title>$TITLE</title>
     1.7 -	<link rel="shortcut icon" href="/styles/$STYLE/favicon.ico" />
     1.8 -$(printf '\t<link rel="stylesheet" type="text/css" href="/%s" />\n' \
     1.9 -	$(cd /var/www/tazpanel; ls styles/$STYLE/*.css))
    1.10 -
    1.11 -	<script type="text/javascript">
    1.12 -		function hideLoading(){document.getElementById("loading").style.display='none';}
    1.13 -		window.onbeforeunload = confirmExit;
    1.14 -		function confirmExit(){return "$(_ 'Confirm break')";}
    1.15 -	</script>
    1.16 +	<link rel="shortcut icon" href="/styles/$STYLE/favicon.ico"/>
    1.17 +$(printf '\t<link rel="stylesheet" type="text/css" href="/%s"/>\n' $(cd /var/www/tazpanel; ls styles/$STYLE/*.css))
    1.18 +$(printf '\t<script type="text/javascript" src="/%s"></script>\n' $(cd /var/www/tazpanel; ls lib/*.js))
    1.19  </head>
    1.20 -<body onload="hideLoading()">
    1.21 +<body>
    1.22 +<script type="text/javascript">setColorTheme(); setBaseFont();</script>
    1.23  
    1.24  <header>
    1.25 -	<h1>$TITLE</h1>
    1.26 +	<h1 data-icon="tazpanel">$TITLE</h1>
    1.27  </header>
    1.28  
    1.29 -<div id="toolbar">
    1.30 -	<div id="icons">
    1.31 -		<a href="/help.cgi">
    1.32 -			<img src="/styles/$STYLE/images/help.png" alt="Help" /></a>
    1.33 -	</div>
    1.34 -	<ul id="menu">
    1.35 -		<li><a href="/">$(gettext 'Panel')</a>
    1.36 -			<ul>
    1.37 -				<li><a href="/index.cgi?terminal"><img
    1.38 -					src="/styles/$STYLE/images/terminal.png" />$(gettext 'Terminal')</a></li>
    1.39 -				<li><a href="/index.cgi?top"><img
    1.40 -					src="/styles/$STYLE/images/monitor.png" />$(gettext 'Processes')</a></li>
    1.41 -				<li><a href="/index.cgi?report"><img
    1.42 -					src="/styles/$STYLE/images/text.png" />$(gettext 'Create Report')</a></li>
    1.43 -				$(for i in menu.d/panel/* ; do [ -f $i ] && sh $i menu $i ; done)
    1.44 -			</ul>
    1.45 -		</li>
    1.46 -		<li><a href="/network.cgi">$(gettext 'Network')</a>
    1.47 -			<ul>
    1.48 -				<li><a href="/index.cgi?file=/etc/network.conf"><img
    1.49 -					src="/styles/$STYLE/images/edit.png" />$(gettext 'Config file')</a></li>
    1.50 -				<li><a href="/network.cgi?eth"><img
    1.51 -					src="/styles/$STYLE/images/ethernet.png" />$(gettext 'Ethernet')</a></li>
    1.52 -				<li><a href="/network.cgi?wifi"><img
    1.53 -					src="/styles/$STYLE/images/wireless.png" />$(gettext 'Wireless')</a></li>
    1.54 -				$(for i in menu.d/network/* ; do [ -f $i ] && sh $i menu $i ; done)
    1.55 -			</ul>
    1.56 -		</li>
    1.57 -		<li><a href="/settings.cgi">$(gettext 'Settings')</a>
    1.58 -			<ul>
    1.59 -				<li><a href="/settings.cgi?users"><img
    1.60 -					src="/styles/$STYLE/images/user.png" />$(gettext 'Users')</a></li>
    1.61 -				<li><a href="/settings.cgi?groups"><img
    1.62 -					src="/styles/$STYLE/images/users.png" />$(gettext 'Groups')</a></li>
    1.63 -				$(for i in menu.d/settings/* ; do [ -f $i ] && sh $i menu $i ; done)
    1.64 -			</ul>
    1.65 -		</li>
    1.66 -		<li><a href="/boot.cgi">$(gettext 'Boot')</a>
    1.67 -			<ul>
    1.68 -				<li><a href="/boot.cgi?grub"><img
    1.69 -					src="/styles/$STYLE/images/tux.png" />$(gettext 'Boot loader')</a></li>
    1.70 -				<li><a href="/boot.cgi?log"><img
    1.71 -					src="/styles/$STYLE/images/text.png" />$(gettext 'Boot logs')</a>
    1.72 -					<ul>
    1.73 -						<li><a href="/boot.cgi?log=kernel">$(gettext 'Kernel messages')</a>
    1.74 -						<li><a href="/boot.cgi?log=boot">$(gettext 'Boot scripts')</a>
    1.75 -						<li><a href="/boot.cgi?log=xlog">$(gettext 'X server')</a>
    1.76 -						<li><a href="/boot.cgi?log=slim">$(gettext 'X session')</a>
    1.77 -					</ul>
    1.78 -				</li>
    1.79 -				<li><a href="/boot.cgi?daemons"><img
    1.80 -					src="/styles/$STYLE/images/recharge.png" />$(gettext 'Manage daemons')</a></li>
    1.81 -				$(for i in menu.d/boot/* ; do [ -f $i ] && sh $i menu $i ; done)
    1.82 -			</ul>
    1.83 -		</li>
    1.84 -		<li><a href="/hardware.cgi">$(gettext 'Hardware')</a>
    1.85 -			<ul>
    1.86 -				<li><a href="/hardware.cgi?modules"><img
    1.87 -					src="/styles/$STYLE/images/tux.png" />$(gettext 'Kernel modules')</a></li>
    1.88 -				<li><a href="/hardware.cgi?detect"><img
    1.89 -					src="/styles/$STYLE/images/monitor.png" />$(gettext 'Detect PCI/USB')</a></li>
    1.90 -				<li><a href="/hardware.cgi#disk"><img
    1.91 -					src="/styles/$STYLE/images/harddisk.png" />$(gettext 'Disks')</a></li>
    1.92 -				$(for i in menu.d/hardware/* ; do [ -f $i ] && sh $i menu $i ; done)
    1.93 -			</ul>
    1.94 -		</li>
    1.95 -		$(for i in menu.d/* ; do [ -f $i ] && sh $i menu $i ; done)
    1.96 -	</ul>
    1.97 -</div>
    1.98 +<nav id="toolbar">
    1.99 + <menu type="toolbar" id="toolbarMenu">
   1.100 +  <li tabindex="1">
   1.101 +   <span>$(gettext 'Panel')</span>
   1.102 +   <menu>
   1.103 +    <li><a data-icon="info"     href="/">$(gettext 'Summary')</a></li>
   1.104 +    <li><a data-icon="terminal" href="/index.cgi?cmd=help">$(gettext 'Terminal')</a></li>
   1.105 +    <li><a data-icon="proc"     href="/index.cgi?top">$(gettext 'Processes')</a></li>
   1.106 +    <li><a data-icon="report"   href="/index.cgi?report">$(gettext 'Create Report')</a></li>
   1.107 +    $(for i in menu.d/panel/* ; do [ -f $i ] && sh $i menu $i ; done)
   1.108 +   </menu>
   1.109 +  </li>
   1.110 +  <li tabindex="2">
   1.111 +   <span>$(gettext 'Network')</span>
   1.112 +   <menu>
   1.113 +    <li><a data-icon="info" href="/network.cgi">$(gettext 'Summary')</a></li>
   1.114 +    <li><a data-icon="conf" href="/index.cgi?file=/etc/network.conf">$(gettext 'Config file')</a></li>
   1.115 +    <li><a data-icon="eth"  href="/network.cgi?eth">$(gettext 'Ethernet')</a></li>
   1.116 +    <li><a data-icon="wifi" href="/network.cgi?wifi">$(gettext 'Wireless')</a></li>
   1.117 +    $(for i in menu.d/network/* ; do [ -f $i ] && sh $i menu $i ; done)
   1.118 +   </menu>
   1.119 +  </li>
   1.120 +  <li tabindex="3">
   1.121 +   <span>$(gettext 'Settings')</span>
   1.122 +   <menu>
   1.123 +    <li><a data-icon="info"  href="/settings.cgi">$(gettext 'Summary')</a></li>
   1.124 +    <li><a data-icon="user"  href="/settings.cgi?users">$(gettext 'Users')</a></li>
   1.125 +    <li><a data-icon="group" href="/settings.cgi?groups">$(gettext 'Groups')</a></li>
   1.126 +    $(for i in menu.d/settings/* ; do [ -f $i ] && sh $i menu $i ; done)
   1.127 +   </menu>
   1.128 +  </li>
   1.129 +  <li tabindex="4">
   1.130 +   <span>$(gettext 'Boot')</span>
   1.131 +   <menu>
   1.132 +    <li><a data-icon="info" href="/boot.cgi">$(gettext 'Summary')</a></li>
   1.133 +    <li><a data-icon="grub" href="/boot.cgi?grub">$(gettext 'Boot loader')</a></li>
   1.134 +    <li><a data-icon="logs" href="/boot.cgi?log">$(gettext 'Boot logs')</a>
   1.135 +     <menu>
   1.136 +      <li><a data-icon="" href="/boot.cgi?log=kernel">$(gettext 'Kernel messages')</a></li>
   1.137 +      <li><a data-icon="" href="/boot.cgi?log=boot">$(gettext 'Boot scripts')</a></li>
   1.138 +      <li><a data-icon="" href="/boot.cgi?log=xlog">$(gettext 'X server')</a></li>
   1.139 +      <li><a data-icon="" href="/boot.cgi?log=slim">$(gettext 'X session')</a></li>
   1.140 +     </menu>
   1.141 +    </li>
   1.142 +    <li><a data-icon="daemons" href="/boot.cgi?daemons">$(gettext 'Manage daemons')</a></li>
   1.143 +    $(for i in menu.d/boot/* ; do [ -f $i ] && sh $i menu $i ; done)
   1.144 +   </menu>
   1.145 +  </li>
   1.146 +  <li tabindex="5">
   1.147 +   <span>$(gettext 'Hardware')</span>
   1.148 +   <menu>
   1.149 +    <li><a data-icon="info"    href="/hardware.cgi">$(gettext 'Summary')</a></li>
   1.150 +    <li><a data-icon="modules" href="/hardware.cgi?modules">$(gettext 'Kernel modules')</a></li>
   1.151 +    <li><a data-icon="detect"  href="/hardware.cgi?detect">$(gettext 'Detect PCI/USB')</a></li>
   1.152 +    <li><a data-icon="hdd"     href="/hardware.cgi#disk">$(gettext 'Disks')</a></li>
   1.153 +    $(for i in menu.d/hardware/* ; do [ -f $i ] && sh $i menu $i ; done)
   1.154 +   </menu>
   1.155 +  </li>
   1.156 +  $(for i in menu.d/* ; do [ -f $i ] && sh $i menu $i ; done)
   1.157 + </menu>
   1.158 + <span id="icons">
   1.159 +  <span id="miscinfo2"></span>
   1.160 +  <span id="miscinfo1"></span>
   1.161 +  <a data-img="help" href="/help.cgi"></a>
   1.162 + </span>
   1.163 +</nav>
   1.164 +<div id="noMenu"></div>
   1.165 +<script type="text/javascript">addMenuHandlers();</script>
   1.166  
   1.167  <!-- Page content -->
   1.168  <div id="content">