File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
{% extends 'base.html' %}
2
-
2
+ {% load humanize %}
3
3
{% block breadcrumb %}
4
4
< li class ="breadcrumb-item active "> Chat Boards</ li >
5
5
{% endblock %}
32
32
{% if post %}
33
33
< small >
34
34
< 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 }}
36
36
</ a >
37
37
</ small >
38
38
{% else %}
Original file line number Diff line number Diff line change 1
1
{% extends 'base.html' %}
2
2
3
3
{% load static %}
4
-
4
+ {% load humanize %}
5
5
{% block title %}Post a reply{% endblock %}
6
6
7
7
40
40
< strong class ="text-muted "> {{ post.createdBy.username }}</ strong >
41
41
</ div >
42
42
< div class ="col-6 text-right ">
43
- < small class ="text-muted "> {{ post.createdAt }}</ small >
43
+ < small class ="text-muted "> {{ post.createdAt|naturaltime }}</ small >
44
44
</ div >
45
45
</ div >
46
46
{{ post.get_message_as_markdown }}
Original file line number Diff line number Diff line change 1
1
{% extends 'base.html'%}
2
2
3
3
{% load static %}
4
-
4
+ {% load humanize %}
5
5
{% block title %} {{ topic.subject }} {% endblock %}
6
6
7
7
48
48
< strong class ="text-muted "> {{ post.createdBy.username }}</ strong >
49
49
</ div >
50
50
< div class ="col-6 text-right ">
51
- < small class ="text-muted "> {{ post.createdAt }}</ small >
51
+ < small class ="text-muted "> {{ post.createdAt|naturaltime }}</ small >
52
52
</ div >
53
53
</ div >
54
54
{{ post.get_message_as_markdown }}
You can’t perform that action at this time.
0 commit comments