]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/base.mako
Make links in nav use route_url instead of hard-coding them.
[xonotic/xonstat.git] / xonstat / templates / base.mako
index 1e336a94f583c1971833a6f71a942c533c7290f0..7de82e2a2ad6765a176016773d4498026f78e222 100755 (executable)
@@ -1,24 +1,35 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <html>
-   <head>
-      <title><%block name="title">XonStat - The Xonotic Statistics Database</%block></title>
-         <%block name="css">
-      <link rel="stylesheet" href="/static/css/style.css" type="text/css" media="screen" />
-      </%block>
-         <%block name="js"/>
-   </head>
-   <body>
-      <div id="header">
-         <%block name="header">
-         <h1>XonStat</h1>
-         <h2>The Statistics Database for Xonotic</h2>
-         <br />
-         </%block>
-         </div>
-
-         ${self.body()}
-
-         <div id="footer">
-         <%block name="footer"/>
-         </div>
-   </body>
+    <head>
+        <title><%block name="title">XonStat - Player Statistics for Xonotic</%block></title>
+        <%block name="css">
+        <link rel="stylesheet" href="/static/css/normalize.css" type="text/css" media="screen" />
+        <link rel="stylesheet" href="/static/css/style.css" type="text/css" media="screen" />
+        </%block>
+        <%block name="js">
+        </%block>
+    </head>
+    <body>
+        <div id="header">
+            <%block name="header">
+            <h1><a href="/" title="Home Page">XonStat</a></h1>
+            <h3>Player Statistics for Xonotic</h3>
+            </%block>
+            <ul id="nav">
+                <li><a href="${request.route_url('main_index')}" title="Leaderboard">leaderboard</a></li>
+                <li><a href="${request.route_url('player_index')}" title="Player Index">players</a></li>
+                <li><a href="${request.route_url('game_index')}" title="Game Index">games</a></li>
+                <li><a href="${request.route_url('map_index')}" title="Map Index">maps</a></li>
+                <li><a href="${request.route_url('server_index')}" title="Server Index">servers</a></li>
+            </ul>
+        </div> <!-- END HEADER -->
+        <div id="main">
+            ${self.body()}
+        </div> <!-- END MAIN -->
+        <div id="footer">
+            <%block name="footer">
+            <p>XonStat is a 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></p>
+            </%block>
+        </div> <!-- END FOOTER -->
+    </body>
 </html>