summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-03-25 18:43:10 +0200
committerLars Wirzenius <liw@liw.fi>2016-03-25 18:43:10 +0200
commit36656efe16604153743d4140570498fffa3bcc45 (patch)
tree0a4749c93ffd1abe8575c67a6ead16ab011d1f97
parent5b2a96605e1a5aa586c2cf7d297fb4f60549918b (diff)
downloaddistix-36656efe16604153743d4140570498fffa3bcc45.tar.gz
Add newest-message-date to tickets
-rw-r--r--distixlib/templates/closed.html.j22
-rw-r--r--distixlib/templates/index.html.j22
2 files changed, 4 insertions, 0 deletions
diff --git a/distixlib/templates/closed.html.j2 b/distixlib/templates/closed.html.j2
index ab76ddd..5a7f84e 100644
--- a/distixlib/templates/closed.html.j2
+++ b/distixlib/templates/closed.html.j2
@@ -17,6 +17,8 @@
<ul class="ticketlist">
{% for ticket in tickets %}
<li>
+ <span class="date"
+ >{{ticket.get_newest_message_timestamp()|date }}<span>
<a class="ticketinlist" href="{{ ticket.get_ticket_id() }}.html"
>{{ ticket.get_ticket_id() }}
{{ ticket.get_title() }}</a></li>
diff --git a/distixlib/templates/index.html.j2 b/distixlib/templates/index.html.j2
index 4c7105c..814ba21 100644
--- a/distixlib/templates/index.html.j2
+++ b/distixlib/templates/index.html.j2
@@ -15,6 +15,8 @@
<ul class="ticketlist">
{% for ticket in tickets %}
<li>
+ <span class="date"
+ >{{ticket.get_newest_message_timestamp()|date }}<span>
<a class="ticketinlist" href="{{ ticket.get_ticket_id() }}.html"
>{{ ticket.get_title() }}</a></li>
{% endfor %}