changeset 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 50ba20441122
children 134f726fd62c
files templates/bundle/bundle.djhtml templates/snippet/snippet_details.djhtml
diffstat 2 files changed, 28 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 &raquo;
 {{ file }}
 {% endif %}
+
+
 {% endblock %}
 
 {% block title %}
@@ -104,6 +106,10 @@
     </ul>
     {% endif %}
     {% endif %}
+    <h2 class = "names"> Comments for this bundle: </h2>
+    {% with bundle as object %}
+    {% include "comments/rawcomment.html" %}{% endwith %}.
+
 </div>
 {% else %}
 <p>
--- 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