We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f8ae8b commit dcb6b3aCopy full SHA for dcb6b3a
blog/templates/blog/artigo.html
@@ -17,7 +17,11 @@ <h3>Comentários</h3>
17
{% for comentario in comentarios %}
18
<div class="comentario">
19
<p>
20
- <span class="nome">{{ comentario.name }}</span>
+ {% 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 %}
25
<span class="numero">#{{ forloop.counter }}</span><br/>
26
<span class="data">{{ comentario.submit_date|date:"d \de F \de Y - G:i" }}</span>
27
</p>
0 commit comments