From ea032ba8b321fad5e896750eae508456676041c1 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Thu, 23 May 2013 15:45:22 +0200 Subject: Display the last viewed threads in the user profile --- hyperkitty/templates/ajax/last_views.html | 40 +++++++++++++++++++++++++++++++ hyperkitty/templates/paginator.html | 4 ++-- hyperkitty/templates/user_profile.html | 16 +++++++++++++ 3 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 hyperkitty/templates/ajax/last_views.html (limited to 'hyperkitty/templates') diff --git a/hyperkitty/templates/ajax/last_views.html b/hyperkitty/templates/ajax/last_views.html new file mode 100644 index 0000000..5455413 --- /dev/null +++ b/hyperkitty/templates/ajax/last_views.html @@ -0,0 +1,40 @@ +{% load url from future %} +{% load i18n %} +{% load hk_generic %} + + {% if last_views %} + + + + + + + + + + + + + {% for lv in last_views %} + + + + + + + + + {% endfor %} + +
SubjectOriginal authorStart dateLast activityReplies
+ {% if thread.unread %} + + {% endif %} + {{ lv.thread.starting_email.subject }}{{ lv.thread.starting_email.sender_name }}{{ lv.thread.starting_email|viewer_date|date:"l, j F Y H:i:s" }}{{ lv.thread|viewer_date|timesince }}{{ lv.thread|length }}
+ {% include "paginator.html" with pager=last_views page_key="lvpage" %} + {% else %} +

Nothing read yet.

+ {% endif %} + +{# vim: set noet: #} diff --git a/hyperkitty/templates/paginator.html b/hyperkitty/templates/paginator.html index a7559ec..358ae5d 100644 --- a/hyperkitty/templates/paginator.html +++ b/hyperkitty/templates/paginator.html @@ -2,7 +2,7 @@