From 9e224eb10854cbc51964722b2a79ea89d7390fba Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 6 Mar 2014 11:12:50 +0000 Subject: [PATCH] check-bkp-status.in: JavaScript to expand/contract the log reports. Should work without JavaScript. --- check-bkp-status.in | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 68 insertions(+), 4 deletions(-) diff --git a/check-bkp-status.in b/check-bkp-status.in index 6dd3efc..3e1f714 100644 --- a/check-bkp-status.in +++ b/check-bkp-status.in @@ -224,6 +224,14 @@ html_header () { overflow-y: auto; } + .hide { display: none; } + a.expand-button { + float: right; + font-size: medium; + font-weight: initial; + padding-top: 1ex; + } + div.logdump-info { margin: 3ex 2em; padding: 1ex; @@ -231,6 +239,51 @@ html_header () { border: solid thin black; } --> + @@ -255,7 +308,10 @@ EOF html_hosttbl_fs () { case $3 in winning) link="" knil="" ;; - *) link="" knil="";; + *) + link="" + knil="" + ;; esac cat < @@ -279,19 +335,27 @@ EOF html_logdump_begin () { cat <Log tail for $1:$2 +

Log tail for $1:$2 +

EOF } html_logdump_info () { cat <$3 +
$3
EOF } html_logdump_file () { cat < +
+$3
 EOF
   cat "$3"
   cat <