diff --git a/example_project/settings.py b/example_project/settings.py index ca985b1..c5480d7 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -114,6 +114,7 @@ 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', + 'django_mailman3.context_processors.common', 'postorius.context_processors.postorius', ], }, diff --git a/src/postorius/context_processors.py b/src/postorius/context_processors.py index 934651f..8b5c284 100644 --- a/src/postorius/context_processors.py +++ b/src/postorius/context_processors.py @@ -36,19 +36,6 @@ 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, - # Resolve the login and logout URLs from the settings - 'login_url': resolve_url(settings.LOGIN_URL), - 'logout_url': resolve_url(settings.LOGOUT_URL), } diff --git a/src/postorius/templates/postorius/base.html b/src/postorius/templates/postorius/base.html index e2c51d6..4a23128 100644 --- a/src/postorius/templates/postorius/base.html +++ b/src/postorius/templates/postorius/base.html @@ -43,10 +43,10 @@
diff --git a/src/postorius/templates/postorius/lists/summary.html b/src/postorius/templates/postorius/lists/summary.html index 72b7b04..27a70a7 100644 --- a/src/postorius/templates/postorius/lists/summary.html +++ b/src/postorius/templates/postorius/lists/summary.html @@ -60,7 +60,7 @@ {% endif %} {% else %}{% trans 'If you want to subscribe to this list, you have to log in first.' %}
- + {% endif %} {# List metrics #}