Improve property page

Allow sorting property values by name
Use label from different language if English label is missing
This commit is contained in:
Edward Betts 2019-09-14 13:26:16 +01:00
parent 3215333caf
commit a20666f9d4
3 changed files with 67 additions and 16 deletions

View file

@ -8,6 +8,14 @@
<p><a href="{{ url_for('index') }}">back to index</a></p>
<p>Sort order:
{% if order == 'name' %}
<b>name</b> or <a href="?sort=count">count</a>
{% else %}
<a href="?sort=name">name</a> or <b>count</b>
{% endif %}
</p>
<ul>
{% for row in rows if '/' in row.object.value %}
{% set qid = row.object.value.rpartition('/')[2] %}