summaryrefslogtreecommitdiff
path: root/views/paginate.html
diff options
context:
space:
mode:
authorAlberto Bertogli <albertito@blitiri.com.ar>2012-09-16 12:17:56 +0200
committerAlberto Bertogli <albertito@blitiri.com.ar>2012-11-10 18:49:54 +0100
commit80ef0017d47f536bf2c8c6af4b514efa50071a23 (patch)
treedb630a50bf30abca5a62cd206d8bc9abed61b4e0 /views/paginate.html
downloadgit-arr-fork-465dd3334fbe89f552554abb13f53ff61c9f75d3.zip
Initial commit0.01
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
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>
+