tazbug rev 99
Small change to dashboard plugin
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Feb 10 15:27:11 2017 +0100 (2017-02-10) |
parents | 60234e42d5c4 |
children | bcaad2bc76c8 |
files | web/plugins/dashboard/dashboard.cgi |
line diff
1.1 --- a/web/plugins/dashboard/dashboard.cgi Fri Feb 10 14:54:49 2017 +0100 1.2 +++ b/web/plugins/dashboard/dashboard.cgi Fri Feb 10 15:27:11 2017 +0100 1.3 @@ -37,10 +37,21 @@ 1.4 Bugs : $bugs 1.5 Bugsize : $bugsize 1.6 </pre> 1.7 - 1.8 -<h3>Admin users</h3> 1.9 EOT 1.10 + # List all plugins 1.11 + cat << EOT 1.12 +<h3>$(gettext "Plugins")</h3> 1.13 +<pre> 1.14 +EOT 1.15 + for p in $(ls -1 $plugins) 1.16 + do 1.17 + . $plugins/$p/$p.conf 1.18 + echo "<a href='?$p'>$PLUGIN</a> - $SHORT_DESC" 1.19 + done 1.20 + echo '</pre>' 1.21 + 1.22 # Get the list of administrators 1.23 + echo "<h3>Admin users</h3>" 1.24 for u in $(ls $PEOPLE) 1.25 do 1.26 user=${u} 1.27 @@ -48,16 +59,5 @@ 1.28 echo "<a href='?user=$u'>$u</a>" 1.29 fi 1.30 done 1.31 - cat << EOT 1.32 -<h3>$(gettext "Plugins")</h3> 1.33 -<pre> 1.34 -EOT 1.35 - # List all plugins 1.36 - for p in $(ls -1 $plugins) 1.37 - do 1.38 - . $plugins/$p/$p.conf 1.39 - echo "<a href='?$p'>$PLUGIN</a> - $SHORT_DESC" 1.40 - done 1.41 - echo '</pre>' 1.42 html_footer && exit 0 1.43 fi