From 48ef815d8da30c4ee32c7325af5fdefb4ec4b39c Mon Sep 17 00:00:00 2001
From: Jonathan Weth <git@jonathanweth.de>
Date: Thu, 15 Aug 2019 20:59:12 +0200
Subject: [PATCH] Bug fixes in timetable (issue #248)

---
 biscuit/apps/chronos/templates/timetable/latex/room.tex | 4 ++--
 biscuit/apps/chronos/templates/timetable/subs/room.html | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/biscuit/apps/chronos/templates/timetable/latex/room.tex b/biscuit/apps/chronos/templates/timetable/latex/room.tex
index 71429ce5..d9e63821 100644
--- a/biscuit/apps/chronos/templates/timetable/latex/room.tex
+++ b/biscuit/apps/chronos/templates/timetable/latex/room.tex
@@ -1,8 +1,8 @@
 {% if not sub.is_event %}{% if sub.sub.type == 3 %}
 {{ sub.sub.corridor.name }}
 {% elif sub.sub.type == 1 or sub.sub.type == 2 %}
-{% elif sub.sub.roow_new and sub.sub.room_old %}
-{% templatetag openbrace %}{{ sub.sub.room_old.shortcode }}}
+{% elif sub.sub.room_new and sub.sub.room_old %}
+\sout{% templatetag openbrace %}{{ sub.sub.room_old.shortcode }}}
 $\rightarrow$
 {{ sub.sub.room_new.shortcode }}
 {% elif sub.sub.room_new and not sub.sub.room_old %}
diff --git a/biscuit/apps/chronos/templates/timetable/subs/room.html b/biscuit/apps/chronos/templates/timetable/subs/room.html
index 8dd1822a..70c1afb0 100644
--- a/biscuit/apps/chronos/templates/timetable/subs/room.html
+++ b/biscuit/apps/chronos/templates/timetable/subs/room.html
@@ -4,7 +4,7 @@
         {{ sub.sub.corridor.name }}
     {% elif sub.sub.type == 1 or sub.sub.type == 2 %}
         {# Canceled lesson: no room #}
-    {% elif sub.sub.roow_new and sub.sub.room_old %}
+    {% elif sub.sub.room_new and sub.sub.room_old %}
         {# New and old room available #}
         <span class="tooltipped" data-position="bottom"
               data-tooltip="{{ sub.sub.room_old.name }} → {{ sub.sub.room_new.name }}">
-- 
GitLab