]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Add sub-nav to access stats-specific pages.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 1 Mar 2015 13:27:26 +0000 (08:27 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 1 Mar 2015 13:27:26 +0000 (08:27 -0500)
xonstat/templates/nav.mako

index e952bc4fc4f90d4a160e2d2955858d16a7964de1..159be7ea7cb280b9a9691ddeba22a99f7881eafb 100644 (file)
@@ -6,7 +6,7 @@
   <div class="row">
     <div class="small-12 columns">
 
-      <nav class="top-bar" data-topbar="">
+      <nav class="top-bar" data-topbar="" data-options="is_hover: false">
         <ul class="title-area">
           <li class="name show-for-medium-up">
             <h1><a href="http://www.xonotic.org">Xonotic</a></h1>
             <li><a href="http://www.xonotic.org/media/" title="View screenshots and videos"><i class="fa fa-picture-o"></i> Media</a></li>
             <li><a href="http://forums.xonotic.org/" title="Visit the community forums"><i class="fa fa-comments"></i> Forums</a></li>
             <li><a href="http://www.xonotic.org/posts/" title="Read the blog"><i class="fa fa-book"></i> Blog</a></li>
-            <li><a href="/" title="View player statistics and recent games"><i class="fa fa-bar-chart"></i> Stats</a></li>
+            <li class="has-dropdown">
+              <a href="/" title="View player statistics and recent games"><i class="fa fa-bar-chart"></i> Stats</a>
+              <ul class="dropdown">
+                <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('server_index')}" title="Server Index">Servers</a></li>
+                <li><a href="${request.route_url('map_index')}" title="Map Index">Maps</a></li>
+                % if login_logout:
+                  <li><a href="#" title="Log in with Mozilla Persona">${request.persona_button}</a></li>
+                % endif
+              </ul>
+            </li>
             <li><a href="https://gitlab.com/groups/xonotic" title="Contribute to Xonotic"><i class="fa fa-wrench"></i> Contribute</a></li>
             <li><a href="https://gitlab.com/xonotic/xonotic/wikis/Halogenes_Newbie_Corner" title="Read the beginner's guide"><i class="fa fa-forward"></i> Guide</a></li>
           </ul>