- <div class="span4">
- ##### CTF RANKS #####
- <h3>CTF Ranks</h3>
- <table class="table table-bordered table-condensed">
- <thead>
- <tr>
- <th>#</th>
- <th>Nick</th>
- <th>Elo</th>
- </tr>
- </thead>
- <tbody>
- <% i = 1 %>
- % for (player_id, nick, elo) in ctf_ranks:
- <tr>
- <td>${i}</td>
- % if player_id != '-':
- <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick|n}</a></td>
- % else:
- <td>${nick|n}</td>
- % endif
- % if elo != '-':
- <td>${round(elo, 3)}</td>
- % else:
- <td>${elo}</td>
+% else:
+ <div class="row">
+ % for rs in ranks[:4]:
+ % if len(rs) > 0:
+ <div class="small-12 large-3 columns">
+ % if rs[0].game_type_cd == 'duel':
+ <h5>Duel Ranks <a href="${request.route_url('rank_index', game_type_cd=rs[0].game_type_cd)}" title="See more ${rs[0].game_type_cd} rankings"><i class="fa fa-plus-circle"></i></a></h5>
+ % elif rs[0].game_type_cd == 'ctf':
+ <h5>CTF Ranks <a href="${request.route_url('rank_index', game_type_cd=rs[0].game_type_cd)}" title="See more ${rs[0].game_type_cd} rankings"><i class="fa fa-plus-circle"></i></a></h5>
+ % elif rs[0].game_type_cd == 'dm':
+ <h5>DM Ranks <a href="${request.route_url('rank_index', game_type_cd=rs[0].game_type_cd)}" title="See more ${rs[0].game_type_cd} rankings"><i class="fa fa-plus-circle"></i></a></h5>
+ % elif rs[0].game_type_cd == 'tdm':
+ <h5>TDM Ranks <a href="${request.route_url('rank_index', game_type_cd=rs[0].game_type_cd)}" title="See more ${rs[0].game_type_cd} rankings"><i class="fa fa-plus-circle"></i></a></h5>