Merged in [16088] from rcross@amsl.com:

Fix multiple issues with secretariat non-session view, including indicator of cancelled sessions.  Fixes #2701.
 - Legacy-Id: 16097
Note: SVN reference [16088] has been migrated to Git commit 41966122dd
This commit is contained in:
Henrik Levkowetz 2019-03-24 15:04:43 +00:00
commit 5707df2770

View file

@ -24,7 +24,7 @@
</thead>
<tbody>
{% for assignment in assignments %}
<tr class="{% cycle row1 row2 %}{% ifchanged item.type %} break{% endifchanged %}{% if item.session.status.slug == "canceled" %} cancelled{% endif %}">
<tr class="{% cycle 'row1' 'row2' %}{% ifchanged assignment.session.type %} break{% endifchanged %}{% if assignment.session.status.slug == "canceled" %} cancelled{% endif %}">
<td>{{ assignment.timeslot.time|date:"D" }}</td>
<td>{{ assignment.timeslot.time|date:"H:i" }}-{{ assignment.timeslot.end_time|date:"H:i" }}</td>
<td>{{ assignment.timeslot.name }}</td>