From: Ant Zucaro <azucaro@gmail.com> Date: Sun, 1 Mar 2015 13:27:26 +0000 (-0500) Subject: Add sub-nav to access stats-specific pages. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a75946b67ebaed673617930262e38ec91d258199;p=xonotic%2Fxonstat.git Add sub-nav to access stats-specific pages. --- diff --git a/xonstat/templates/nav.mako b/xonstat/templates/nav.mako index e952bc4..159be7e 100644 --- a/xonstat/templates/nav.mako +++ b/xonstat/templates/nav.mako @@ -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> @@ -24,7 +24,19 @@ <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>