]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/node/comments.html
beta version af the sx importer, don't use for importing production sites, only for...
[osqa.git] / forum / skins / default / templates / node / comments.html
index 022f19ca1e3a282298191a7bd73dd13cb3a941f0..d62e521f1e774f113760665be7d526cf96b1179a 100644 (file)
@@ -3,13 +3,14 @@
 \r
 <div class="comments-container" id="comments-container-{{ post.id }}">\r
     {% for comment in comments %}\r
+        <a name="{{ comment.id }}"></a>\r
         <table class="comment{% if not comment.top_scorer %} not_top_scorer{% endif %}" id="comment-{{comment.id}}">\r
             <tr>\r
-                <td rowspan="2" class="comment-score" id="comment-{{ comment.id }}-score">\r
+                <td rowspan="2" class="comment-score" id="post-{{ comment.id }}-score">\r
                     {% if comment.score %}{{ comment.score }}{% endif %}\r
                 </td>\r
                 <td class="comment-text" id="comment-{{comment.id}}-text">\r
-                    {{ comment.comment }}\r
+                    {{ comment.body }}\r
                 </td>\r
             </tr>\r
             <tr>\r
@@ -17,7 +18,7 @@
                     <a class="comment-user userinfo" href="{{comment.user.get_profile_url}}">{{comment.user}}</a>\r
                     <span class="comment-age">({% diff_date comment.added_at %})</span>\r
                     {% if comment.can_like %}\r
-                        <a id="comment-{{ comment.id }}-like" href="{% url like_comment id=comment.id %}"\r
+                        <a id="post-{{ comment.id }}-upvote" href="{% url vote_post id=comment.id,vote_type='up' %}"\r
                          title="{% trans "I like this comment (click again to cancel)" %}" class="ajax-command comment-like{% if comment.likes %} on{% endif %}"\r
                         rel="nofollow"> </a>\r
                     {% endif %}\r