From eddf9aa5fc49dd53f4c37609151c9c8268076bdd Mon Sep 17 00:00:00 2001 From: Nils Steinger <git@n-st.de> Date: Sun, 8 Nov 2020 01:58:32 +0100 Subject: [PATCH] Reorder AK timeslot columns: Display actual time first --- AKSubmission/templates/AKSubmission/ak_detail.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/AKSubmission/templates/AKSubmission/ak_detail.html b/AKSubmission/templates/AKSubmission/ak_detail.html index 6224ee8c..d9d661ff 100644 --- a/AKSubmission/templates/AKSubmission/ak_detail.html +++ b/AKSubmission/templates/AKSubmission/ak_detail.html @@ -174,9 +174,11 @@ <table class="table"> <thead> <tr> - <th>{% trans "Duration" %}</th> {% if not ak.event.plan_hidden or user.is_staff %} <th>{% trans "When?" %}</th> + {% endif %} + <th>{% trans "Duration" %}</th> + {% if not ak.event.plan_hidden or user.is_staff %} <th>{% trans "Room" %}</th> {% endif %} <th></th> @@ -185,9 +187,11 @@ <tbody> {% for slot in ak.akslot_set.all %} <tr> - <td>{{ slot.duration_simplified }}</td> {% if not ak.event.plan_hidden or user.is_staff %} <td>{{ slot.time_simplified }}</td> + {% endif %} + <td>{{ slot.duration_simplified }}</td> + {% if not ak.event.plan_hidden or user.is_staff %} <td> {% if "AKPlan"|check_app_installed and slot.room %} <a href="{% url 'plan:plan_room' event_slug=ak.event.slug pk=slot.room.pk %}">{{ slot.room }}</a> -- GitLab