summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2012-10-09 18:04:40 +0200
committerAurélien Bompard <aurelien@bompard.org>2012-10-09 18:04:40 +0200
commit1cc470db0151443fda2ba06e450d6a6cc82a2d90 (patch)
tree468c503017fc482f091cb515530f4dfd7d242416 /hyperkitty/templates
parente100457ddce07e3546bde6144c7095c56aebc691 (diff)
downloadhyperkitty-1cc470db0151443fda2ba06e450d6a6cc82a2d90.tar.gz
hyperkitty-1cc470db0151443fda2ba06e450d6a6cc82a2d90.tar.xz
hyperkitty-1cc470db0151443fda2ba06e450d6a6cc82a2d90.zip
Add thread navigation buttons
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r--hyperkitty/templates/thread.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/hyperkitty/templates/thread.html b/hyperkitty/templates/thread.html
index 78b4891..20181b8 100644
--- a/hyperkitty/templates/thread.html
+++ b/hyperkitty/templates/thread.html
@@ -1,6 +1,7 @@
{% extends "base.html" %}
{% load gravatar %}
+{% load storm %}
{% block additional_stylesheets %}
<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/thread.css" />
@@ -9,6 +10,13 @@
{% block content %}
<header>
+ {% for thread in neighbors %}
+ {% if thread %}
+ <a class="thread-{% ifequal forloop.counter 1 %}older{% else %}newer{% endifequal %}"
+ href="{% url thread threadid=thread.thread_id, mlist_fqdn=list_address %}"
+ >{{ thread.subject|strip_subject:mlist|truncatesmart:"25" }}</a>
+ {% endif %}
+ {% endfor %}
<h1>{{ subject }}</h1>
</header>