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,16 +41,25 @@
Change: <a class="dottes-change-link" Change: <a class="dottes-change-link"
href="@CHANGETUNE@">@CHANGETITLE@</a> href="@CHANGETUNE@">@CHANGETITLE@</a>
</div> </div>
<ul class="tune-data-list"> <div class="dottes-tune-footer">
<li><a class="dottes-link-tune dottes-pdf" <div class="dottes-tune-footer-row">
href="@TUNE@.pdf">PDF</a></li> <div class="dottes-tune-footer-left">
<li><a class="dottes-link-tune dottes-midi" <ul class="tune-data-list">
href="../@MASTERBOOKE@/@TUNE@.mid">MIDI</a></li> <li><a class="dottes-link-tune dottes-pdf"
<li><a class="dottes-link-tune dottes-mp3" href="@TUNE@.pdf">PDF</a></li>
href="../@MASTERBOOKE@/@TUNE@.mp3">MP3</a></li> <li><a class="dottes-link-tune dottes-midi"
<li><a class="dottes-link-tune dottes-abc" href="../@MASTERBOOKE@/@TUNE@.mid">MIDI</a></li>
href="@TUNE@.abc">ABC</a></li> <li><a class="dottes-link-tune dottes-mp3"
</ul> 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>
</div> </div>

View File

@ -82,6 +82,7 @@ find $bookedir -name "*.abc" | sort |
if [ -n "$credit" ]; then if [ -n "$credit" ]; then
creditvisibility="yes" creditvisibility="yes"
fi fi
lastchanged=`hg log --limit 1 --template "{date|shortdate}" $filename`
# Copy the ABC into the web. # Copy the ABC into the web.
cp $filename $webdir cp $filename $webdir
@ -100,6 +101,7 @@ find $bookedir -name "*.abc" | sort |
-e "s/@CHANGEVISIBILITY@/${changevisibility}/" \ -e "s/@CHANGEVISIBILITY@/${changevisibility}/" \
-e "s/@CREDIT@/${credit}/" \ -e "s/@CREDIT@/${credit}/" \
-e "s/@CREDITVISIBILITY@/${creditvisibility}/" \ -e "s/@CREDITVISIBILITY@/${creditvisibility}/" \
-e "s/@LASTCHANGED@/${lastchanged}/" \
-e "s/@TUNE@/${name}/" dottes.html.tune > $webdir/$tunepage -e "s/@TUNE@/${name}/" dottes.html.tune > $webdir/$tunepage
sed -e "s/@TITLE@/${title//&/\&}/" \ sed -e "s/@TITLE@/${title//&/\&}/" \

View File

@ -170,6 +170,30 @@ div.dottes-tune-header-right
width: 25%; 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 a.dottes-tune-link
{ {
font-size: 20px; font-size: 20px;