From 68c811bea204619086bd076585837d64524e1a75 Mon Sep 17 00:00:00 2001 From: Joseph Walton-Rivers <jwalto@essex.ac.uk> Date: Thu, 10 May 2018 11:59:18 +0100 Subject: [PATCH] update timetable to remove wednesday afternoons --- _data/timetable.json | 4 ++-- _templates/timetable.html | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/_data/timetable.json b/_data/timetable.json index f2a0380..147c4f8 100644 --- a/_data/timetable.json +++ b/_data/timetable.json @@ -20,7 +20,7 @@ "tuesday_pm": ["Game Design Hack", "recap"], "wednesday_am": ["Game Design Hack", "recap"], - "wednesday_pm": ["Game Design Hack", "recap"], + "wednesday_pm": ["", "break"], "thursday_am": ["Game Design Hack", "recap"], "thursday_pm": ["Play Testing", "recap"], @@ -38,7 +38,7 @@ "tuesday_pm": ["AI Experiments & Candidate Games", "recap"], "wednesday_am": ["User Testing", "recap"], - "wednesday_pm": ["User Testing", "recap"], + "wednesday_pm": ["", "break"], "thursday_am": ["Report & Presentation", "recap"], "thursday_pm": ["Report & Presentation", "recap"], diff --git a/_templates/timetable.html b/_templates/timetable.html index 9a5c78a..67bd9d4 100644 --- a/_templates/timetable.html +++ b/_templates/timetable.html @@ -30,7 +30,11 @@ {% set sess_slug = '{}_{}'.format(day, key) -%} {% if sess_slug in data[wk_key] %} + {% if data[wk_key][sess_slug][1] in breaks %} + <td class="table-secondary">{{data[wk_key][sess_slug][0]}}</td> + {% else %} <td>{{data[wk_key][sess_slug][0]}}</td> + {% endif %} {% else %} <td class="table-warning">Not defined</td> {% endif %} -- GitLab