]> git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Add total playing time.
authorAnt Zucaro <azucaro@gmail.com>
Fri, 28 Sep 2012 02:19:52 +0000 (22:19 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Fri, 28 Sep 2012 02:19:52 +0000 (22:19 -0400)
I forgot to add the total playing time from the get_overall_stats
call. This includes it and moves win percentage over to the right
pane to space things out more evenly.

xonstat/templates/player_info.mako

index 8bb282fa0d44e77dc6228fea777bf40923075acf..4e42ff1e720e6df516724d91ea64719616e3ea3d 100644 (file)
@@ -216,15 +216,17 @@ Player Information
 
             Games Played: <small>${g.games} <br /></small>
 
+            Playing Time: <small>${overall_stats[g.game_type_cd].total_playing_time} <br /></small>
+
             % if g.game_type_cd in fav_maps:
             Favorite Map: <small>${fav_maps[g.game_type_cd].map_name} <br /></small>
             % endif
-
-            Win Percentage: <small>${round(g.win_pct,2)}% (${g.wins} wins, ${g.losses} losses) <br /></small>
             </p>
           </div>
           <div class="span5">
             <p>
+            Win Percentage: <small>${round(g.win_pct,2)}% (${g.wins} wins, ${g.losses} losses) <br /></small>
+
             % if g.game_type_cd in overall_stats:
               % if overall_stats[g.game_type_cd].k_d_ratio is not None:
               Kill Ratio: <small>${round(overall_stats[g.game_type_cd].k_d_ratio,2)} (${overall_stats[g.game_type_cd].total_kills} kills, ${overall_stats[g.game_type_cd].total_deaths} deaths) <br /></small>