From 8117ad5434687064b1494163ef3ea778bbd28e69 Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Sat, 7 Sep 2019 16:46:59 +0200
Subject: [PATCH] Fix css classes.

---
 biscuit/apps/chronos/templates/chronos/tt_lesson.html | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/biscuit/apps/chronos/templates/chronos/tt_lesson.html b/biscuit/apps/chronos/templates/chronos/tt_lesson.html
index 0d49af53..86994d3a 100644
--- a/biscuit/apps/chronos/templates/chronos/tt_lesson.html
+++ b/biscuit/apps/chronos/templates/chronos/tt_lesson.html
@@ -1,11 +1,10 @@
 {# -*- engine:django -*- #}
 
 <div class="card chronos-lesson
-  {% if lesson_period.get_substitution %}
-  border border-warning
-  {% endif %}
   {% if lesson_period.get_substitution.cancelled %}
   border border-danger chronos-lesson-cancelled
+  {% elif lesson_period.get_substitution %}
+   border border-warning
   {% endif %}
   "
   style="
-- 
GitLab