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"
|
|
|
|
>
|
|
|
|
<i class="bi 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">
|
|
|
|
<svg class="bi" width="1rem" height="1rem"><use xlink:href="#{{ reaction }}" /></svg>
|
|
|
|
</span>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2019-04-10 05:00:33 +00:00
|
|
|
</div>
|