aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPim van den Berg2009-10-11 12:24:32 +0200
committerPim van den Berg2009-10-11 12:24:32 +0200
commit48271f4634aa6cfc3015858633a037138c70a88d (patch)
tree030d5909ad43a86a7b2e58e78374bdfb0928bd16
parentchange 6 hour link on detail page to 8 hour (diff)
downloadapt-panopticon_cgp-48271f4634aa6cfc3015858633a037138c70a88d.zip
apt-panopticon_cgp-48271f4634aa6cfc3015858633a037138c70a88d.tar.gz
apt-panopticon_cgp-48271f4634aa6cfc3015858633a037138c70a88d.tar.bz2
apt-panopticon_cgp-48271f4634aa6cfc3015858633a037138c70a88d.tar.xz
replace plus and minus on host page by images
-rw-r--r--host.php6
-rw-r--r--layout/minus.gifbin0 -> 112 bytes
-rw-r--r--layout/plus.gifbin0 -> 116 bytes
3 files changed, 3 insertions, 3 deletions
diff --git a/host.php b/host.php
index f98ca99..3bf3698 100644
--- a/host.php
+++ b/host.php
@@ -21,7 +21,7 @@ if(!$plugins) {
21# first the ones defined in overview 21# first the ones defined in overview
22foreach($CONFIG['overview'] as $plugin) { 22foreach($CONFIG['overview'] as $plugin) {
23 if (in_array($plugin, $plugins)) { 23 if (in_array($plugin, $plugins)) {
24 printf("<h3>[-] %s</h3>\n", $plugin); 24 printf("<h3><img src=\"%s/layout/minus.gif\" alt=\"[-]\"> %s</h3>\n", $CONFIG['weburl'], $plugin);
25 graphs_from_plugin($host, $plugin); 25 graphs_from_plugin($host, $plugin);
26 } 26 }
27} 27}
@@ -31,10 +31,10 @@ foreach($plugins as $plugin) {
31 if (!in_array($plugin, $CONFIG['overview'])) { 31 if (!in_array($plugin, $CONFIG['overview'])) {
32 $url = sprintf('<a href="%s/host.php?h=%s&p=%s">%s</a>'."\n", $CONFIG['weburl'], $host, $plugin, $plugin); 32 $url = sprintf('<a href="%s/host.php?h=%s&p=%s">%s</a>'."\n", $CONFIG['weburl'], $host, $plugin, $plugin);
33 if ($splugin == $plugin) { 33 if ($splugin == $plugin) {
34 printf("<h3>[-] %s</h3>\n", $url); 34 printf("<h3><img src=\"%s/layout/minus.gif\" alt=\"[-]\"> %s</h3>\n", $CONFIG['weburl'], $url);
35 graphs_from_plugin($host, $plugin); 35 graphs_from_plugin($host, $plugin);
36 } else { 36 } else {
37 printf("<h3>[+] %s</h3>\n", $url); 37 printf("<h3><img src=\"%s/layout/plus.gif\" alt=\"[+]\"> %s</h3>\n", $CONFIG['weburl'], $url);
38 } 38 }
39 } 39 }
40} 40}
diff --git a/layout/minus.gif b/layout/minus.gif
new file mode 100644
index 0000000..6a7c99e
--- /dev/null
+++ b/layout/minus.gif
Binary files differ
diff --git a/layout/plus.gif b/layout/plus.gif
new file mode 100644
index 0000000..d289e4f
--- /dev/null
+++ b/layout/plus.gif
Binary files differ