X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Ftemplates%2Fmap_index.mako;h=0dc12111a158713f42d396921f7bc5368715dfbb;hp=c6ae6b62c835d99071614b2604ab5be04270dc4f;hb=9c717036ae008b2592158f5376f5693347ed0c68;hpb=c68e50dd5b3f1e270e076f8631179917b5b12003
diff --git a/xonstat/templates/map_index.mako b/xonstat/templates/map_index.mako
old mode 100755
new mode 100644
index c6ae6b6..0dc1211
--- a/xonstat/templates/map_index.mako
+++ b/xonstat/templates/map_index.mako
@@ -1,42 +1,72 @@
-<%inherit file="base.mako"/>
-<%namespace name="nav" file="nav.mako" />
-<%namespace file="navlinks.mako" import="navlinks" />
-
-<%block name="navigation">
-${nav.nav('maps')}
-%block>
-
-<%block name="title">
-Map Index
-%block>
-
-% if not maps:
-
Sorry, no maps yet. Get playing!
-
-% else:
-
-
-
-
-
- Name |
- Added |
-
- % for map in maps:
-
- ${map.name}
- | ${map.create_dt.strftime('%m/%d/%Y at %H:%M')} |
-
-
- % endfor
-
- % endif
-
-
- ${navlinks("map_index_paged", maps.page, maps.last_page)}
-
-
+<%inherit file="base.mako"/>
+<%namespace name="nav" file="nav.mako" />
+
+<%block name="navigation">
+ ${nav.nav('maps')}
+%block>
+
+<%block name="title">
+ Map Index
+%block>
+
+% if not maps and last is not None:
+ Sorry, no more maps!
+
+% elif not maps:
+ Sorry, no maps yet. Get playing!
+
+% else:
+
+
+
+
+
+
+
+
+ ID |
+ Name |
+ Added |
+ |
+
+
+ % for map in maps:
+
+ ${map.map_id} |
+ ${map.name}
+ | ${map.fuzzy_date()} |
+
+
+
+
+ |
+
+
+ % endfor
+
+
+ % if len(maps) == 20:
+
+ % endif
+
+
+
+% endif