tag_list: Add title to tag ids for super/sub tags

shown with mouse hover
master
Felix Stupp 2 years ago
parent 0acac98226
commit feecb6b3a1
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -18,6 +18,15 @@
<th>Super Tags</th>
<th>Sub Tags</th>
</tr>
{% macro format_tag(tag) %}
<a title="{{ tag.title }}">{{ tag.id }}</a>
{% endmacro %}
{% macro format_tag_list(tag_list) %}
{% for tag in tag_list|sort(attribute="id") %}
{{ format_tag(tag) }}
{{ " | " if not loop.last }}
{% endfor %}
{% endmacro %}
{% for tag in tag_list %}
<tr>
<td>
@ -30,10 +39,10 @@
{{ tag.use_for_preferences | tenary("Yes", "no") }}
</td>
<td>
{{ tag.super_tag_list | map(attribute="id") | join(",") }}
{{ format_tag_list(tag.super_tag_list) }}
</td>
<td>
{{ tag.sub_tag_list | map(attribute="id") | join(",") }}
{{ format_tag_list(tag.sub_tag_list) }}
</td>
</tr>
{% endfor %}

Loading…
Cancel
Save