aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAlban Gruin2017-01-24 09:46:24 +0100
committerAlban Gruin2017-01-24 13:22:45 +0100
commit1038c182c050c9357d769341c3ef9d11f2d173f3 (patch)
treebbf305d2f082a222ef84b8c55adfd5f71c320f46 /templates
parent684be8570b6e6c1c4c93ce991c4b91254906ae05 (diff)
Envoi des mails de manière groupé pour ne pas ouvrir trop de connexions au smtp
Diffstat (limited to 'templates')
-rw-r--r--templates/mail_footer.txt2
-rw-r--r--templates/timetable_email.txt5
2 files changed, 2 insertions, 5 deletions
diff --git a/templates/mail_footer.txt b/templates/mail_footer.txt
index 59cb5d6..004abe5 100644
--- a/templates/mail_footer.txt
+++ b/templates/mail_footer.txt
@@ -1 +1 @@
-Pour vous désinscrire de cet emploi du temps, suivez ce lien : {% url "cancel" token %}
+{# Pour vous désinscrire de cet emploi du temps, suivez ce lien : {% url "cancel" token %} #}Pour contacter l'administrateur du service, envoyez un mail à cette adresse : {{ admins|first|last }}
diff --git a/templates/timetable_email.txt b/templates/timetable_email.txt
index f8a4037..dcc07d1 100644
--- a/templates/timetable_email.txt
+++ b/templates/timetable_email.txt
@@ -1,7 +1,4 @@
-{% autoescape off %}{{ subscription.group.timetable.name }} - {{ subscription.group.name }} - Semaine {{ week }}
-
-{% for day in courses %}
-{{ day.0.begin|date:"l j F o" }} - de {{ day.0.begin|date:"H:i" }} à {% with day|last as last %}{{ last.end|date:"H:i" }}{% endwith %}
+{% autoescape off %}{% for day in courses %}{{ day.0.begin|date:"l j F o" }} - de {{ day.0.begin|date:"H:i" }} à {% with day|last as last %}{{ last.end|date:"H:i" }}{% endwith %}
{% for course in day %}
* {{ course.name }}, de {{ course.begin|date:"H:i" }} à {{ course.end|date:"H:i" }}{% if course.rooms.all|length > 0 %}
Salle{% if course.rooms.all|length > 1 %}s{% endif %} {% for room in course.rooms.all %}{{ room }} {% endfor %}{% endif %}