diff --git a/app/templates/_gallery_item.html b/app/templates/_gallery_item.html index 61bf992..1b0bb3d 100644 --- a/app/templates/_gallery_item.html +++ b/app/templates/_gallery_item.html @@ -10,27 +10,24 @@ {% set visible_tags = image.tags | rejectattr('kind', 'in', ['archive', 'source']) | list %} {% if visible_tags %} + {% set KIND_EMOJI = { + 'artist': '🎨', + 'character': '👤', + 'series': '📺', + 'fandom': '🎭', + 'meta': '⚠️', + 'rating': '⚠️', + 'post': '📌', + 'archive': '📦', + 'user': '#', + } %}
{% for t in visible_tags %} - - {% if t.kind == 'artist' %} - 🎨 {{ t.name.split(':', 1)[1] if ':' in t.name else t.name }} - {% elif t.kind == 'character' %} - 👤 {{ t.name.split(':', 1)[1] if ':' in t.name else t.name }} - {% elif t.kind == 'series' %} - 📺 {{ t.name.split(':', 1)[1] if ':' in t.name else t.name }} - {% elif t.kind == 'fandom' %} - 🎭 {{ t.name.split(':', 1)[1] if ':' in t.name else t.name }} - {% elif t.kind == 'rating' %} - ⚠️ {{ t.name.split(':', 1)[1] if ':' in t.name else t.name }} - {% elif t.kind == 'post' %} - 📌 {{ t.name.split(':', 1)[1] if ':' in t.name else t.name }} - {% else %} - #{{ t.name }} - {% endif %} + {{ KIND_EMOJI.get(t.kind, '#') }} {{ t.display_name }} {% endfor %}