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