tazpanel rev 70

Debug improve behavor and start module search
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 12 03:09:51 2011 +0200 (2011-04-12)
parents 26811cbf12d8
children ba8cd6b7b934
files index.cgi lib/libtazpanel styles/default/style.css
line diff
     1.1 --- a/index.cgi	Tue Apr 12 02:55:40 2011 +0200
     1.2 +++ b/index.cgi	Tue Apr 12 03:09:51 2011 +0200
     1.3 @@ -92,7 +92,6 @@
     1.4  		# Default xHTML content
     1.5  		#
     1.6  		xhtml_header
     1.7 -		
     1.8  		case "$QUERY_STRING" in
     1.9  			gen-locale=*)
    1.10  				new_locale=${QUERY_STRING#gen-locale=} ;;
     2.1 --- a/lib/libtazpanel	Tue Apr 12 02:55:40 2011 +0200
     2.2 +++ b/lib/libtazpanel	Tue Apr 12 03:09:51 2011 +0200
     2.3 @@ -101,7 +101,12 @@
     2.4  xhtml_header() {
     2.5  	cat ${PANEL}$HEADER | sed s/'- %TITLE%'/"$TITLE"/
     2.6  	if [ $DEBUG == "1" ]; then
     2.7 -		echo "<div class='debug'>$CASE $WANT $REQUEST_METHOD ${QUERY_STRING}</div>"
     2.8 +		cat << EOT
     2.9 +<pre class='debug'>
    2.10 +QUERY_STRING="$QUERY_STRING"
    2.11 +CASE="$CASE" WANT="$WANT"
    2.12 +</pre>
    2.13 +EOT
    2.14  	fi
    2.15  }
    2.16  
     3.1 --- a/styles/default/style.css	Tue Apr 12 02:55:40 2011 +0200
     3.2 +++ b/styles/default/style.css	Tue Apr 12 03:09:51 2011 +0200
     3.3 @@ -150,10 +150,15 @@
     3.4  .debug {
     3.5  	position: fixed;
     3.6  	bottom: 0px;
     3.7 -	left: 0px;
     3.8 -	margin: 10px 20px;
     3.9 -	padding: 6px 20px;
    3.10 -	background-color: #e64a00;
    3.11 +	right: 10px;
    3.12 +	left: 10px;
    3.13 +	margin: 5px;
    3.14 +	padding: 4px 10px;
    3.15 +	background-color: #111;
    3.16 +	color: #fff;
    3.17 +	border: 0;
    3.18 +	font-size: 12px;
    3.19 +	opacity: 0.9;
    3.20  }
    3.21  
    3.22  .float-left { float: left;  }