Implemented some (preliminary) JSON API to retrieve player data
[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     <style type="text/css">
15       body {
16         padding-top: 60px;
17         padding-bottom: 40px;
18       }
19     </style>
20
21     <%block name="css">
22     <!-- <link href="/static/css/style.min.css" rel="stylesheet"> -->
23     <link href="/static/css/style.css" rel="stylesheet">
24     <link type="images/vnd.microsoft.icon" rel="shortcut icon" href="/static/favicon.ico">
25     </%block>
26     
27     <script src="/static/js/jquery-1.7.1.min.js"></script>
28   </head>
29
30   <body>
31     <%block name="navigation">
32     ${nav.nav("leaderboard")}
33     </%block>
34
35     <div class="container">
36
37       <%block name="hero_unit">
38       </%block>
39
40       <div class="row">
41         <div class="span12" id="xonborder">
42           <div id="title"><%block name="title"></%block>&nbsp;</div>
43             ${self.body()}
44         </div> <!-- /xonborder -->
45       </div> <!-- /main row -->
46
47       <%block name="footer">
48       <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>
49       </%block>
50
51       <%block name="js">
52       <script src="/static/js/jquery-1.7.1.min.js"></script>
53       </%block>
54
55       <!-- RELATIVE TIME CONVERSION -->
56       <script type="text/javascript">
57       $('.abstime').each(function(i,e){
58         var epoch = e.getAttribute('data-epoch');
59         var d = new Date(0);
60         d.setUTCSeconds(epoch);
61         e.setAttribute('title', d.toDateString() + ' ' + d.toTimeString());  
62       });
63       </script>
64
65       <!-- GOOGLE ANALYTICS -->
66       <script type="text/javascript">
67       var _gaq = _gaq || [];
68       _gaq.push(['_setAccount', 'UA-30391685-1']);
69       _gaq.push(['_trackPageview']);
70
71       (function() {
72         var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
73         ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
74         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
75       })();
76     </script>
77
78     </body>
79 </html>