diff --git a/templates/admin_event_show.html b/templates/admin_event_show.html index 9456c03e98ea293c3f1a5502688bf57e5fcaac50..875c8e5c8f1e7a6e3d2b288477c3639bf1a72893 100644 --- a/templates/admin_event_show.html +++ b/templates/admin_event_show.html @@ -13,7 +13,7 @@ </tr> </thead> <tbody> - {% for topic in event.topics %} + {% for topic in event.sorted_topics() %} <tr> <td class="mdl-data-table__cell--non-numeric"><a href="{{ url_for(".topic_show", id=topic.id) }}">{{ topic.name }}</a></td> <td class="mdl-data-table__cell--non-numeric">{{ topic.mode }}</td> diff --git a/templates/content_index.html b/templates/content_index.html index d7716a523d29ceeee878d73182660920f4190646..5d7921b7ee047f4fe91649f6cf5251a57f0ee02d 100644 --- a/templates/content_index.html +++ b/templates/content_index.html @@ -10,7 +10,7 @@ {% endif %} </h4> </div> - {% for topic in event.topics %} + {% for topic in event.sorted_topics() %} <div class="mdl-card__supporting-text {% if topic.id == event.current_topic_id %}rede-list-point-big{% endif %}"> {{ topic.name }} </div> diff --git a/templates/speech_content_index.html b/templates/speech_content_index.html index eb077fb608a22a35158ec4499a092328397accd5..21f65b66e2522bea04739ca17ac5cff59d791913 100644 --- a/templates/speech_content_index.html +++ b/templates/speech_content_index.html @@ -18,7 +18,7 @@ </tr> </thead> <tbody> - {% for topic in event.topics %} + {% for topic in event.sorted_topics() %} {% if topic.id == event.current_topic_id %} <tr class="rede-table-bg-blue rede-table-centered"> <td colspan="2">{{ topic.name }}</td>