lib.itmens/journal/templates/action_reply_piece.html
2024-05-20 12:00:17 -04:00

13 lines
472 B
HTML

{% load i18n %}
<span>
<a title="{% trans "reply" %}"
{% if href %} href="{{ href }}" {% else %} {% if not request.user.is_authenticated %}hx-disable{% endif %}
hx-get="{% url 'journal:piece_replies' piece.uuid %}"
hx-swap="outerHTML"
hx-trigger="click once"
hx-target="#replies_{{ post.pk }}"
{% endif %}>
<i class="fa-solid fa-reply"></i>
{% if post.stats.replies %}<span>{{ post.stats.replies }}</span>{% endif %}
</a>
</span>