update templates for genre and other_title change

This commit is contained in:
Your Name 2023-04-17 21:55:33 -04:00 committed by Henri Dickson
parent fa960a2c7a
commit c679aae640
4 changed files with 17 additions and 5 deletions

View file

@ -70,7 +70,10 @@
{% endif %}
</div>
<div>{% if item.genre %}
{% trans '流派:' %}{{ item.genre }}
{% trans '流派:' %}
{% for genre in item.genre %}
<span>{{ genre }}</span>{% if not forloop.last %} / {% endif %}
{% endfor %}
{% endif %}
</div>
<div>{% if item.barcode %}
@ -81,7 +84,10 @@
</div>
<div class="entity-detail__fields">
<div>{% if item.other_title %}
{% trans '又名:' %}{{ item.other_title }}
{% trans '又名:' %}
{% for t in item.other_title %}
<span>{{ t }}</span>{% if not forloop.last %} / {% endif %}
{% endfor %}
{% endif %}
</div>
<div>{% if item.album_type %}

View file

@ -139,7 +139,9 @@
{% endfor %}
{% endif %}</div>
<div>{% if item.other_title %}{% trans '又名:' %}
{{ item.other_title }}
{% for t in item.other_title %}
<span>{{ t }}</span>{% if not forloop.last %} / {% endif %}
{% endfor %}
{% endif %}</div>
<div>{% if item.site %}{% trans '网站:' %}
<a href="{{ item.site }}" target="_blank" rel="noopener">{{ item.site|strip_scheme }}</a>

View file

@ -153,7 +153,9 @@
{% endfor %}
{% endif %}</div>
<div>{% if item.other_title %}{% trans '又名:' %}
{{ item.other_title }}
{% for t in item.other_title %}
<span>{{ t }}</span>{% if not forloop.last %} / {% endif %}
{% endfor %}
{% endif %}</div>
<div>{% if item.site %}{% trans '网站:' %}
<a href="{{ item.site }}" target="_blank" rel="noopener">{{ item.site|strip_scheme }}</a>

View file

@ -151,7 +151,9 @@
{% endfor %}
{% endif %}</div>
<div>{% if item.other_title %}{% trans '又名:' %}
{{ item.other_title }}
{% for t in item.other_title %}
<span>{{ t }}</span>{% if not forloop.last %} / {% endif %}
{% endfor %}
{% endif %}</div>
<div>{% if item.site %}{% trans '网站:' %}
<a href="{{ item.site }}" target="_blank" rel="noopener">{{ item.site|strip_scheme }}</a>