From f8bc6d8e3e384863a063c51d72371c00f2438d5e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Benjamin=20H=C3=A4ttasch?=
 <benjamin.haettasch@fachschaft.informatik.tu-darmstadt.de>
Date: Sat, 16 Jan 2021 19:43:21 +0100
Subject: [PATCH] AKSubmission: Show placeholder for slots with nonspecified
 rooms in slot table on AK detail page

---
 AKSubmission/templates/AKSubmission/ak_detail.html | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/AKSubmission/templates/AKSubmission/ak_detail.html b/AKSubmission/templates/AKSubmission/ak_detail.html
index d9d661ff..7dd41ea5 100644
--- a/AKSubmission/templates/AKSubmission/ak_detail.html
+++ b/AKSubmission/templates/AKSubmission/ak_detail.html
@@ -193,10 +193,14 @@
                 <td>{{ slot.duration_simplified }}</td>
                 {% if not ak.event.plan_hidden or user.is_staff %}
                     <td>
-                        {% if "AKPlan"|check_app_installed and slot.room %}
-                            <a href="{% url 'plan:plan_room' event_slug=ak.event.slug pk=slot.room.pk %}">{{ slot.room }}</a>
+                        {% if slot.room %}
+                            {% if "AKPlan"|check_app_installed %}
+                                <a href="{% url 'plan:plan_room' event_slug=ak.event.slug pk=slot.room.pk %}">{{ slot.room }}</a>
+                            {% else %}
+                                {{ slot.room }}
+                            {% endif %}
                         {% else %}
-                            {{ slot.room }}
+                            -
                         {% endif %}
                     </td>
                 {% endif %}
-- 
GitLab