summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/course_forum.html4
-rw-r--r--yaksh/templates/yaksh/post_comments.html6
2 files changed, 4 insertions, 6 deletions
diff --git a/yaksh/templates/yaksh/course_forum.html b/yaksh/templates/yaksh/course_forum.html
index 3e4d07b..ef6dbf8 100644
--- a/yaksh/templates/yaksh/course_forum.html
+++ b/yaksh/templates/yaksh/course_forum.html
@@ -52,9 +52,7 @@
</div>
<div class="card-footer">
{% with post.get_last_comment as last_comment %}
- {% if last_comment %}
- <small> {% if post.creator.profile.is_moderator %} INSTRUCTOR CREATED {% endif %} Last Post by: <strong>{{last_comment.creator}}</strong> . {{last_comment.modified_at|naturaltime}}</small>
- {% endif %}
+ <small> {% if post.creator.profile.is_moderator %} <span class="brown-light">INSTRUCTOR</span> {% endif %} {% if last_comment %} Last Post by: <strong>{{last_comment.creator}}</strong> . {{last_comment.modified_at|naturaltime}} {% else %} Created By <strong>{{post.creator.username}}</strong> {% endif %}</small>
{% endwith %}
{% if user.profile.is_moderator %}
<small><a href="{% url "yaksh:hide_post" course.id post.uid %}" class="pull-right">Delete</i></a></small>
diff --git a/yaksh/templates/yaksh/post_comments.html b/yaksh/templates/yaksh/post_comments.html
index f5cc771..110e11c 100644
--- a/yaksh/templates/yaksh/post_comments.html
+++ b/yaksh/templates/yaksh/post_comments.html
@@ -1,5 +1,5 @@
{% extends "user.html" %}
-
+{% load humanize %}
{% block title %}
{{post.title}}
{% endblock title %}
@@ -13,7 +13,7 @@
<br>
<small>
<strong>{{post.creator.username}}</strong>
- {{post.created_at}}
+ {{post.created_at|naturaltime}}
{% if user.profile.is_moderator %}<a href="{% url "yaksh:hide_post" post.course.id post.uid %}" class="pull-right">Delete</a>{% endif %}
</small>
@@ -40,7 +40,7 @@
{% endif %}
<p>{{comment.description}}</p>
<small class="pull-right">
- by: <strong>{{comment.creator.username}} </strong>. {{comment.created_at}}
+ by: <strong>{{comment.creator.username}} </strong>. {{comment.created_at|naturaltime}}
{% if user.profile.is_moderator %}<a href="{% url "yaksh:hide_comment" post.course.id comment.uid %}">Delete</a>{% endif %}
</small>
</div>