diff --git a/biscuit/apps/chronos/templates/timetable/plan.html b/biscuit/apps/chronos/templates/timetable/plan.html index 69a1a496e8a5b1d1d63f1c3bd94698f7aca9c815..9ffbc7a1423e00178bff34c57c091f151ce2b094 100755 --- a/biscuit/apps/chronos/templates/timetable/plan.html +++ b/biscuit/apps/chronos/templates/timetable/plan.html @@ -1,5 +1,6 @@ {% include 'partials/header.html' %} {% load copy_filter %} +{% load list_filter %} <script type="text/javascript"> {% if smart %} var week = {{ selected_week }}; @@ -223,13 +224,13 @@ </div> </div> - {% for col in row %} - {% if forloop.counter0 == long_week_days.0.1 %} - <div class="col s8"> - {# A lesson #} - {% include "timetable/lesson.html" %} - </div> - {% endif %} + {% for col in row|deepcopy %} + {% if forloop.counter0 == day.0.1 %} + <div class="col s8"> + {# A lesson #} + {% include "timetable/lesson.html" %} + </div> + {% endif %} {% endfor %} </div> {% endfor %}