aboutsummaryrefslogtreecommitdiffstats
path: root/templates/aggregator/post_detail.html
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-03-12 01:45:07 +0100
committerGravatar Tom Willemsen2012-03-12 01:45:07 +0100
commit2dab9254e1da14db38c0862c44bace2ad4993bda (patch)
tree4060d2945c838718a3279278bd0c58d48ee8a295 /templates/aggregator/post_detail.html
parent68d0a20fffa78b813a64c4d7c2faf60f46646e03 (diff)
downloadryuslash.org-2dab9254e1da14db38c0862c44bace2ad4993bda.tar.gz
ryuslash.org-2dab9254e1da14db38c0862c44bace2ad4993bda.zip
Add seperate page per post
Diffstat (limited to 'templates/aggregator/post_detail.html')
-rw-r--r--templates/aggregator/post_detail.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/aggregator/post_detail.html b/templates/aggregator/post_detail.html
new file mode 100644
index 0000000..eb39f95
--- /dev/null
+++ b/templates/aggregator/post_detail.html
@@ -0,0 +1,24 @@
+{% extends "aggregator/base.html" %}
+
+{% block content %}
+{% include "aggregator/post_content.html" with post=object %}
+
+<div id="pager">
+ {% with next=object.get_next_by_updated previous=object.get_previous_by_updated %}
+ {% if previous %}
+ <div class="nav-prev">
+ <a href="/post/{{ previous.pk }}/" id="previous">
+ {{ previous.title }}</a>
+ </div>
+ {% endif %}
+
+ {% if next %}
+ <div class="nav-next">
+ <a href="/post/{{ next.pk }}/" id="next">{{ next.title }}</a>
+ </div>
+ {% endif %}
+ {% endwith %}
+ <div class="clear"></div>
+
+</div>
+{% endblock %}