summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a1fc069)
- time since instead of datetime
- showing last active user
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.flatpages',
'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: 40%;
text-align: left; }
.forum-body .forum-topic-count, .forum-body .forum-post-count, .forum-body .topic-post-count, .forum-body .topic-view-count {
text-align: center; }
.forum-body .forum-last-post, .forum-body .topic-last-post {
text-align: center; }
.forum-body .forum-last-post, .forum-body .topic-last-post {
text-align: center; }
.forum-body .first-unread-post-link, .forum-body .first-unread-post-link:hover {
text-decoration: none; }
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 {
}
.forum-topic-count, .forum-post-count, .topic-post-count, .topic-view-count {
text-align: center;
}
.forum-last-post, .topic-last-post {
text-align: center;
}
.forum-last-post, .topic-last-post {
--- /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