Commit 5fa74c32 authored by Maso Crisostomo's avatar Maso Crisostomo

Fixed announcements and forum date format

parent 4e5cfc65
......@@ -5,7 +5,7 @@
{% if announcements_list %}
<ul>
{% for a in announcements_list %}
<li><a href="{% url 'announcements:details' a.id %}">{{ a.announcement_title }} by {{ a.author.first_name }} {{ a.author.last_name }} dated {{ a.pub_date|date:"SHORT_DATE_FORMAT" }}</a></li>
<li><a href="{% url 'announcements:details' a.id %}">{{ a.announcement_title }} by {{ a.author.first_name }} {{ a.author.last_name }} dated {{ a.pub_date|date:"d/m/Y" }}</a></li>
{% endfor %}
</ul>
{% else %}
......
......@@ -26,6 +26,7 @@ def details(request, announcement_id):
# def reactions(request, announcement_id):
# response = "This are the reactions to announcement # %s."
# return HttpResponse(response % announcement_id)
......
......@@ -8,7 +8,7 @@
{% if posts_list %}
<ul>
{% for i in posts_list %}
<li><a href="posts/{{ i.id }}/details/">{{ i.post_title}} by {{ i.author.first_name }} {{ i.author.last_name }} dated {{ i.pub_date|date:"SHORT_DATE_FORMAT" }}</a></li>
<li><a href="posts/{{ i.id }}/details/">{{ i.post_title}} by {{ i.author.first_name }} {{ i.author.last_name }} dated {{ i.pub_date|date:"d/m/Y" }}</a></li>
{% endfor %}
</ul>
{% else %}
......
......@@ -9,7 +9,7 @@
{% if replies_list %}
<ul>
{% for i in replies_list %}
<li>{{ i.author.first_name }} {{ i.author.last_name }}, {{ i.pub_date|date:"SHORT_DATE_FORMAT" }}: {{ i.reply_body }}</li>
<li>{{ i.author.first_name }} {{ i.author.last_name }}, {{ i.pub_date|date:"d/m/Y" }}: {{ i.reply_body }}</li>
{% endfor %}
</ul>
{% else %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment