]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Do not show a more link if there are no more games to show!
authorantzucaro <azucaro@gmail.com>
Tue, 11 Oct 2011 21:41:53 +0000 (17:41 -0400)
committerantzucaro <azucaro@gmail.com>
Tue, 11 Oct 2011 21:41:53 +0000 (17:41 -0400)
xonstat/templates/player_info.mako

index b2e9fa6f4c3754cd069025a58f101b3ff8472a83..538f91c619381d29ab39891db73e1f3a8882806e 100755 (executable)
@@ -117,5 +117,7 @@ ${accuracy(weapon_stats)}
        % endfor
        </tbody>
 </table>
+% if game_stats['total_games_played'] > 10:
 <a href="${request.route_url("player_game_index", player_id=player.player_id, page=1)}" title="Game index for ${player.nick}">More games</a> played by ${player.nick_html_colors()|n}...
 % endif
+% endif