# 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 --git a/templates/bundle/bundle.djhtml b/templates/bundle/bundle.djhtml --- a/templates/bundle/bundle.djhtml +++ b/templates/bundle/bundle.djhtml @@ -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 --git a/templates/snippet/snippet_details.djhtml b/templates/snippet/snippet_details.djhtml --- a/templates/snippet/snippet_details.djhtml +++ b/templates/snippet/snippet_details.djhtml @@ -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