Skip to content
Snippets Groups Projects
Commit 17c05776 authored by Frank Poetzsch-Heffter's avatar Frank Poetzsch-Heffter
Browse files

dashboard cache length, look header Klassenlehrkraefte

parent 6f480656
No related branches found
No related tags found
No related merge requests found
......@@ -46,16 +46,14 @@
{# Show class teacher and deputy class teacher #}
{% if type == 2 and el.teachers %}
<h6>Klassenlehrkraft:
<h5>Klassenlehrkräfte:
<span data-position="bottom" class="tooltipped"
data-tooltip="{{ el.teachers.0 }}">
<a href="{% url "timetable_smart_plan" "teacher" el.teachers.0.id %}">
{{ el.teachers.0.shortcode }}
</a>
</a>,
</span>
{# {{ el.teachers.0.shortcode }}#}
{% if el.teachers.1 %}
· Vertretung:
<span data-position="bottom" class="tooltipped"
data-tooltip="{{ el.teachers.1 }}">
<a href="{% url "timetable_smart_plan" "teacher" el.teachers.1.id %}">
......@@ -63,7 +61,7 @@
</a>
</span>
{% endif %}
</h6>
</h5>
{% endif %}
</div>
{# Show print button only if not on mobile #}
......
......@@ -27,8 +27,9 @@ try:
path('<str:plan_date>-aktuell.pdf', views.sub_pdf, name="timetable_substitutions_pdf_date")
]
except (Terms.DoesNotExist, Schoolyear.DoesNotExist, ProgrammingError, OperationalError):
except (Terms.DoesNotExist, Schoolyear.DoesNotExist, ProgrammingError, OperationalError) as e:
from . import fallback_view
print(e)
urlpatterns = [
path('hints', fallback_view.fallback, name="timetable_hints"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment