diff --git a/src/postorius/context_processors.py b/src/postorius/context_processors.py
index 5895b84..6a9a4b4 100644
--- a/src/postorius/context_processors.py
+++ b/src/postorius/context_processors.py
@@ -15,8 +15,12 @@
#
# You should have received a copy of the GNU General Public License along with
# Postorius. If not, see .
+
import logging
+from django.conf import settings
+from django.core.urlresolvers import reverse, NoReverseMatch
+
logger = logging.getLogger(__name__)
@@ -31,7 +35,16 @@
else:
template_to_extend = "postorius/base.html"
+ # Find the HyperKitty URL if installed
+ hyperkitty_url = False
+ if "hyperkitty" in settings.INSTALLED_APPS:
+ try:
+ hyperkitty_url = reverse("hk_root")
+ except NoReverseMatch:
+ pass
+
return {
'postorius_base_template': template_to_extend,
'request': request,
+ 'hyperkitty_url': hyperkitty_url,
}
diff --git a/src/postorius/templates/postorius/lists/summary.html b/src/postorius/templates/postorius/lists/summary.html
index 99fc33a..33185f7 100644
--- a/src/postorius/templates/postorius/lists/summary.html
+++ b/src/postorius/templates/postorius/lists/summary.html
@@ -14,12 +14,20 @@
{% trans 'Description' %}
{{list.settings.description }}
-
+
+ {% if hyperkitty_url %}
+ {% trans 'Archived messages' %}
+ {% blocktrans %}
+ To see the prior postings to this list, visit
+ the archives.
+ {% endblocktrans %}
+ {% endif %}
+
+ {% trans 'Subscription' %}
{% if user.is_authenticated %}
{% if userSubscribed %}
{% trans "Unsubscribe" %}
{% else %}
- {% trans 'Subscribe to this list' %}