only authenticated users can comment talks
[cascardo/ema.git] / 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 %}