From 8bf309b808142d21aade10a40466403adf2001d7 Mon Sep 17 00:00:00 2001
From: Pim van den Berg
Date: Tue, 29 Sep 2009 19:56:44 +0200
Subject: layout improvement based on daniel's patch
The page is divided into a header, content and footer.
It is styled better and the header links to the main page.
Patch from Daniel von Fange (Leancoder):
http://pommi.nethuis.nl/storage/software/cgp/leancoder-css.cgp-v-0-1.patch
---
host.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'host.php')
diff --git a/host.php b/host.php
index aee29d8..e8979aa 100644
--- a/host.php
+++ b/host.php
@@ -9,7 +9,7 @@ $splugin = $_GET['p'];
html_start();
-printf('
« %s
'."\n", $CONFIG['weburl'], $host);
+printf('« %s
'."\n", $CONFIG['weburl'], $host);
$plugins = collectd_plugins($host);
@@ -21,7 +21,7 @@ if(!$plugins) {
# first the ones defined in overview
foreach($CONFIG['overview'] as $plugin) {
if (in_array($plugin, $plugins)) {
- printf("[-] %s
\n", $plugin);
+ printf("[-] %s
\n", $plugin);
graphs_from_plugin($host, $plugin);
}
}
@@ -31,10 +31,10 @@ foreach($plugins as $plugin) {
if (!in_array($plugin, $CONFIG['overview'])) {
$url = sprintf('%s'."\n", $CONFIG['weburl'], $host, $plugin, $plugin);
if ($splugin == $plugin) {
- printf("[-] %s
\n", $url);
+ printf("[-] %s
\n", $url);
graphs_from_plugin($host, $plugin);
} else {
- printf("[+] %s
\n", $url);
+ printf("[+] %s
\n", $url);
}
}
}
--
cgit v1.1