From 443e54521c01ce223e87e21a2ad1718b0cff1b16 Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Tue, 17 Nov 2020 17:15:22 +0100 Subject: [PATCH] Show substitution comment on all plans independent of any extra conditions --- aleksis/apps/chronos/templates/chronos/partials/lesson.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aleksis/apps/chronos/templates/chronos/partials/lesson.html b/aleksis/apps/chronos/templates/chronos/partials/lesson.html index 5230c945..70ef9e72 100644 --- a/aleksis/apps/chronos/templates/chronos/partials/lesson.html +++ b/aleksis/apps/chronos/templates/chronos/partials/lesson.html @@ -52,11 +52,11 @@ {% endif %} - {# When it isn't a room or the old plan, then display the extra text (e. g. work orders) #} - {% if not lesson_period.room == lesson_period.get_room and lesson_period.get_room != el and sub.comment %} + {# Display the comment (e. g. work orders) #} + {% if sub.comment %} <br> <small> - <em>{{ lesson_period.get_substitution.comment }}</em> + <em>{{ sub.comment }}</em> </small> {% endif %} {% endwith %} -- GitLab