aboutsummaryrefslogtreecommitdiffstats
path: root/aggregator/templates/aggregator/post_content.html
diff options
context:
space:
mode:
Diffstat (limited to 'aggregator/templates/aggregator/post_content.html')
-rw-r--r--aggregator/templates/aggregator/post_content.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/aggregator/templates/aggregator/post_content.html b/aggregator/templates/aggregator/post_content.html
new file mode 100644
index 0000000..e47de93
--- /dev/null
+++ b/aggregator/templates/aggregator/post_content.html
@@ -0,0 +1,34 @@
+<article class="post {{ post.feed.name|slugify }}">
+ <header>
+ <hgroup>
+ <h1>
+ <a href="/post/{{ post.pk }}/">
+ <img src="{{ post.feed.get_favicon_url }}" />
+ </a>
+ <a href="/post/{{ post.pk }}/">
+ {% if post.feed.uses_title %}
+ {{ post.title }}
+ {% else %}
+ {{ post.updated }}
+ {% endif %}
+ </a>
+ </h1>
+ <h2 class="postsubtitle">
+ Via
+ <a href="{{ post.feed.base_url }}">{{ post.feed.name }}</a>
+ (<a href="{{ post.feed.get_profile_url }}">profile</a>,
+ <a href="{{ post.remote_url }}">origin</a>)
+ </h2>
+ </hgroup>
+ </header>
+
+ <div class="postcontent">
+ {% autoescape off %}
+ {% if post.feed.br2nl %}
+ {{ post.body|linebreaks }}
+ {% else %}
+ {{ post.body }}
+ {% endif %}
+ {% endautoescape %}
+ </div>
+</article>