lib.itmens/catalog/templates/album.html

63 lines
1.8 KiB
HTML
Raw Normal View History

2022-12-15 17:29:35 -05:00
{% extends "item_base.html" %}
{% load static %}
{% load i18n %}
{% load l10n %}
{% load humanize %}
{% load mastodon %}
{% load strip_scheme %}
{% load thumb %}
2023-01-05 03:06:13 -05:00
{% load duration %}
2022-12-15 17:29:35 -05:00
<!-- class specific details -->
{% block details %}
2024-07-15 22:18:25 -04:00
<div>{% include '_people.html' with people=item.additional_title role='' max=99 %}</div>
2024-05-19 16:32:59 -04:00
<div>{% include '_people.html' with people=item.artist role='artist' max=5 %}</div>
<div>{% include '_people.html' with people=item.company role='publisher' max=5 %}</div>
<div>
{% if item.release_date %}
2024-05-19 16:32:59 -04:00
{% trans 'release date' %}: {{ item.release_date }}
{% endif %}
</div>
<div>
{% if item.duration %}
2024-05-19 16:32:59 -04:00
{% trans 'duration' %}: {{ item.duration|duration_format:1000 }}
{% endif %}
</div>
2024-05-19 16:32:59 -04:00
<div>{% include '_people.html' with people=item.genre role='genre' max=5 %}</div>
<div>
{% if item.barcode %}
2024-06-10 17:28:20 -04:00
{% trans 'barcode' %}: {{ item.barcode }}
{% endif %}
</div>
<div>
{% if item.album_type %}
2024-05-19 16:32:59 -04:00
{% trans 'album type' %}: {{ item.album_type }}
{% endif %}
</div>
<div>
{% if item.media %}
2024-05-19 16:32:59 -04:00
{% trans 'album media' %}: {{ item.media }}
{% endif %}
</div>
<div>
{% if item.disc_count %}
2024-05-19 16:32:59 -04:00
{% trans 'number of discs' %}: {{ item.disc_count }}
{% endif %}
</div>
2022-12-15 17:29:35 -05:00
{% endblock %}
<!-- class specific sidebar -->
{% block content %}
{% if item.track_list %}
2024-05-19 16:32:59 -04:00
<h5>tracks</h5>
2023-05-21 11:12:40 -04:00
<p class="tldr" _="on click toggle .tldr on me">{{ item.track_list | linebreaksbr }}</p>
{% endif %}
{% if item.get_embed_link %}
2024-05-19 16:32:59 -04:00
<h5>play this album</h5>
2023-05-21 11:12:40 -04:00
<iframe src="{{ item.get_embed_link }}"
frameborder="0"
allowtransparency="true"
allow="encrypted-media"
style="width: 100%;
height: 50vh"></iframe>
{% endif %}
2022-12-15 17:29:35 -05:00
{% endblock %}