simple-s3-gallery/templates/card.html

41 lines
1.0 KiB
HTML

<div class="col">
<div class="card shadow-sm">
<div class="card-header text-end">
<a
href="#"
class="btn btn-light"
data-bs-toggle="tooltip"
data-bs-placement="top"
data-bs-title="Add a reaction"
>
<i class="bi-heart-fill" style="font-size: 1rem; color: pink;"></i>
</a>
</div>
<img
class="card-image-top"
width="{{ width | default('100%') }}"
height="{{ height | default('225') }}"
src="{{ src }}"
alt="{{ alt_text if alt_text else title }}"
/>
<div class="card-body">
<h5 class="card-title text-center">{{ title }}</h5>
<p class="card-text">{{ description | default('') }}</p>
</div>
<div class="card-footer text-body-secondary text-end">
{% if reactions %}
{% for reaction in reactions %}
{# TODO: limit total number of reactions shown #}
<span class="badge rounded-pill">
<i class="bi-{{ reaction }}"></i>
</span>
{% endfor %}
{% endif %}
</div>
</div>
</div>