summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Berndts <stb@spline.de>2012-10-25 13:34:48 +0200
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2012-10-25 13:35:08 +0200
commit14b3a0e514347f19b3501ce5ffaf92dc095ecd18 (patch)
tree893e8b219df17bd610cd1f87cf3a2edd7d78d1fd
parent7a64425751a5b510443556dab2281d0d8dbea004 (diff)
downloadcomics-14b3a0e514347f19b3501ce5ffaf92dc095ecd18.tar.gz
comics-14b3a0e514347f19b3501ce5ffaf92dc095ecd18.tar.bz2
comics-14b3a0e514347f19b3501ce5ffaf92dc095ecd18.zip
templates/base: prev and next links on top of page
-rw-r--r--templates/base.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index 860bf9e..c34e4bd 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -17,6 +17,22 @@
<h1>comics.spline.de </h1>
<div id="content">
+ {%- if next or prev %}
+ <div id="pagination">
+ {% if prev %}
+ <a class="prev" href="{{ prev.strftime("/sites/%Y/%m/%d.html") }}">
+ &larr; fr&uuml;her
+ </a>
+ {% endif -%}
+
+ {%- if next %}
+ <a class="next" href="{{ next.strftime("/sites/%Y/%m/%d.html") }}">
+ sp&auml;ter &rarr;
+ </a>
+ {% endif %}
+ </div>
+ {% endif %}
+
<h1>{{date.day}}.{{date.month}}.{{date.year}}</h1>
{%- for entry in entries %}