From 2a86c53d6408281a0269fcc2355ec5b602295aa1 Mon Sep 17 00:00:00 2001
From: Julian Leucker <leuckerj@gmail.com>
Date: Mon, 15 Jun 2020 16:22:22 +0200
Subject: [PATCH] Make any text in the week view table clickable

---
 .../alsijil/templates/alsijil/week_view.html  | 20 +++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

diff --git a/aleksis/apps/alsijil/templates/alsijil/week_view.html b/aleksis/apps/alsijil/templates/alsijil/week_view.html
index ecb9ed79d..39a25823e 100644
--- a/aleksis/apps/alsijil/templates/alsijil/week_view.html
+++ b/aleksis/apps/alsijil/templates/alsijil/week_view.html
@@ -34,7 +34,7 @@
 
   {% if lesson_periods %}
     <div class="row">
-      <div class="col s7">
+      <div class="col s12 m7">
         {% regroup lesson_periods by period.get_weekday_display as periods_by_day %}
         {% for weekday, periods in periods_by_day %}
           <div class="card">
@@ -42,7 +42,7 @@
               <span class="card-title">
                 {{ weekday }}
               </span>
-              <table class="striped responsive-table datatable">
+              <table class="striped datatable">
                 <thead>
                 <tr>
                   <th>{% blocktrans %}Period{% endblocktrans %}</th>
@@ -70,13 +70,21 @@
                         {% endif %}
                       {% endif %}
                     ">
-                    <td>{{ period.period.period }}</td>
+                    <td class="tr-link">
+                      <a class="tr-link" href="{% url 'lesson_by_week_and_period' week.year week.week period.id %}">
+                        {{ period.period.period }}
+                      </a>
+                    </td>
                     <td>
-                      <a href="{% url 'lesson_by_week_and_period' week.year week.week period.id %}">
+                      <a class="tr-link" href="{% url 'lesson_by_week_and_period' week.year week.week period.id %}">
                         {{ period.get_subject.name }}
                       </a>
                     </td>
-                    <td>{{ period.get_teacher_names }}</td>
+                    <td>
+                      <a class="tr-link" href="{% url 'lesson_by_week_and_period' week.year week.week period.id %}">
+                        {{ period.get_teacher_names }}
+                      </a>
+                    </td>
                   </tr>
                 {% endfor %}
                 </tbody>
@@ -85,7 +93,7 @@
           </div>
         {% endfor %}
       </div>
-      <div class="col s5">
+      <div class="col s12 m5">
         <div class="card">
           <div class="card-content">
             <span class="card-title">
-- 
GitLab