Mercurial > dottes
changeset 355:b233893b4c51
Add date of last change to bottom of web tune page.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Mon, 19 Aug 2013 09:59:46 +0100 |
parents | 073c4022efb1 |
children | 6d4b2dab5fcc |
files | dottes.html.tune makeWeb.sh web/css/dottes.css |
diffstat | 3 files changed, 45 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/dottes.html.tune Mon Aug 19 09:59:28 2013 +0100 +++ b/dottes.html.tune Mon Aug 19 09:59:46 2013 +0100 @@ -41,16 +41,25 @@ Change: <a class="dottes-change-link" href="@CHANGETUNE@">@CHANGETITLE@</a> </div> - <ul class="tune-data-list"> - <li><a class="dottes-link-tune dottes-pdf" - href="@TUNE@.pdf">PDF</a></li> - <li><a class="dottes-link-tune dottes-midi" - href="../@MASTERBOOKE@/@TUNE@.mid">MIDI</a></li> - <li><a class="dottes-link-tune dottes-mp3" - href="../@MASTERBOOKE@/@TUNE@.mp3">MP3</a></li> - <li><a class="dottes-link-tune dottes-abc" - href="@TUNE@.abc">ABC</a></li> - </ul> + <div class="dottes-tune-footer"> + <div class="dottes-tune-footer-row"> + <div class="dottes-tune-footer-left"> + <ul class="tune-data-list"> + <li><a class="dottes-link-tune dottes-pdf" + href="@TUNE@.pdf">PDF</a></li> + <li><a class="dottes-link-tune dottes-midi" + href="../@MASTERBOOKE@/@TUNE@.mid">MIDI</a></li> + <li><a class="dottes-link-tune dottes-mp3" + href="../@MASTERBOOKE@/@TUNE@.mp3">MP3</a></li> + <li><a class="dottes-link-tune dottes-abc" + href="@TUNE@.abc">ABC</a></li> + </ul> + </div> + <div class="dottes-tune-footer-right"> + Last changed @LASTCHANGED@ + </div> + </div> + </div> </div> </div>
--- a/makeWeb.sh Mon Aug 19 09:59:28 2013 +0100 +++ b/makeWeb.sh Mon Aug 19 09:59:46 2013 +0100 @@ -82,6 +82,7 @@ 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 @@ -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//&/\&}/" \
--- a/web/css/dottes.css Mon Aug 19 09:59:28 2013 +0100 +++ b/web/css/dottes.css Mon Aug 19 09:59:46 2013 +0100 @@ -170,6 +170,30 @@ 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;