Display updated times in forums

This commit is contained in:
Trever Fischer
2012-04-18 11:55:53 -04:00
parent 1b4832a8cf
commit b22f7c5114
4 changed files with 7 additions and 3 deletions

View File

@@ -26,7 +26,7 @@
<h3>Latest Posts</h3>
<ul>
{% for post in latestForumPosts %}
<li>{{post.user}} in <a href="{{post.topic.get_absolute_url}}">{{post.topic}}</a></li>
<li>{{post.user}} in <a href="{{post.topic.lastPost.get_absolute_url}}">{{post.topic}}</a></li>
{% endfor %}
</ul>
</div>

View File

@@ -21,7 +21,7 @@
</ul></td>
<td>{{ f.topicCount }}</td>
{% if f.freshestTopic%}
<td class="author-info"><div class="avatar">{% avatar f.freshestTopic.lastPost.user 32 %}</div><ul><li>{{f.freshestTopic.lastPost.user}}</li><li>{{f.freshestTopic.created|timesince}} ago</li><li>In <em><a href="{{f.freshestTopic.get_absolute_url}}">{{f.freshestTopic}}</a></em></ul></td>
<td class="author-info"><div class="avatar">{% avatar f.freshestTopic.lastPost.user 32 %}</div><ul><li>{{f.freshestTopic.lastPost.user}}</li><li>{{f.freshestTopic.updated|timesince}} ago</li><li>In <em><a href="{{f.freshestTopic.lastPost.get_absolute_url}}">{{f.freshestTopic}}</a></em></ul></td>
{% else %}
<td><em>No posts...</em></td>
{% endif %}

View File

@@ -10,6 +10,10 @@
</div>
<div class="dateline">
Posted {{post.created}}
{% if post.created != post.updated %}
<br />
Edited {{post.updated}}
{% endif %}
</div>
<div class="forum-post-content">
{{post.body|markdown:"safe"}}

View File

@@ -16,7 +16,7 @@
<div class="topic">
<div class="avatar">{% avatar topic.rootPost.user 32 %}</div>
<h2>{{topic.title}}</h2>
<div class="byline">Started by <span itemprop="author">{{topic.rootPost.user}}</span> {{ topic.created|timesince }} ago</div>
<div class="byline">Started by <span itemprop="author">{{topic.rootPost.user}}</span> {{ topic.created|timesince }} ago.<br />Last updated {{topic.updated|timesince}} ago.</div>
{% if perms.forums %}
<ul>
{% if perms.forums.delete_topic %}