Skip to content
Snippets Groups Projects

Show dates in column headings in weekly timetable view

All threads resolved!
2 files
+ 22
23
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -124,14 +124,14 @@
</div>
{# Show short weekdays on tablets #}
{% for i, day in weekdays_short.items %}
{% for i, weekday, date in weekdays_short %}
<div class="col s2 hide-on-large-only">
<div class="card timetable-title-card">
<div class="card-content">
<span class="card-title">
{{ day.0 }}
{{ weekday }}
</span>
{{ day.1 }}
{{ date }}
{# {% if day.1 %}#}
{# <span class="badge new blue center-align holiday-badge">{{ day.1.0 }}</span>#}
{# {% endif %}#}
@@ -141,14 +141,14 @@
{% endfor %}
{# Show long weekdays elsewere #}
{% for i, day in weekdays.items %}
{% for i, weekday, date in weekdays %}
<div class="col s2 hide-on-med-only">
<div class="card timetable-title-card">
<div class="card-content">
<span class="card-title">
{{ day.0 }}
{{ weekday }}
</span>
{{ day.1 }}
{{ date }}
{# {% if day.1 %}#}
{# <span class="badge new blue center-align holiday-badge">{{ day.1.0 }}</span>#}
{# {% endif %}#}
@@ -178,13 +178,13 @@
{# show 5 seperate ones on mobiles #}
<div class="timetable-plan hide-on-med-and-up">
{% for i, day in weekdays.items %}
{% for i, weekday, date in weekdays %}
<div class="card timetable-mobile-title-card">
<div class="card-content">
<span class="card-title">
{{ day.0 }}
{{ weekday }}
</span>
{{ day.1 }}
{{ date }}
{# {% if day.1 %}#}
{# <span class="badge new blue center-align holiday-badge">{{ day.1.0 }}</span>#}
{# {% endif %}#}
Loading