usethesource: Linkify URLs in description and comments, retain line breaks
This commit is contained in:
parent
6c652f10c6
commit
dddf6058a9
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ candidate.description|linebreaks }}
|
{{ candidate.description|urlize|linebreaksbr }}
|
||||||
|
|
||||||
{% with comments=candidate.comment_set.all %}
|
{% with comments=candidate.comment_set.all %}
|
||||||
{% if comments or user.is_staff %}<h3 class="f3 lh-title mt4">Comments</h3>{% endif %}
|
{% if comments or user.is_staff %}<h3 class="f3 lh-title mt4">Comments</h3>{% endif %}
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
<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-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>
|
<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 %}
|
{% endif %}
|
||||||
<br>{{ comment.message|linebreaks }}
|
<br>{{ comment.message|urlize|linebreaksbr }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue