Skip to content

Commit dfdd903

Browse files
committed
Mail: Fix usage of 'as' for variables using firstof
1 parent 50d563a commit dfdd903

File tree

2 files changed

+4
-4
lines changed
  • gcampus/mail/templates/gcampusmail

2 files changed

+4
-4
lines changed

gcampus/mail/templates/gcampusmail/access_key_deactivation/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
{% block content %}
44
{% translate "Automatic access key deactivation" as header_text %}
55
{% translate "N/A" context "no value provided (water name, comment, etc)" as not_any %}
6-
{% firstof course_name not_any asvar name %}
7-
{% firstof course_school not_any asvar school %}
6+
{% firstof course_name not_any as name %}
7+
{% firstof course_school not_any as school %}
88
{% url "gcampusauth:course-access-keys" as course_url %}
99
{% blocktranslate trimmed asvar content_text with course_url=url name=course_name school=course_school days=days %}
1010
Some access keys of the course you registered on GewässerCampus

gcampus/mail/templates/gcampusmail/course_deletion/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
{% block content %}
44
{% translate "Your course has been deleted" as header_text %}
55
{% translate "N/A" context "no value provided (water name, comment, etc)" as not_any %}
6-
{% firstof course_name not_any asvar name %}
7-
{% firstof course_school not_any asvar school %}
6+
{% firstof course_name not_any as name %}
7+
{% firstof course_school not_any as school %}
88
{% blocktranslate trimmed asvar content_text with name=course_name school=course_school days=days %}
99
The course you registered on GewässerCampus
1010
(course name: {{ name }}, school: {{ school }}) has been deleted

0 commit comments

Comments
 (0)