From cfe1fe71fbc8bdb9c9c57ecd74bb003dc4f4b6da Mon Sep 17 00:00:00 2001 From: j Date: Sun, 1 Oct 2023 09:16:27 +0200 Subject: [PATCH] link to week --- app/listmonk/views.py | 1 + app/templates/weekly_email.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/listmonk/views.py b/app/listmonk/views.py index 29052b1..7574d74 100644 --- a/app/listmonk/views.py +++ b/app/listmonk/views.py @@ -27,5 +27,6 @@ def week(year, month, day): monday = context['this_week'] = date.strftime('%Y-%m-%d') context['this_year'] = date.strftime('%Y') context['week_title'] = 'Phantas.ma weekly update %s' % format_week(monday) + context['week_link'] = settings.URL + '/_' + monday context['items'] = archive_week return render_to_string("weekly_email.html", context) diff --git a/app/templates/weekly_email.html b/app/templates/weekly_email.html index a81685f..0c2d78d 100644 --- a/app/templates/weekly_email.html +++ b/app/templates/weekly_email.html @@ -1,5 +1,5 @@ {% if week_title %} -

{{ week_title }}

+{{ week_title }}
{% endif %} {% for item in items %}