Changeset - 5605243dfda6
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 1 month ago 2024-03-15 08:41:54
ben@sturm.com.au
usethesource: Add some space between comment name/date and text
1 file changed with 9 insertions and 6 deletions:
0 comments (0 inline, 0 general)
conservancy/usethesource/templates/usethesource/comment_partial.html
Show inline comments
 
<div class="mb4" hx-target="this" hx-swap="outerHTML"><strong>{% if comment.attribute_to %}{{ comment.attribute_to }}{% else %}{{ comment.user }}{% endif %} — {{ comment.time }}</strong>
 
  {% if user.is_staff %}
 
    <a href="#" class="f7 white bg-light-silver ph2" hx-get="{% url 'usethesource:edit_comment' comment_id=comment.id %}">edit</a>
 
    <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 %}
 
  <br>{{ comment.message|urlize|linebreaksbr }}
 
<div class="mb4" hx-target="this" hx-swap="outerHTML">
 
  <div class="mb2">
 
    <strong>{% if comment.attribute_to %}{{ comment.attribute_to }}{% else %}{{ comment.user }}{% endif %} — {{ comment.time }}</strong>
 
    {% if user.is_staff %}
 
      <a href="#" class="f7 white bg-light-silver ph2" hx-get="{% url 'usethesource:edit_comment' comment_id=comment.id %}">edit</a>
 
      <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>
0 comments (0 inline, 0 general)