only authenticated users can comment talks
authorLincoln de Sousa <lincoln@alfaiati.net>
Thu, 6 Nov 2008 19:12:37 +0000 (17:12 -0200)
committerLincoln de Sousa <lincoln@alfaiati.net>
Thu, 6 Nov 2008 19:12:37 +0000 (17:12 -0200)
eventos/templates/eventos/talk_improve.html

index 59284f5..f6e582f 100644 (file)
 {% endfor %}
 </ul>
 
+{% if user.is_authenticated %}
+
 <form id="improve-add" method="post" action="./">
   {{ form.as_p }}
   <input type="submit" value="Comentar" />
 </form>
 
+{% else %}
+
+Por favor, <a href="/subscribe/">cadastre-se</a> para deixar seu coment├írio.
+
+{% endif %}
+
 {% endblock %}