tazbug rev 54
bigger font for preformated text, small improvment to dashboard plugin
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jan 07 15:35:49 2014 +0100 (2014-01-07) |
parents | 1995b2fd9270 |
children | 05ac6fa12843 |
files | web/plugins/dashboard/dashboard.cgi web/style.css |
line diff
1.1 --- a/web/plugins/dashboard/dashboard.cgi Tue Jan 07 15:22:49 2014 +0100 1.2 +++ b/web/plugins/dashboard/dashboard.cgi Tue Jan 07 15:35:49 2014 +0100 1.3 @@ -17,14 +17,16 @@ 1.4 users=$(ls -1 $PEOPLE | wc -l) 1.5 cat << EOT 1.6 <h2>Users: $users</h2> 1.7 +<div id="tools"> 1.8 + <a href="$script?dashboard">Dashboard</a> 1.9 +</div> 1.10 <pre> 1.11 EOT 1.12 for u in $(ls $PEOPLE) 1.13 do 1.14 - #. ${PEOPLE}/${u}/account.conf 1.15 . "${PEOPLE}/${u}/account.conf" 1.16 cat << EOT 1.17 -<img src="images/avatar.png" /> <a href="?user=$USER">$USER</a> | $NAME 1.18 +$(get_gravatar $MAIL 24) <a href="?user=$USER">$USER</a> | $NAME 1.19 EOT 1.20 # deluser link 1.21 #: <a href="?users&deluser=$USER">$(gettext "delete")</a> 1.22 @@ -34,6 +36,9 @@ 1.23 1.24 *\ dashboard\ *) 1.25 d="Dashboard" 1.26 + users=$(ls -1 $PEOPLE | wc -l) 1.27 + bugs=$(ls -1 $bugdir | wc -l) 1.28 + bugsize=$(du -sh $bugdir | awk '{print $1}') 1.29 header 1.30 html_header 1.31 user_box 1.32 @@ -44,16 +49,15 @@ 1.33 if admin_user; then 1.34 admintools="<a href='?users'>Users</a>" 1.35 fi 1.36 - users=$(ls -1 $PEOPLE | wc -l) 1.37 - bugsize=$(du -sh $bugdir | awk '{print $1}') 1.38 cat << EOT 1.39 <h2>Dashboard</h2> 1.40 <pre> 1.41 Users : $users 1.42 +Bugs : $bugs 1.43 Bugsize : $bugsize 1.44 </pre> 1.45 <div id="tools"> 1.46 -$admintools 1.47 + $admintools 1.48 </div> 1.49 <h3>Admin users</h3> 1.50 EOT
2.1 --- a/web/style.css Tue Jan 07 15:22:49 2014 +0100 2.2 +++ b/web/style.css Tue Jan 07 15:35:49 2014 +0100 2.3 @@ -10,7 +10,7 @@ 2.4 img { border: 0pt none; vertical-align: middle; } 2.5 pre { 2.6 overflow: auto; 2.7 - font-size: 96%; 2.8 + font-size: 98%; 2.9 } 2.10 textarea { width: 100%; } 2.11