]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/node/comments.html
Resolves OSQA-721, adding the ViewBox images in a separate directory in the media...
[osqa.git] / forum / skins / default / templates / node / comments.html
index 49d529a0aded38e532ead3e1afb282781781ebb4..f67e079e93512639c901f6dfae3be1379b8cebc5 100644 (file)
                 {% endif %}\r
                 {% if comment.can_delete %}\r
                     <a id="comment-{{ comment.id }}-delete" href="{% url delete_comment id=comment.id %}" title="{% trans "Delete comment" %}"\r
-                        class="ajax-command comment-delete" rel="nofollow"> </a>\r
+                        class="ajax-command comment-delete confirm" rel="nofollow"> </a>\r
                 {% endif %}\r
                 {% if comment.can_convert %}\r
                     <a rel="nofollow" id="comment-{{ comment.id }}-convert" href="{% url convert_comment id=comment.id %}" title="{% trans "Convert comment to answer" %}"\r
                         class="ajax-command comment-convert confirm" rel="nofollow"> </a>\r
+                    <a rel="nofollow" id="comment-{{ comment.id }}-convert-to-question" href="{% url convert_to_question id=comment.id %}?node_type=comment" title="{% trans "Convert comment to question" %}"\r
+                        class="comment-convert-to-question" rel="nofollow"> </a>\r
                 {% endif %}\r
                     \r
 \r
@@ -48,8 +50,9 @@
 <div id="comment-{{ post.id }}-form-container" class="comment-form-container">\r
     {% if can_comment %}\r
     <form id="comment-{{ post.id }}-form" method="post" action="{% url comment id=post.id %}" accept-charset="utf-8">\r
+        {% csrf_token %}\r
         <div class="comment-form-widgets-container">\r
-            <textarea name="comment" class="commentBox"></textarea>\r
+            <textarea name="comment" class="commentBox" id="comment"></textarea>\r
             <div class="comment-form-buttons">\r
                 <span id="comment-{{ post.id }}-chars-left" class="comment-chars-left">\r
                     <span class="comments-char-left-count">{{ min_length }}|{{ max_length }}</span>\r
                 <input type="submit" class="comment-submit" value="{% trans " comment" %}" />\r
                 <input type="submit" class="comment-cancel" value="{% trans " cancel" %}" />\r
             </div>\r
+            <div class="clear"></div>\r
+            {% if user.can_use_canned_comments %}\r
+            <div class="canned_comment">\r
+                <a href="{% url canned_comments post.id %}" class="ajax-command withprompt">{% trans "Use canned comment" %}</a>\r
+            </div>\r
+            {% endif %}\r
         </div>\r
         <script type="text/html" class="new-comment-skeleton" id="new-comment-skeleton-{{ post.id }}">\r
             <div class="comment{% if not comment.top_scorer %} not_top_scorer{% endif %}" id="comment-%ID%">\r
                 <div id="post-%ID%-score" class="comment-score"></div>\r
                 <div class="comment-text">%COMMENT%</div>\r
                 <div class="comment-info" id="comment-%ID%-info">\r
-                    <a id="comment-%ID%-edit" href="%EDIT_URL%"\r
+                    <a id="comment-%ID%-edit" href="%EDIT_URL%" title="{% trans "Edit comment" %}"\r
                         class="comment-edit" rel="nofollow"> </a>\r
-                    <a id="comment-%ID%-delete" href="%DELETE_URL%"\r
-                        class="ajax-command comment-delete" rel="nofollow"> </a>\r
-                    <a rel="nofollow" id="comment-%ID%-convert" href="%CONVERT_URL%" title="{% trans "Convert comment to answer" %}"\r
+                    <a id="comment-%ID%-delete" href="%DELETE_URL%" title="{% trans "Delete comment" %}"\r
+                        class="ajax-command comment-delete confirm" rel="nofollow"> </a>\r
+                    <a rel="nofollow" id="comment-%ID%-convert" style="display:none;" href="%CONVERT_URL%" title="{% trans "Convert comment to answer" %}"\r
                         class="ajax-command comment-convert confirm" rel="nofollow"> </a>\r
 \r
                     <span class="comment-age">({% trans "just now" %})</span>\r