Skip to content

Commit

Permalink
adicionando auto link em comentários de notícias
Browse files Browse the repository at this point in the history
  • Loading branch information
Vamoss committed Mar 4, 2020
1 parent 6681653 commit dc9e319
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootcamp/templates/news/news_thread.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% load i18n %}
{% load humanize static %}
{% load thumbnail %}
{% load urlize_target_blank %}


{% for reply in thread %}
Expand All @@ -20,7 +21,7 @@
<a href="{% url 'users:detail' reply.user.username %}">{{ reply.user.get_profile_name|title }}</a>
</strong>
</p>
<p>{{ reply }}</p>
<p>{{ reply|urlize|urlize_target_blank }}</p>
{% if reply.image %}
<img class="card-img-top" src="{{ reply.image }}" alt="Card image cap">
{% endif %}
Expand Down

0 comments on commit dc9e319

Please sign in to comment.