comparison 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
comparison
equal deleted inserted replaced
194:50ba20441122 195:baf8776dc44d
79 <br /> 79 <br />
80 80
81 {% include "snippet/snippet_box.djhtml" with lines=snippet.content_splitted %} 81 {% include "snippet/snippet_box.djhtml" with lines=snippet.content_splitted %}
82 82
83 <br /> 83 <br />
84 <h2> Comments for this snippet: </h2>
85
86 {% with snippet as object %}{% include "comments/rawcomment.html" %}{% endwith %}.
84 87
85 <h2 id="revise">{% trans "Revise this snippet" %}</h2> 88 <h2 id="revise">{% trans "Revise this snippet" %}</h2>
86 89
87 {% include "snippet/snippet_form.djhtml" %} 90 {% include "snippet/snippet_form.djhtml" %}
88 </div><div id="sidebar"> 91 </div><div id="sidebar">
131 {% for level in structure.closed_levels %} 134 {% for level in structure.closed_levels %}
132 </li> 135 </li>
133 </ul> 136 </ul>
134 {% endfor %} 137 {% endfor %}
135 {% endfor %} 138 {% endfor %}
136 </div><!-- closes the .tree div --> 139
140 <div class="submit">
141 <input type="submit" value="{% trans "Compare" %}"/>
142
143
144 </div><!-- closes the .tree div -->
137 <br /> 145 <br />
138 <div class="submit"> 146
139 <input type="submit" value="{% trans "Compare" %}"/>
140 </div><!-- closes the .submit div --> 147 </div><!-- closes the .submit div -->
141 </form> 148 </form>
149
150
151
142 {% endif %} 152 {% endif %}
143 <br /> 153 <br />
144 <h2>{% trans "Options" %}</h2> 154 <h2>{% trans "Options" %}</h2>
145 <a href="{% url snippet_details_raw snippet.secret_id %}"> 155 <a href="{% url snippet_details_raw snippet.secret_id %}">
146 {% trans "View raw" %} 156 {% trans "View raw" %}
148 {% else %} 158 {% else %}
149 <h4>{% trans "Login to see revision history" %}</h4> 159 <h4>{% trans "Login to see revision history" %}</h4>
150 {% endif %} 160 {% endif %}
151 161
152 162
163
164
165
153 </div><!-- closes the .sidebar div --> 166 </div><!-- closes the .sidebar div -->
154 {% endblock %} 167 {% endblock %}
168
169
170
171
172
155 173
156 {% block script_footer %} 174 {% block script_footer %}
157 <script type="text/javascript"> 175 <script type="text/javascript">
158 {%include "snippet/snippet_details.js" %} 176 {%include "snippet/snippet_details.js" %}
159 </script> 177 </script>
160 {% endblock script_footer %} 178 {% endblock script_footer %}
179