aboutsummaryrefslogtreecommitdiffstats
path: root/templates/aggregator/posts.html
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-03-10 03:04:13 +0100
committerGravatar Tom Willemsen2012-03-10 03:04:13 +0100
commit9648ce73fda47739be5465d8142c38bda588c6f6 (patch)
tree866100c62ede3bc0dab50b0dc19de4a4191c5fd4 /templates/aggregator/posts.html
downloadryuslash.org-9648ce73fda47739be5465d8142c38bda588c6f6.tar.gz
ryuslash.org-9648ce73fda47739be5465d8142c38bda588c6f6.zip
Initial commit
Diffstat (limited to 'templates/aggregator/posts.html')
-rw-r--r--templates/aggregator/posts.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/templates/aggregator/posts.html b/templates/aggregator/posts.html
new file mode 100644
index 0000000..32f1ed7
--- /dev/null
+++ b/templates/aggregator/posts.html
@@ -0,0 +1,45 @@
+<html>
+ <head>
+ <title>ryuslash.org</title>
+ </head>
+ <body>
+
+ {% for post in list.object_list %}
+ <p>
+ <div>
+ <a href="{{ post.remote_url }}">
+ <img src="{{ post.feed.get_favicon_url }}" />
+ {{ post.updated }}
+ </a>
+ </div>
+ {% if post.feed.uses_title %}
+ <div>{{ post.title }}</div>
+ {% endif %}
+
+ {% autoescape off %}
+ {% if post.feed.br2nl %}
+ {{ post.body|linebreaks }}
+ {% else %}
+ {{ post.body }}
+ {% endif %}
+ {% endautoescape %}
+ </p>
+ {% endfor %}
+
+ <div class="pagination">
+ <span class="step-links">
+ {% if list.has_previous %}
+ <a href="/{{ list.previous_page_number }}/">previous</a>
+ {% endif %}
+
+ <span class="current">
+ Page {{ list.number }} of {{ list.paginator.num_pages }}.
+ </span>
+
+ {% if list.has_next %}
+ <a href="/{{ list.next_page_number }}/">next</a>
+ {% endif %}
+ </span>
+ </div>
+ </body>
+</html>