From 7bc6dbe0248e74a518c5f274d4113d176bea1c0c Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Tue, 27 Aug 2019 16:05:11 +0200
Subject: [PATCH] Link from week view to lesson entry.

---
 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 05eb45b9d..f052b1ddc 100644
--- a/biscuit/apps/alsijil/templates/alsijil/group_week.html
+++ b/biscuit/apps/alsijil/templates/alsijil/group_week.html
@@ -32,7 +32,11 @@
          {% for period in periods %}
           <tr>
            <td>{{ period.period.period }}</td>
-           <td>{{ period.lesson.subject.name }}</td>
+           <td>
+             <a href="{% url 'lesson_by_week_and_period' week period.id %}">
+               {{ period.lesson.subject.name }}
+             </a>
+           </td>
            <td>{{ period.lesson.teachers|join:', ' }}</td>
           </tr>
          {% endfor %}
-- 
GitLab