Skip to content

Commit dcb6b3a

Browse files
Colocado link para url do 'comentarista' em seu nome
1 parent 5f8ae8b commit dcb6b3a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

blog/templates/blog/artigo.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ <h3>Coment&aacute;rios</h3>
1717
{% for comentario in comentarios %}
1818
<div class="comentario">
1919
<p>
20-
<span class="nome">{{ comentario.name }}</span>
20+
{% if comentario.url %}
21+
<span class="nome"><a href="{{ comentario.url}}">{{ comentario.name }}</a></span>
22+
{% else %}
23+
<span class="nome">{{ comentario.name }}</span>
24+
{% endif %}
2125
<span class="numero">#{{ forloop.counter }}</span><br/>
2226
<span class="data">{{ comentario.submit_date|date:"d \de F \de Y - G:i" }}</span>
2327
</p>

0 commit comments

Comments
 (0)