diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d2e53a3391986b695f0d3b2a8c6651b6abc271ac..4eaebe0e9dbc4ca108c079220d5a737f201df3e7 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -18,6 +18,7 @@ Fixed ~~~~~ * Events replace normal lesson periods in all views. +* Announcements weren't shown on substitutions printout. `2.0`_ - 2021-10-30 ------------------- diff --git a/aleksis/apps/chronos/templates/chronos/substitutions_print.html b/aleksis/apps/chronos/templates/chronos/substitutions_print.html index c94a512512ea94e6146f05a84118a531c4e3c854..ddec56800f5f5742bbd213a7c1d468fc83958640 100644 --- a/aleksis/apps/chronos/templates/chronos/substitutions_print.html +++ b/aleksis/apps/chronos/templates/chronos/substitutions_print.html @@ -16,7 +16,7 @@ {% for day, c in days.items %} <h4>{{ c.day|date:"l" }} {{ c.day|date:"SHORT_DATE_FORMAT" }}</h4> - {% include "core/partials/announcements.html" with announcements=announcements show_recipients=1 %} + {% include "core/partials/announcements.html" with announcements=c.announcements show_recipients=1 %} {% include "chronos/partials/headerbox.html" with affected_teachers=c.affected_teachers affected_groups=c.affected_groups absent_teachers=c.absent_teachers absent_groups=c.absent_groups print=1 %}