From 838118a38881cc17e59445c1ab8773328d982dc5 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Mon, 23 Jun 2014 15:16:55 +0200 Subject: [PATCH 1/2] hist: fix anchor placement --- index | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/index b/index index 94e1281..2f64662 100755 --- a/index +++ b/index @@ -107,7 +107,7 @@ then -
+
EOHTML readarray -t lastupdatelines < <( rrdtool lastupdate $rrdfile @@ -448,7 +448,7 @@ then
-
+
EOHTML if (( show_all )) @@ -495,14 +495,12 @@ then height=155 fi cat <<-EOHTML -
- Ingress $stat evolution -
+
+ Ingress $stat evolution EOHTML done fi From 0b70bede3f386025b7e3592be02cdaebd909a706 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Tue, 24 Jun 2014 00:43:29 +0200 Subject: [PATCH 2/2] separate code from style --- add.html | 27 ++++++---- index | 156 ++++++++++++++++++++++++++++--------------------------- 2 files changed, 95 insertions(+), 88 deletions(-) diff --git a/add.html b/add.html index 369bed9..3dd96f5 100755 --- a/add.html +++ b/add.html @@ -56,29 +56,31 @@ Expires: $(LC_ALL=C TZ=GMT date +'%a, %d %b %Y %X %Z') "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> - IngRRD - Add data + IngRRD - $webuser - Add data + -
- +
+
- -
+
EOHTML diff --git a/index b/index index 2f64662..6495b66 100755 --- a/index +++ b/index @@ -60,6 +60,15 @@ fi if [ -z "$graph" ] then + if (( show_all )) + then + title="IngRRD - $webuser - History & Trend: All stats" + elif (( show_graphs )) + then + title="IngRRD - $webuser - History & Trend: Badges" + else + title="IngRRD - $webuser - Overview" + fi cat <<-EOHTML content-type: application/xhtml+xml Last-Modified: $( @@ -75,39 +84,40 @@ then "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> - IngRRD - Graph + $title + -
+
EOHTML if (( ! show_graphs )) then cat <<-EOHTML -
- +
- -