diff options
author | Tom Willemse | 2013-05-09 20:07:49 +0200 |
---|---|---|
committer | Tom Willemse | 2013-05-09 20:07:49 +0200 |
commit | 15c5869b54e9a770b9abbeab1e990b713cdb1b3b (patch) | |
tree | 4aa805a44e8da93f4b0698520f16096d216d8ec3 /ryuslash/aggregator/templates/aggregator/posts.html | |
parent | 5f7df695ac6dd9ccc5444a8fc20fa8d97196953e (diff) | |
download | ryuslash.org-15c5869b54e9a770b9abbeab1e990b713cdb1b3b.tar.gz ryuslash.org-15c5869b54e9a770b9abbeab1e990b713cdb1b3b.zip |
Update for django 1.4
Diffstat (limited to 'ryuslash/aggregator/templates/aggregator/posts.html')
-rw-r--r-- | ryuslash/aggregator/templates/aggregator/posts.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/ryuslash/aggregator/templates/aggregator/posts.html b/ryuslash/aggregator/templates/aggregator/posts.html new file mode 100644 index 0000000..b70cb0d --- /dev/null +++ b/ryuslash/aggregator/templates/aggregator/posts.html @@ -0,0 +1,43 @@ +{% extends "aggregator/base.html" %} +{% load posts_extras %} + +{% block head %} +<link href="/feeds/posts/" rel="alternate" type="application/rss+xml" + title="All posts" /> +{% endblock %} + +{% block content %} + {% for post in list.object_list %} + <article class="post"> + (<span class="keyword">defpost</span> + <a href="{{ post.link }}" + class="variable-name">{{ post.title|slugify|nameless|truncate:48 }}</a> + (<img src="/static/images/logos/{{ post.icon }}" width="16" + height="16"/>) + <div class="doc"> + {% autoescape off %}{{ post.content }}{% endautoescape %} + </div> + <span class="string">"{{ post.updated }}"</span>) + </article> + {% endfor %} + +<div id="pager"> + {% if list.has_previous %} + <span class="nav-prev"> + <a href="/{{ category }}/{{ list.previous_page_number }}/" + id="previous">[previous]</a> + </span> + {% endif %} + + <span id="current"> + {{ list.number }} / {{ list.paginator.num_pages }} + </span> + + {% if list.has_next %} + <span class="nav-next"> + <a href="/{{ category }}/{{ list.next_page_number }}/" + id="next">[next]</a> + </span> + {% endif %} +</div> +{% endblock %} |