]> source.dussan.org Git - archiva.git/commitdiff
use template for footer
authorOlivier Lamy <olamy@apache.org>
Fri, 27 Jan 2012 11:19:14 +0000 (11:19 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 27 Jan 2012 11:19:14 +0000 (11:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1236633 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index.html
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/message.html

index 7376d82a2b3e9e38b9997532e0855a6dc745fafa..857fa4e631bd7ecc29c5d665e92993cdb8445d55 100644 (file)
 
 </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>
 
 
index f56914c624b85757fed77f5810c3308bc710dc32..8f92bb64b2538312700a03c3d0d49ce158df251c 100644 (file)
@@ -172,6 +172,7 @@ $(function() {
     hideElementWithKarma();
     checkSecurityLinks();
     checkCreateAdminLink();
+    $('#footer-content').html($('#footer-tmpl').tmpl());
   }
   startArchivaApplication();
 })
index 62ca1463161c31e232dc6da3f1606f3eff5c8590..9a1f37188aa58cac466a5c956e563ecadf61af04 100644 (file)
   </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>
+