usethesource: Add some space between comment name/date and text

This commit is contained in:
Ben Sturmfels 2024-03-15 19:41:13 +11:00
parent 9ff4682420
commit 5605243dfd
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -1,7 +1,10 @@
<div class="mb4" hx-target="this" hx-swap="outerHTML"><strong>{% if comment.attribute_to %}{{ comment.attribute_to }}{% else %}{{ comment.user }}{% endif %} — {{ comment.time }}</strong> <div class="mb4" hx-target="this" hx-swap="outerHTML">
{% if user.is_staff %} <div class="mb2">
<a href="#" class="f7 white bg-light-silver ph2" hx-get="{% url 'usethesource:edit_comment' comment_id=comment.id %}">edit</a> <strong>{% if comment.attribute_to %}{{ comment.attribute_to }}{% else %}{{ comment.user }}{% endif %} — {{ comment.time }}</strong>
<a href="#" class="f7 white bg-light-red ph2" hx-delete="{% url 'usethesource:delete_comment' comment_id=comment.id show_add='false' %}" hx-confirm="Are you sure you want to delete this comment?">delete</a> {% if user.is_staff %}
{% endif %} <a href="#" class="f7 white bg-light-silver ph2" hx-get="{% url 'usethesource:edit_comment' comment_id=comment.id %}">edit</a>
<br>{{ comment.message|urlize|linebreaksbr }} <a href="#" class="f7 white bg-light-red ph2" hx-delete="{% url 'usethesource:delete_comment' comment_id=comment.id show_add='false' %}" hx-confirm="Are you sure you want to delete this comment?">delete</a>
{% endif %}
</div>
{{ comment.message|urlize|linebreaksbr }}
</div> </div>