Skip to content
Snippets Groups Projects
Verified Commit f9d9c98b authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Show group owners correctly

parent 65380440
No related branches found
No related tags found
1 merge request!31Biscuit merge. Closes #53.
......@@ -40,14 +40,13 @@
</h4>
{# Show class teacher and deputy class teacher #}
{% if type == 2 and el.teachers %}
{% if type == "group" and el.owners.all %}
<h5>Klassenlehrkräfte:
{% for teacher in el.teachers %}
{% for teacher in el.owners.all %}
<span data-position="bottom" class="tooltipped"
data-tooltip="{{ teacher }}">
<a href="{% url "timetable" "teacher" teacher.id %}">
{{ teacher.shortcode }}</a></span>{% if not forloop.last %},{% endif %}
<a href="{% url "timetable" "teacher" teacher.pk %}">
{{ teacher.short_name }}</a></span>{% if not forloop.last %},{% endif %}
{% endfor %}
</h5>
{% endif %}
......
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