link to week

This commit is contained in:
j 2023-10-01 09:16:27 +02:00
parent e59c9d2f41
commit cfe1fe71fb
2 changed files with 2 additions and 1 deletions

View file

@ -27,5 +27,6 @@ def week(year, month, day):
monday = context['this_week'] = date.strftime('%Y-%m-%d') monday = context['this_week'] = date.strftime('%Y-%m-%d')
context['this_year'] = date.strftime('%Y') context['this_year'] = date.strftime('%Y')
context['week_title'] = 'Phantas.ma weekly update %s' % format_week(monday) context['week_title'] = 'Phantas.ma weekly update %s' % format_week(monday)
context['week_link'] = settings.URL + '/_' + monday
context['items'] = archive_week context['items'] = archive_week
return render_to_string("weekly_email.html", context) return render_to_string("weekly_email.html", context)

View file

@ -1,5 +1,5 @@
{% if week_title %} {% if week_title %}
<h1 style="color: #F0F0F0;text-decoration: underline;font-size: 18px;font-weight: bold">{{ week_title }}</h1> <a style="color: #F0F0F0;text-decoration: underline;" href="{{ week_link }}">{{ week_title }}</a>
<br> <br>
{% endif %} {% endif %}
{% for item in items %} {% for item in items %}