From: Mark Wooding Date: Thu, 6 Mar 2014 11:12:50 +0000 (+0000) Subject: check-bkp-status.in: JavaScript to expand/contract the log reports. X-Git-Tag: 1.0.2~3 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/rsync-backup/commitdiff_plain/9e224eb10854cbc51964722b2a79ea89d7390fba?ds=sidebyside check-bkp-status.in: JavaScript to expand/contract the log reports. Should work without JavaScript. --- 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 <