From 3a9f3ec8100e8e5437c1286932e043ce4836ed6a Mon Sep 17 00:00:00 2001
From: Jonathan Weth <git@jonathanweth.de>
Date: Fri, 10 Jan 2020 12:01:52 +0100
Subject: [PATCH] Change vars in plan.html to show the grid correctly

---
 .../apps/chronos/templates/chronos/plan.html   | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/aleksis/apps/chronos/templates/chronos/plan.html b/aleksis/apps/chronos/templates/chronos/plan.html
index a8a345c4..d3812a21 100644
--- a/aleksis/apps/chronos/templates/chronos/plan.html
+++ b/aleksis/apps/chronos/templates/chronos/plan.html
@@ -161,9 +161,9 @@
                             <span class="card-title">
                                 {{ day.1 }}
                             </span>
-{#              {% if day.1 %}#}
-{#                <span class="badge new blue center-align holiday-badge">{{ day.1.0 }}</span>#}
-{#              {% endif %}#}
+              {#              {% if day.1 %}#}
+              {#                <span class="badge new blue center-align holiday-badge">{{ day.1.0 }}</span>#}
+              {#              {% endif %}#}
             </div>
           </div>
         </div>
@@ -177,9 +177,9 @@
                             <span class="card-title">
                                 {{ day.1 }}
                             </span>
-{#              {% if day.1 %}#}
-{#                <span class="badge new blue center-align holiday-badge">{{ day.1.0 }}</span>#}
-{#              {% endif %}#}
+              {#              {% if day.1 %}#}
+              {#                <span class="badge new blue center-align holiday-badge">{{ day.1.0 }}</span>#}
+              {#              {% endif %}#}
             </div>
           </div>
         </div>
@@ -211,10 +211,10 @@
           </div>
 
         </div>
-        {% for col in row %}
+        {% for weekday, lesson in lesson_periods_period.items %}
           {# A lesson #}
           <div class="col s2">
-            {% include "timetable/lesson.html" %}
+            {% include "chronos/lesson.html" %}
           </div>
         {% endfor %}
       </div>
@@ -256,7 +256,7 @@
             </div>
 
           </div>
-          {% for col in row %}
+          {% for weekday, col in row %}
             {% if forloop.counter0 == day.0.1 %}
               <div class="col s8">
                 {# A lesson #}
-- 
GitLab