From 8b889eba2bdcf2dc443132768518dd88ed850747 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Wed, 4 Sep 2019 20:03:21 +0200 Subject: [PATCH] Highlight lessons without documentation if day has past. Closes #9. --- biscuit/apps/alsijil/templates/alsijil/group_week.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/biscuit/apps/alsijil/templates/alsijil/group_week.html b/biscuit/apps/alsijil/templates/alsijil/group_week.html index a620f1fa9..319911a3d 100644 --- a/biscuit/apps/alsijil/templates/alsijil/group_week.html +++ b/biscuit/apps/alsijil/templates/alsijil/group_week.html @@ -43,7 +43,11 @@ {% if period.has_documentation %} table-success {% else %} - table-warning + {% weekday_to_date week weekday as current_date %} + {% today as today %} + {% if current_date < today %} + table-danger + {% endif %} {% endif %} "> <td>{{ period.period.period }}</td> -- GitLab