Add date of last change to bottom of web tune page.

This commit is contained in:
Jim Hague 2013-08-19 09:59:46 +01:00
parent 01a656aaba
commit a1e4f86ed1
3 changed files with 45 additions and 10 deletions

View File

@ -41,6 +41,9 @@
Change: <a class="dottes-change-link"
href="@CHANGETUNE@">@CHANGETITLE@</a>
</div>
<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>
@ -52,6 +55,12 @@
href="@TUNE@.abc">ABC</a></li>
</ul>
</div>
<div class="dottes-tune-footer-right">
Last changed @LASTCHANGED@
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -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//&/\&}/" \

View File

@ -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;