some minor template improvements

This commit is contained in:
2026-05-31 17:22:45 +03:00
parent c0eb867b2d
commit 74a95075f7
3 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
<form class="plank primary-bg full-width" method="POST">
<label for="topic">Topic</label>
<select name="topic_id" id="topic" autocomplete="off">
{%- for topic in topics -%}
{%- for topic in topics | sort(attribute='sort_order') -%}
<option value="{{topic.id}}" {{'selected' if selected_topic == topic.id else ''}} {{'disabled' if not get_active_user().can_post_to_thread_or_topic(topic) else ''}}>{{topic.name}}{{ ' (locked)' if topic.locked() else ''}}</option>
{%- endfor -%}
</select>