Mercurial > agora-palash
diff templates/snippet/snippet_details.djhtml @ 195:baf8776dc44d
added code for the integration of comment system into bundles and snippets.
database sync must be run so that necessary tables is created for the comments to work properly.
author | ahsanalishahid <ahsan.ali.shahid@gmail.com> |
---|---|
date | Tue, 02 Jul 2013 02:09:21 +0500 |
parents | 683d41e124b7 |
children | 134f726fd62c |
line wrap: on
line diff
--- a/templates/snippet/snippet_details.djhtml Tue Jul 02 02:04:09 2013 +0500 +++ b/templates/snippet/snippet_details.djhtml Tue Jul 02 02:09:21 2013 +0500 @@ -81,6 +81,9 @@ {% include "snippet/snippet_box.djhtml" with lines=snippet.content_splitted %} <br /> + <h2> Comments for this snippet: </h2> + +{% with snippet as object %}{% include "comments/rawcomment.html" %}{% endwith %}. <h2 id="revise">{% trans "Revise this snippet" %}</h2> @@ -133,12 +136,19 @@ </ul> {% endfor %} {% endfor %} - </div><!-- closes the .tree div --> + + <div class="submit"> + <input type="submit" value="{% trans "Compare" %}"/> + + + </div><!-- closes the .tree div --> <br /> - <div class="submit"> - <input type="submit" value="{% trans "Compare" %}"/> + </div><!-- closes the .submit div --> </form> + + + {% endif %} <br /> <h2>{% trans "Options" %}</h2> @@ -150,11 +160,20 @@ {% endif %} + + + </div><!-- closes the .sidebar div --> {% endblock %} + + + + + {% block script_footer %} <script type="text/javascript"> {%include "snippet/snippet_details.js" %} </script> {% endblock script_footer %} + \ No newline at end of file