lib.itmens/catalog/templates/_item_card_metadata_edition.html
2025-01-01 10:54:40 -05:00

25 lines
963 B
HTML

{% extends "_item_card_metadata_base.html" %}
{% load humanize %}
{% load i18n %}
{% block brief %}
<div class="multi-fields">
{% if item.rating %}
<span class="solo-hidden">{{ item.rating | floatformat:1 }} <small>({{ item.rating_count }} {% trans "ratings" %})</small></span>
{% endif %}
{% include '_people.html' with people=item.author role='author' max=2 %}
{% include '_people.html' with people=item.translator role='translator' max=2 %}
{% if item.pub_house %}<span>{{ item.pub_house }}</span>{% endif %}
{% if item.pub_year %}
<span>
{{ item.pub_year }}
{% if item.pub_month %}- {{ item.pub_month }}{% endif %}
</span>
{% endif %}
{% include '_people.html' with people=item.additional_title role='other title' max=2 %}
</div>
{% endblock brief %}
{% block full %}
<div>
{% if not hide_brief %}{{ item.display_description | linebreaksbr }}{% endif %}
</div>
{% endblock full %}