Merge branch 'badges' into approved
[xonotic/xonstat.git] / xonstat / templates / base.mako
index 53526091cafe7ac0c7ef3494e5a8e3189d66a217..3947174e39183162305ea6e070d6377563167c99 100644 (file)
@@ -39,7 +39,7 @@
 
       <div class="row">
         <div class="span12" id="xonborder">
-          <div id="title"><%block name="title"></%block></div>
+          <div id="title"><%block name="title"></%block>&nbsp;</div>
             ${self.body()}
         </div> <!-- /xonborder -->
       </div> <!-- /main row -->
       </%block>
 
       <%block name="js">
+      <script src="/static/js/jquery-1.7.1.min.js"></script>
       </%block>
 
+      <!-- RELATIVE TIME CONVERSION -->
+      <script type="text/javascript">
+      $('.abstime').each(function(i,e){
+        var epoch = e.getAttribute('data-epoch');
+        var d = new Date(0);
+        d.setUTCSeconds(epoch);
+        e.setAttribute('title', d.toDateString() + ' ' + d.toTimeString());  
+      });
+      </script>
+
+      <!-- GOOGLE ANALYTICS -->
       <script type="text/javascript">
       var _gaq = _gaq || [];
       _gaq.push(['_setAccount', 'UA-30391685-1']);