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