use template for footer

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1236633 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-01-27 11:19:14 +00:00
parent bee8924ec6
commit c9ff592582
3 changed files with 11 additions and 7 deletions

View File

@ -32,13 +32,7 @@
</div>
<footer style="vertical-align: bottom">
<div class="pull-left">
<a target="_blank" href="http://archiva.apache.org/">Apache Archiva&nbsp;-&nbsp;version</a>
</div>
<div class="pull-right">
Copyright &#169; copyrightRange <a target="_blank" href="http://www.apache.org/">The Apache Software Foundation</a>
</div>
<footer id="footer-content" style="vertical-align: bottom">
</footer>

View File

@ -172,6 +172,7 @@ $(function() {
hideElementWithKarma();
checkSecurityLinks();
checkCreateAdminLink();
$('#footer-content').html($('#footer-tmpl').tmpl());
}
startArchivaApplication();
})

View File

@ -41,3 +41,12 @@
</div>
</script>
<script id='footer-tmpl' type='text/x-jquery-tmpl'>
<div class="pull-left">
<a target="_blank" href="http://archiva.apache.org/">Apache Archiva&nbsp;-&nbsp;${version}</a>
</div>
<div class="pull-right">
Copyright &#169; ${copyrightRange} <a target="_blank" href="http://www.apache.org/">The Apache Software Foundation</a>
</div>
</script>