]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/main_index.mako
Add top_maps to main view and template.
[xonotic/xonstat.git] / xonstat / templates / main_index.mako
index 0caccc17bcbe90fe09c220c196a569cb6a51f05c..12d5323e762cd1e9aff426802f47ba71e767b75a 100755 (executable)
@@ -43,3 +43,23 @@ Main Page - ${parent.title()}
 </tr>\r
 % endfor\r
 </table>\r
+\r
+<table>\r
+<tr>\r
+<th>Map</th>\r
+<th>Times Played</th>\r
+</tr>\r
+% for (map_id, name, count) in top_maps:\r
+<tr>\r
+<td>${name}</td>\r
+<td>${count}</td>\r
+</tr>\r
+% endfor\r
+\r
+% for i in range(10 - len(top_maps)):\r
+<tr>\r
+<td>-</td>\r
+<td>-</td>\r
+</tr>\r
+% endfor\r
+</table>\r