Merge of zykure's player_info JSON object plus a few bugfixes.
[xonotic/xonstat.git] / xonstat / templates / base.mako
1 <%namespace name="nav" file="nav.mako"/>
2 <!DOCTYPE html>
3 <html lang="en">
4   <head>
5     <meta charset="utf-8">
6     <title>XonStat: Player Statistics for Xonotic</title>
7     <meta name="description" content="">
8     <meta name="author" content="">
9
10     <!--[if lt IE 9]>
11       <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
12     <![endif]-->
13
14     <%block name="css">
15     <!-- <link href="/static/css/style.min.css" rel="stylesheet"> -->
16     <link href="/static/css/style.css" rel="stylesheet">
17     <link type="images/vnd.microsoft.icon" rel="shortcut icon" href="/static/favicon.ico">
18     </%block>
19     
20     <script src="/static/js/jquery-1.7.1.min.js"></script>
21   </head>
22
23   <body>
24     <%block name="navigation">
25     ${nav.nav("leaderboard")}
26     </%block>
27
28     <div class="container">
29
30       <%block name="hero_unit">
31       </%block>
32
33       <div class="row">
34         <div class="span12" id="xonborder">
35           <div id="title"><%block name="title"></%block></div>
36             ${self.body()}
37         </div> <!-- /xonborder -->
38       </div> <!-- /main row -->
39
40       <%block name="footer">
41       <p class="pagination-centered">XonStat is an open source (GPLv2) project created by Antibody. Fork it <a href="https://github.com/antzucaro/XonStat" title="Go to the project page">on Github!</a> <br />Questions? Check the <a href="https://github.com/antzucaro/XonStat/wiki/FAQ" title="FAQ">FAQ</a> first. <br />Issues? Log them either <a href="http://dev.xonotic.org/projects/xonstat" title="Xonotic Redmin Issue Tracker">here</a> or <a href="https://github.com/antzucaro/XonStat/issues" title="GitHub issue tracker">here</a> - I check both!</p>
42       </%block>
43
44       <%block name="js">
45       <script src="/static/js/jquery-1.7.1.min.js"></script>
46       </%block>
47
48       <!-- RELATIVE TIME CONVERSION -->
49       <script type="text/javascript">
50       $('.abstime').each(function(i,e){
51         var epoch = e.getAttribute('data-epoch');
52         var d = new Date(0);
53         d.setUTCSeconds(epoch);
54         e.setAttribute('title', d.toDateString() + ' ' + d.toTimeString());  
55       });
56       </script>
57
58       <!-- GOOGLE ANALYTICS -->
59       <script type="text/javascript">
60       var _gaq = _gaq || [];
61       _gaq.push(['_setAccount', 'UA-30391685-1']);
62       _gaq.push(['_trackPageview']);
63
64       (function() {
65         var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
66         ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
67         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
68       })();
69     </script>
70
71     </body>
72 </html>