From a1e4f86ed13ecaf0197e9f9c2e3d5df39f68b1ad Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Mon, 19 Aug 2013 09:59:46 +0100 Subject: [PATCH] Add date of last change to bottom of web tune page. --- dottes.html.tune | 29 +++++++++++++++++++---------- makeWeb.sh | 2 ++ web/css/dottes.css | 24 ++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 10 deletions(-) diff --git a/dottes.html.tune b/dottes.html.tune index 48138ff..83c184e 100644 --- a/dottes.html.tune +++ b/dottes.html.tune @@ -41,16 +41,25 @@ Change: @CHANGETITLE@ - + diff --git a/makeWeb.sh b/makeWeb.sh index 7b1a072..7b5da08 100755 --- a/makeWeb.sh +++ b/makeWeb.sh @@ -82,6 +82,7 @@ find $bookedir -name "*.abc" | sort | if [ -n "$credit" ]; then creditvisibility="yes" fi + lastchanged=`hg log --limit 1 --template "{date|shortdate}" $filename` # Copy the ABC into the web. cp $filename $webdir @@ -100,6 +101,7 @@ find $bookedir -name "*.abc" | sort | -e "s/@CHANGEVISIBILITY@/${changevisibility}/" \ -e "s/@CREDIT@/${credit}/" \ -e "s/@CREDITVISIBILITY@/${creditvisibility}/" \ + -e "s/@LASTCHANGED@/${lastchanged}/" \ -e "s/@TUNE@/${name}/" dottes.html.tune > $webdir/$tunepage sed -e "s/@TITLE@/${title//&/\&}/" \ diff --git a/web/css/dottes.css b/web/css/dottes.css index aa1045e..a64f0e4 100644 --- a/web/css/dottes.css +++ b/web/css/dottes.css @@ -170,6 +170,30 @@ div.dottes-tune-header-right width: 25%; } +div.dottes-tune-footer +{ + display: table; + width: 100%; +} + +div.dottes-tune-footer-row +{ + display: table-row; +} + +div.dottes-tune-footer-left +{ + display: table-cell; + width: 50%; +} + +div.dottes-tune-footer-right +{ + display: table-cell; + text-align: right; + width: 50%; +} + a.dottes-tune-link { font-size: 20px;