# HG changeset patch # User ahsanalishahid # Date 1372712961 -18000 # Node ID baf8776dc44d42911bb9d0721ddcfa360a22cd11 # Parent 50ba204411225357018dbede5fb2d311972cbfff 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. diff -r 50ba20441122 -r baf8776dc44d templates/bundle/bundle.djhtml --- a/templates/bundle/bundle.djhtml Tue Jul 02 02:04:09 2013 +0500 +++ b/templates/bundle/bundle.djhtml Tue Jul 02 02:09:21 2013 +0500 @@ -13,6 +13,8 @@ » {{ file }} {% endif %} + + {% endblock %} {% block title %} @@ -104,6 +106,10 @@ {% endif %} {% endif %} +

Comments for this bundle:

+ {% with bundle as object %} + {% include "comments/rawcomment.html" %}{% endwith %}. + {% else %}

diff -r 50ba20441122 -r baf8776dc44d templates/snippet/snippet_details.djhtml --- 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 %}
+

Comments for this snippet:

+ +{% with snippet as object %}{% include "comments/rawcomment.html" %}{% endwith %}.

{% trans "Revise this snippet" %}

@@ -133,12 +136,19 @@ {% endfor %} {% endfor %} - + +
+ + + +

-
- +
+ + + {% endif %}

{% trans "Options" %}

@@ -150,11 +160,20 @@ {% endif %} + + + {% endblock %} + + + + + {% block script_footer %} {% endblock script_footer %} + \ No newline at end of file