link to week
This commit is contained in:
parent
e59c9d2f41
commit
cfe1fe71fb
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% 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>
|
||||
{% endif %}
|
||||
{% for item in items %}
|
||||
|
|
Loading…
Reference in a new issue