]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/main_index.mako
Add top servers data.
[xonotic/xonstat.git] / xonstat / templates / main_index.mako
index 0b03aedff59c218236b67c74498cdf0775fd3e7b..0caccc17bcbe90fe09c220c196a569cb6a51f05c 100755 (executable)
@@ -23,3 +23,23 @@ Main Page - ${parent.title()}
 </tr>\r
 % endfor\r
 </table>\r
+\r
+<table>\r
+<tr>\r
+<th>Server</th>\r
+<th>Games</th>\r
+</tr>\r
+% for (server_id, name, count) in top_servers:\r
+<tr>\r
+<td>${name}</td>\r
+<td>${count}</td>\r
+</tr>\r
+% endfor\r
+\r
+% for i in range(10 - len(top_servers)):\r
+<tr>\r
+<td>-</td>\r
+<td>-</td>\r
+</tr>\r
+% endfor\r
+</table>\r