summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorCruiseDevice2020-04-15 22:15:53 +0530
committerCruiseDevice2020-04-15 22:15:53 +0530
commiteb9f6cb240268735e08ebc2a6d26d88c7e5097f7 (patch)
treead5eddc0fbdbd73c6b520edf1da3baabd960f30c /yaksh/templates
parent169228186d8c9ad880ee33c5190e49203d2c5243 (diff)
downloadonline_test-eb9f6cb240268735e08ebc2a6d26d88c7e5097f7.tar.gz
online_test-eb9f6cb240268735e08ebc2a6d26d88c7e5097f7.tar.bz2
online_test-eb9f6cb240268735e08ebc2a6d26d88c7e5097f7.zip
Improve UI slightly
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>