From e71c2a92269d123228f4803a4777a5452045d6b8 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Thu, 14 Aug 2014 21:03:13 +0200 Subject: inc/html: add deprecation message about collectd 4 --- inc/html.inc.php | 13 ++++++++++++- layout/style.css | 8 +++++++- 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; if(!function_exists('json_decode')) { echo << +
Your php version doesn't support JSON. Your graphs would have looked more beautiful if it did.
@@ -66,6 +66,17 @@ EOT; } + if($CONFIG['version'] == 4) { + echo << + You are using Collectd 4, which is deprecated by CGP. Graphs like + df and interfaces may be incomplete. + + +EOT; + + } + echo << 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 { text-decoration: none; } -#warnheader { +.warnheader { background: #ffe583; padding: 8px 8px 8px 18px; border-bottom: 1px solid #d5ad14; @@ -155,3 +155,9 @@ legend { font-weight: normal; text-shadow: 0 0 1px red; } + +code { + font-family: Consolas,"Liberation Mono",Menlo,Courier,monospace; + background-color: rgba(0,0,0,0.1); + padding: 0 0.2em; +} -- cgit v1.1