diff options
Diffstat (limited to 'aggregator/templates/aggregator/post_detail.html')
-rw-r--r-- | aggregator/templates/aggregator/post_detail.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/aggregator/templates/aggregator/post_detail.html b/aggregator/templates/aggregator/post_detail.html new file mode 100644 index 0000000..eb39f95 --- /dev/null +++ b/aggregator/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 %} |