Adjust tracks on mobile schedule

Only display track if slot is not exclusive. Always use the first room
assisgned to the slot to determine the track name.
This commit is contained in:
Joel Addison 2019-12-15 20:56:54 +10:00
parent 40f3169aba
commit bc6e0d7675

View file

@ -33,8 +33,8 @@
{% endwith %}
<p><em>
{% if has_tracks %}
{% with slot.rooms|listlookup:forloop.counter0|trackname:timetable.day as track_name %}
{% if has_tracks and not slot.exclusive %}
{% with slot.rooms.0|trackname:timetable.day as track_name %}
{% if track_name %}{{ track_name }} &mdash; {% endif %}
{% endwith %}
{% endif %}