2023-12-29 03:14:10 +00:00
|
|
|
<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"
|
|
|
|
>
|
2023-12-29 04:07:38 +00:00
|
|
|
<i class="bi-heart-fill" style="font-size: 1rem; color: pink;"></i>
|
2023-12-29 03:14:10 +00:00
|
|
|
</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">
|
2023-12-29 04:07:38 +00:00
|
|
|
<i class="bi-{{ reaction }}"></i>
|
2023-12-29 03:14:10 +00:00
|
|
|
</span>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2019-04-10 05:00:33 +00:00
|
|
|
</div>
|