aboutsummaryrefslogtreecommitdiff
path: root/views/paginate.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/paginate.html')
-rw-r--r--views/paginate.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/views/paginate.html b/views/paginate.html
new file mode 100644
index 0000000..72f3156
--- /dev/null
+++ b/views/paginate.html
@@ -0,0 +1,15 @@
+
+<div class="paginate">
+% if offset > 0:
+<a href="{{offset - 1}}.html">&larr; prev</a>
+% else:
+<span class="inactive">&larr; prev</span>
+% end
+<span class="sep">|</span>
+% if nelem >= max_per_page:
+<a href="{{offset + 1}}.html">next &rarr;</a>
+% else:
+<span class="inactive">next &rarr;</span>
+% end
+</div>
+