summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-06-15 18:54:24 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-06-15 18:54:24 +0100
commit062def77a3f11de2821888c754ae44f068b0ec8b (patch)
treef5ca988b15359b0be769b0fa2b9648f804ffc0e3
parentc2c9d606fc4fd584e725809a034908caa79d120a (diff)
downloadmorph-cache-server-062def77a3f11de2821888c754ae44f068b0ec8b.tar.gz
Fix paging
-rw-r--r--morphcacheserver/templates/artifacts.tpl13
1 files changed, 8 insertions, 5 deletions
diff --git a/morphcacheserver/templates/artifacts.tpl b/morphcacheserver/templates/artifacts.tpl
index 565a371..59c7e24 100644
--- a/morphcacheserver/templates/artifacts.tpl
+++ b/morphcacheserver/templates/artifacts.tpl
@@ -14,12 +14,15 @@ submitted. We do not necessarily have all of these available in the cache.
Page {{ page }} of {{ n_pages }}:
<% if page > 1: %>
- <a href="?page={{page - 1}}">prev</a>'
- <% if page < n_page: %>
- --
- <% end %>
+ <a href="?page={{page - 1}}">prev</a>
+<% else: %>
+ prev
+<% end %>
+--
<% if page < n_pages: %>
- <a href="?page={{ page + 1 }}">next</a>'
+ <a href="?page={{ page + 1 }}">next</a>
+<% else: %>
+ next
<% end %>
</p>