Further work on parsing Reddit comments

This commit is contained in:
2010-05-12 16:02:29 +01:00
parent 16211fe982
commit d68a0907c6
3 changed files with 39 additions and 5 deletions

View File

@@ -75,11 +75,11 @@
<h3>Reddit Posts</h3>
<ul>
{% for post in posts %}
{% if post.permalink %}
<p><b><a href="http://reddit.com{{ post.permalink }}">{{ post.title }}</a></b> - /r/{{ post.subreddit }}</p>
{% ifequal post.kind 1 %}
<p><b><a href="{{ post.permalink }}">{{ post.title }}</a></b> - /r/{{ post.subreddit }}</p>
{% else %}
<p>{{ post.body }} - <a href="http://reddit.com/comments/{{ post.link_id }}/">Permalink</a></p>
{% endif %}
<p>{{ post.body }} - (/r/{{post.subreddit}}) <a href="{{ post.permalink }}/">Permalink</a></p>
{% endifequal %}
{% endfor %}
</ul>
{% endif %}