Sort settings page by name

This commit is contained in:
Nicolas Schodet 2018-09-27 22:05:54 +02:00
parent bfa7d6a566
commit d22679f325

View File

@ -34,7 +34,7 @@ input { width: 98%; }
<th>Setting</th>
<th>Value</th>
</tr>
{% for option in configdata.DATA.values() if not option.no_autoconfig %}
{% for option in configdata.DATA.values()|sort(attribute='name') if not option.no_autoconfig %}
<tr>
<!-- FIXME: convert to string properly -->
<td class="setting">{{ option.name }} (Current: {{ confget(option.name) | string |truncate(100) }})