Mercurial > agora
comparison templates/snippet/snippet_details.djhtml @ 189:683d41e124b7
Changed snippet template so that now anonymous user cannot see revision history. To see revision history you must login.
author | ahsanalishahid <ahsan.ali.shahid@gmail.com> |
---|---|
date | Tue, 18 Jun 2013 19:59:40 +0500 |
parents | 1be4e1229711 |
children | baf8776dc44d |
comparison
equal
deleted
inserted
replaced
188:1eb652aa501a | 189:683d41e124b7 |
---|---|
85 <h2 id="revise">{% trans "Revise this snippet" %}</h2> | 85 <h2 id="revise">{% trans "Revise this snippet" %}</h2> |
86 | 86 |
87 {% include "snippet/snippet_form.djhtml" %} | 87 {% include "snippet/snippet_form.djhtml" %} |
88 </div><div id="sidebar"> | 88 </div><div id="sidebar"> |
89 <h2>{% trans "History" %}</h2> | 89 <h2>{% trans "History" %}</h2> |
90 {% if user.is_authenticated %} | |
90 {% if no_descendants %} | 91 {% if no_descendants %} |
91 <p>{% trans "This snippet has no children!" %}</p> | 92 <p>{% trans "This snippet has no children!" %}</p> |
92 <p> | 93 <p> |
93 <a href="#revise"> | 94 <a href="#revise"> |
94 {% trans "Make one" %} » | 95 {% trans "Make one" %} » |
142 <br /> | 143 <br /> |
143 <h2>{% trans "Options" %}</h2> | 144 <h2>{% trans "Options" %}</h2> |
144 <a href="{% url snippet_details_raw snippet.secret_id %}"> | 145 <a href="{% url snippet_details_raw snippet.secret_id %}"> |
145 {% trans "View raw" %} | 146 {% trans "View raw" %} |
146 </a> | 147 </a> |
148 {% else %} | |
149 <h4>{% trans "Login to see revision history" %}</h4> | |
150 {% endif %} | |
151 | |
152 | |
147 </div><!-- closes the .sidebar div --> | 153 </div><!-- closes the .sidebar div --> |
148 {% endblock %} | 154 {% endblock %} |
149 | 155 |
150 {% block script_footer %} | 156 {% block script_footer %} |
151 <script type="text/javascript"> | 157 <script type="text/javascript"> |