- time since instead of datetime
- showing last active user
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.flatpages',
+ 'django.contrib.humanize'
)
width: 40%;
text-align: left; }
.forum-body .forum-topic-count, .forum-body .forum-post-count, .forum-body .topic-post-count, .forum-body .topic-view-count {
- width: 16%;
+ width: 10%;
text-align: center; }
.forum-body .forum-last-post, .forum-body .topic-last-post {
- width: 20%;
+ width: 32%;
text-align: center; }
.forum-body .first-unread-post-link, .forum-body .first-unread-post-link:hover {
text-decoration: none; }
}
.forum-topic-count, .forum-post-count, .topic-post-count, .topic-view-count {
- width: 16%;
+ width: 10%;
text-align: center;
}
.forum-last-post, .topic-last-post {
- width: 20%;
+ width: 32%;
text-align: center;
}
--- /dev/null
+{% load humanize %}
+{% if forum.updated %}
+ {{ forum.last_post.user }}
+ {{ forum.updated|naturaltime }}
+{% endif %}
\ No newline at end of file
--- /dev/null
+{% load humanize %}
+{% if topic.updated %}
+ {{ topic.last_post.user }}
+ {{ topic.updated|naturaltime }}
+
+{% endif %}
\ No newline at end of file