From ab84e71910738a653199c60c9692f84f031bd7cf Mon Sep 17 00:00:00 2001
From: Julian Leucker <leuckerj@gmail.com>
Date: Sun, 13 Jun 2021 11:01:30 +0200
Subject: [PATCH] Replace headings with correct levels

---
 aleksis/apps/chronos/templates/chronos/all.html          | 6 +++---
 aleksis/apps/chronos/templates/chronos/lessons_day.html  | 2 +-
 aleksis/apps/chronos/templates/chronos/my_timetable.html | 4 ++--
 .../apps/chronos/templates/chronos/substitutions.html    | 4 ++--
 aleksis/apps/chronos/templates/chronos/timetable.html    | 9 +++++----
 5 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/aleksis/apps/chronos/templates/chronos/all.html b/aleksis/apps/chronos/templates/chronos/all.html
index bedf5ca1..992689bd 100644
--- a/aleksis/apps/chronos/templates/chronos/all.html
+++ b/aleksis/apps/chronos/templates/chronos/all.html
@@ -14,7 +14,7 @@
 {% block content %}
   <div class="row">
     <div class="col s12 m4">
-      <h5>{% trans "Teachers" %}</h5>
+      <h2>{% trans "Teachers" %}</h2>
 
       {% for teacher in teachers %}
         <a class="waves-effect waves-light btn btn-timetable-quicklaunch primary"
@@ -25,7 +25,7 @@
     </div>
 
     <div class="col s12 m4">
-      <h5>{% trans "Groups" %}</h5>
+      <h2>{% trans "Groups" %}</h2>
 
       {% for class in classes %}
         <a class="waves-effect waves-light btn btn-timetable-quicklaunch primary"
@@ -36,7 +36,7 @@
     </div>
 
     <div class="col s12 m4">
-      <h5>{% trans "Rooms" %}</h5>
+      <h2>{% trans "Rooms" %}</h2>
 
       {% for room in rooms %}
         <a class="waves-effect waves-light btn btn-timetable-quicklaunch primary"
diff --git a/aleksis/apps/chronos/templates/chronos/lessons_day.html b/aleksis/apps/chronos/templates/chronos/lessons_day.html
index 46feace7..660878fa 100644
--- a/aleksis/apps/chronos/templates/chronos/lessons_day.html
+++ b/aleksis/apps/chronos/templates/chronos/lessons_day.html
@@ -16,7 +16,7 @@
 
   <div class="row no-margin">
     <div class="col s12 m6 l8 no-padding">
-      <h4>{% blocktrans %}Lessons{% endblocktrans %} {{ day|date:"l" }}, {{ day }}</h4>
+      <h1>{% blocktrans %}Lessons{% endblocktrans %} {{ day|date:"l" }}, {{ day }}</h1>
     </div>
     <div class="col s12 m6 l4 no-padding">
       {% include "chronos/partials/datepicker.html" %}
diff --git a/aleksis/apps/chronos/templates/chronos/my_timetable.html b/aleksis/apps/chronos/templates/chronos/my_timetable.html
index 10175bfa..1408ec23 100644
--- a/aleksis/apps/chronos/templates/chronos/my_timetable.html
+++ b/aleksis/apps/chronos/templates/chronos/my_timetable.html
@@ -14,10 +14,10 @@
 {% block content %}
   <div class="row no-margin">
     <div class="col s12">
-      <h4>
+      <h1>
         {% trans "My timetable" %} <i>{{ el }}</i>
         <span class="badge new primary-color ">{% trans "SMART PLAN" %}</span>
-      </h4>
+      </h1>
       <a class="btn-flat waves-effect waves-light" href="{% url "timetable" super.type.value super.el.pk %}">
         {% trans "Show week timetable for" %} {{ super.el.short_name }}
       </a>
diff --git a/aleksis/apps/chronos/templates/chronos/substitutions.html b/aleksis/apps/chronos/templates/chronos/substitutions.html
index 82e5d403..7da7f610 100644
--- a/aleksis/apps/chronos/templates/chronos/substitutions.html
+++ b/aleksis/apps/chronos/templates/chronos/substitutions.html
@@ -14,7 +14,7 @@
 {% block content %}
   <div class="row no-margin">
     <div class="col s10 m6 no-padding">
-      <h4>{% trans "Substitutions" %}</h4>
+      <h1>{% trans "Substitutions" %}</h1>
     </div>
     <div class="col s2 m6 right align-right print-icon">
       <a class="waves-effect waves-teal btn-flat btn-flat-medium right"
@@ -35,7 +35,7 @@
     </div>
   </div>
 
-  <h5 class="hide-on-small-and-down">{{ day|date:"l" }}, {{ day }}</h5>
+  <h2 class="hide-on-small-and-down">{{ day|date:"l" }}, {{ day }}</h2>
 
   <table class="substitutions striped responsive-table">
     <thead>
diff --git a/aleksis/apps/chronos/templates/chronos/timetable.html b/aleksis/apps/chronos/templates/chronos/timetable.html
index 9f015f8f..a8bb2bd4 100644
--- a/aleksis/apps/chronos/templates/chronos/timetable.html
+++ b/aleksis/apps/chronos/templates/chronos/timetable.html
@@ -9,6 +9,7 @@
 {% endblock %}
 
 {% block browser_title %}{% blocktrans %}Timetable{% endblocktrans %}{% endblock %}
+{% block no_page_title %}{% endblock %}
 {% block content %}
 
   {% if smart %}
@@ -19,20 +20,20 @@
 
   <div class="row no-margin">
     <div class="col s8 m6 l8 xl9">
-      <h4>
+      <h1>
         {% trans "Timetable" %} <i>{{ el }}</i>
-      </h4>
+      </h1>
 
       {# Show class teacher and deputy class teacher #}
       {% if type.value == "group" and el.owners.all %}
-        <h5>{% trans "Group teachers:" %}
+        <h2>{% trans "Group teachers:" %}
           {% for teacher in el.owners.all %}
             <span data-position="bottom" class="tooltipped"
                   data-tooltip="{{ teacher }}">
                             <a href="{% url "timetable" "teacher" teacher.pk %}">
                                 {{ teacher.short_name }}</a></span>{% if not forloop.last %},{% endif %}
           {% endfor %}
-        </h5>
+        </h2>
       {% endif %}
     </div>
     <div class="col s4 m6 l4 xl3 right align-right no-print">
-- 
GitLab