From a566515434e74a553a558550816acf0369896ddc Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Wed, 4 Sep 2019 19:35:58 +0200
Subject: [PATCH] Highlight lessons with documentations. Advances #9.

---
 biscuit/apps/alsijil/templates/alsijil/group_week.html | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/biscuit/apps/alsijil/templates/alsijil/group_week.html b/biscuit/apps/alsijil/templates/alsijil/group_week.html
index ae51de99e..a620f1fa9 100644
--- a/biscuit/apps/alsijil/templates/alsijil/group_week.html
+++ b/biscuit/apps/alsijil/templates/alsijil/group_week.html
@@ -39,7 +39,13 @@
               </thead>
               <tbody>
                 {% for period in periods %}
-                  <tr>
+                  <tr class="
+                    {% if period.has_documentation %}
+                      table-success
+                    {% else %}
+                      table-warning
+                    {% endif %}
+                  ">
                     <td>{{ period.period.period }}</td>
                     <td>
                       <a href="{% url 'lesson_by_week_and_period' week period.id %}">
-- 
GitLab