]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/node/comments.html
ALteration of the schema to a single content model. As a bonus there is a complete...
[osqa.git] / forum / skins / default / templates / node / comments.html
similarity index 85%
rename from forum/skins/default/templates/question/comments.html
rename to forum/skins/default/templates/node/comments.html
index 3c417fa4c84842a099de86feee2d1dcd5241f81e..022f19ca1e3a282298191a7bd73dd13cb3a941f0 100644 (file)
@@ -1,7 +1,7 @@
 {% load extra_tags %}\r
 {% load i18n %}\r
 \r
-<div class="comments-container" id="comments-container-{{ post_type }}-{{ post.id }}">\r
+<div class="comments-container" id="comments-container-{{ post.id }}">\r
     {% for comment in comments %}\r
         <table class="comment{% if not comment.top_scorer %} not_top_scorer{% endif %}" id="comment-{{comment.id}}">\r
             <tr>\r
@@ -34,7 +34,7 @@
         </table>\r
     {% endfor %}\r
 </div>\r
-<div id="comment-tools-{{ post_type }}-{{ post.id }}" class="comment-tools">\r
+<div id="comment-tools-{{ post.id }}" class="comment-tools">\r
     <img src="/m/default/media/images/gray-up-arrow-h18px.png" />\r
     {% ifnotequal showing total %}\r
         <span class="comments-showing">\r
     {% endif %}\r
 </div>\r
 {% if can_comment %}\r
-<div id="comment-{{ post_type }}-{{ post.id }}-form-container" class="comment-form-container">\r
-    <form id="comment-{{ post_type }}-{{ post.id }}-form" method="post" action="{% url comment post_type=post_type,id=post.id %}">\r
+<div id="comment-{{ post.id }}-form-container" class="comment-form-container">\r
+    <form id="comment-{{ post.id }}-form" method="post" action="{% url comment id=post.id %}">\r
         <div class="comment-form-widgets-container">\r
             <textarea name="comment"></textarea>\r
             <input type="submit" value="{% trans " add comment" %}" />\r
         </div>\r
-        <span id="comment-{{ post_type }}-{{ post.id }}-chars-left" class="comment-chars-left">\r
+        <span id="comment-{{ post.id }}-chars-left" class="comment-chars-left">\r
             {% blocktrans %}\r
                 have <span class="comments-char-left-count">{{ max_length }}</span> characters left\r
             {% endblocktrans %}\r
         </span>\r
-        <script type="text/html" class="new-comment-skeleton" id="new-comment-skeleton-{{ post_type }}-{{ post.id }}">\r
+        <script type="text/html" class="new-comment-skeleton" id="new-comment-skeleton-{{ post.id }}">\r
             <table class="comment" id="comment-%ID%" style="display: none">\r
                 <tr>\r
                     <td rowspan="2" class="comment-score" id="comment-%ID%-score"></td>\r