2023-05-20 11:01:18 -04:00
|
|
|
{% load i18n %}
|
2024-04-06 13:59:27 -04:00
|
|
|
{% load duration %}
|
2023-05-22 22:12:41 -04:00
|
|
|
{% if allow_embed and item.get_embed_link %}
|
2023-05-20 11:01:18 -04:00
|
|
|
<div class="item player">
|
2024-06-22 12:25:20 -04:00
|
|
|
<hgroup>
|
|
|
|
<h5>
|
2024-07-13 01:36:18 -04:00
|
|
|
<a href="{{ item.url }}">{{ item.display_title }}</a>
|
2024-06-22 12:25:20 -04:00
|
|
|
<small>
|
|
|
|
{% if not hide_category %}<span class="category">[{{ item.category.label }}]</span>{% endif %}
|
|
|
|
<span class="site-list">
|
|
|
|
{% for res in item.external_resources.all %}
|
2024-11-29 10:15:12 -05:00
|
|
|
<a href="{{ res.url }}"
|
|
|
|
class="{{ res.site_name }}"
|
|
|
|
rel="noopener noreferrer">{{ res.site_label }}</a>
|
2024-06-22 12:25:20 -04:00
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
</small>
|
|
|
|
</h5>
|
|
|
|
</hgroup>
|
2023-05-20 11:01:18 -04:00
|
|
|
<iframe src="{{ item.get_embed_link }}"
|
|
|
|
frameborder="0"
|
|
|
|
allowtransparency="true"
|
|
|
|
allow="encrypted-media"
|
2024-06-22 12:25:20 -04:00
|
|
|
style="width:100%;
|
|
|
|
height:120px;
|
|
|
|
margin-top:0.5em"></iframe>
|
2023-05-20 11:01:18 -04:00
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="item">
|
|
|
|
<div class="cover">
|
|
|
|
<a href="{{ item.url }}">
|
2024-07-17 22:27:55 -04:00
|
|
|
<img src="{{ item.cover_image_url|default:default_cover_url|relative_uri }}"
|
|
|
|
alt="cover" />
|
2023-05-20 11:01:18 -04:00
|
|
|
</a>
|
|
|
|
</div>
|
2023-06-09 02:23:15 -04:00
|
|
|
<div>
|
|
|
|
{% with "_item_card_metadata_"|add:item.class_name|add:".html" as template %}
|
|
|
|
{% include template %}
|
|
|
|
{% endwith %}
|
|
|
|
</div>
|
2023-05-20 11:01:18 -04:00
|
|
|
</div>
|
|
|
|
{% endif %}
|