diff templates/snippet/snippet_form.djhtml @ 190:a4f88ac85837

Changes: Now guest users cannot see revision history and they also cannot see snippets posted by registered users. To see snippets posted by registered users, one has to login.
author ahsanalishahid <ahsan.ali.shahid@gmail.com>
date Thu, 20 Jun 2013 17:17:16 +0500
parents ba51d3b7740b
children
line wrap: on
line diff
--- a/templates/snippet/snippet_form.djhtml	Tue Jun 18 19:59:40 2013 +0500
+++ b/templates/snippet/snippet_form.djhtml	Thu Jun 20 17:17:16 2013 +0500
@@ -1,4 +1,6 @@
 {% load i18n %}
+
+{% if show %}
 <form method="post" action="" class="snippetform"
     enctype="multipart/form-data">
     {% if snippet_form.non_field_errors %}
@@ -40,3 +42,4 @@
         <button type="submit" class="button large">{% trans "Paste it" %}</button>
     </div>
 </form>
+{% endif %}