Add permalinks to forum replies and provide a short url

This commit is contained in:
Trever Fischer
2012-04-22 13:34:41 -04:00
parent 4d17755cb1
commit 0d546bc66d
2 changed files with 5 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
{% load markup %}
<div class="post">
<a name="reply-{{post.id}}"></a>
<div class="post" name="reply-{{post.id}}">
{% include "_profile_tile.html" with user=post.user %}
<div class="dateline">
<br />
Posted {{post.created}}
{% if post.created != post.updated %}
<br />
@@ -12,6 +12,7 @@ Edited {{post.updated}}
<div class="forum-post-content">
{{post.body|markdown:"safe"}}
<br style="clear:both"/>
<a href="{% url forums.views.post id=post.id%}">permalink</a>
<a href="{%url forums.views.reply post.id%}">Reply &raquo;</a>
</div>
</div>