aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPim van den Berg2014-08-14 21:03:13 +0200
committerPim van den Berg2014-08-14 21:03:13 +0200
commite71c2a92269d123228f4803a4777a5452045d6b8 (patch)
tree9bd34852544fa910e9b7da9a185ab015f48c626c
parenttype/base: fix undefined variable rrd_url when graph_type != canvas (diff)
downloadapt-panopticon_cgp-e71c2a92269d123228f4803a4777a5452045d6b8.zip
apt-panopticon_cgp-e71c2a92269d123228f4803a4777a5452045d6b8.tar.gz
apt-panopticon_cgp-e71c2a92269d123228f4803a4777a5452045d6b8.tar.bz2
apt-panopticon_cgp-e71c2a92269d123228f4803a4777a5452045d6b8.tar.xz
inc/html: add deprecation message about collectd 4
-rw-r--r--inc/html.inc.php13
-rw-r--r--layout/style.css8
2 files changed, 19 insertions, 2 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php
index 117d61d..161af73 100644
--- a/inc/html.inc.php
+++ b/inc/html.inc.php
@@ -58,7 +58,7 @@ EOT;
58 58
59 if(!function_exists('json_decode')) { 59 if(!function_exists('json_decode')) {
60 echo <<<EOT 60 echo <<<EOT
61<div id="warnheader"> 61<div class="warnheader">
62 Your php version doesn't support <a href="http://php.net/json">JSON</a>. Your graphs would have looked more beautiful if it did. 62 Your php version doesn't support <a href="http://php.net/json">JSON</a>. Your graphs would have looked more beautiful if it did.
63</div> 63</div>
64 64
@@ -66,6 +66,17 @@ EOT;
66 66
67 } 67 }
68 68
69 if($CONFIG['version'] == 4) {
70 echo <<<EOT
71<div class="warnheader">
72 You are using Collectd 4, which is deprecated by CGP. Graphs like
73 <code>df</code> and <code>interfaces</code> may be incomplete.
74</div>
75
76EOT;
77
78 }
79
69echo <<<EOT 80echo <<<EOT
70<div id="content"> 81<div id="content">
71 82
diff --git a/layout/style.css b/layout/style.css
index e344cf7..19ec77e 100644
--- a/layout/style.css
+++ b/layout/style.css
@@ -15,7 +15,7 @@ body {
15 text-decoration: none; 15 text-decoration: none;
16} 16}
17 17
18#warnheader { 18.warnheader {
19 background: #ffe583; 19 background: #ffe583;
20 padding: 8px 8px 8px 18px; 20 padding: 8px 8px 8px 18px;
21 border-bottom: 1px solid #d5ad14; 21 border-bottom: 1px solid #d5ad14;
@@ -155,3 +155,9 @@ legend {
155 font-weight: normal; 155 font-weight: normal;
156 text-shadow: 0 0 1px red; 156 text-shadow: 0 0 1px red;
157} 157}
158
159code {
160 font-family: Consolas,"Liberation Mono",Menlo,Courier,monospace;
161 background-color: rgba(0,0,0,0.1);
162 padding: 0 0.2em;
163}