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