Skip to content

Commit ca5fb0e

Browse files
update humanize part with home,reply_topic,topic_posts html pages
1 parent 343b407 commit ca5fb0e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

db.sqlite3

0 Bytes
Binary file not shown.

templates/home.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends 'base.html' %}
2-
2+
{% load humanize %}
33
{% block breadcrumb %}
44
<li class="breadcrumb-item active">Chat Boards</li>
55
{% endblock %}
@@ -32,7 +32,7 @@
3232
{% if post %}
3333
<small>
3434
<a href="{% url 'topic_posts' board.pk post.topic.pk %}">
35-
By {{ post.createdBy.username }} at {{ post.createdAt }}
35+
By {{ post.createdBy.username }} at {{ post.createdAt|naturaltime }}
3636
</a>
3737
</small>
3838
{% else %}

templates/reply_topic.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends 'base.html' %}
22

33
{% load static %}
4-
4+
{% load humanize %}
55
{% block title %}Post a reply{% endblock %}
66

77

@@ -40,7 +40,7 @@
4040
<strong class="text-muted">{{ post.createdBy.username }}</strong>
4141
</div>
4242
<div class="col-6 text-right">
43-
<small class="text-muted">{{ post.createdAt }}</small>
43+
<small class="text-muted">{{ post.createdAt|naturaltime }}</small>
4444
</div>
4545
</div>
4646
{{ post.get_message_as_markdown }}

templates/topic_posts.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends 'base.html'%}
22

33
{% load static %}
4-
4+
{% load humanize %}
55
{% block title %} {{ topic.subject }} {% endblock %}
66

77

@@ -48,7 +48,7 @@
4848
<strong class="text-muted">{{ post.createdBy.username }}</strong>
4949
</div>
5050
<div class="col-6 text-right">
51-
<small class="text-muted">{{ post.createdAt }}</small>
51+
<small class="text-muted">{{ post.createdAt|naturaltime }}</small>
5252
</div>
5353
</div>
5454
{{ post.get_message_as_markdown }}

0 commit comments

Comments
 (0)