]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/base.mako
Add new assets to the base template.
[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/bootstrap-responsive.min.css" rel="stylesheet">
19     <link href="/static/css/app.css" rel="stylesheet">
20     </%block>
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 type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script>
46       <script type='text/javascript' src='/static/js/bootstrap.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>