1 {% load extra_tags %}
\r 
   4 <div class="comments-container" id="comments-container-{{ post.id }}">
\r 
   5     {% for comment in comments %}
\r 
   6         <a name="{{ comment.id }}"></a>
\r 
   7         <table class="comment{% if not comment.top_scorer %} not_top_scorer{% endif %}" id="comment-{{comment.id}}">
\r 
   9                 <td rowspan="2" class="comment-score" id="post-{{ comment.id }}-score">
\r 
  10                     {% if comment.score %}{{ comment.score }}{% endif %}
\r 
  12                 <td class="comment-text" id="comment-{{comment.id}}-text">
\r 
  17                 <td class="comment-info" id="comment-{{comment.id}}-info">
\r 
  18                     <a class="comment-user userinfo" href="{{comment.user.get_profile_url}}">{{comment.user}}</a>
\r 
  19                     <span class="comment-age">({% diff_date comment.added_at %})</span>
\r 
  20                     {% if comment.can_like %}
\r 
  21                         <a id="post-{{ comment.id }}-upvote" href="{% url vote_post id=comment.id,vote_type='up' %}"
\r 
  22                          title="{% trans "I like this comment (click again to cancel)" %}" class="ajax-command comment-like{% if comment.likes %} on{% endif %}"
\r 
  23                         rel="nofollow"> </a>
\r 
  25                     {% if comment.can_edit %}
\r 
  26                         <a id="comment-{{ comment.id }}-edit" href="#" title="{% trans "Edit comment" %}"
\r 
  27                             class="comment-edit" rel="nofollow"> </a>
\r 
  29                     {% if comment.can_delete %}
\r 
  30                         <a id="comment-{{ comment.id }}-delete" href="{% url delete_comment id=comment.id %}" title="{% trans "Delete comment" %}"
\r 
  31                             class="ajax-command comment-delete" rel="nofollow"> </a>
\r 
  38 <div id="comment-tools-{{ post.id }}" class="comment-tools">
\r 
  39     <img src="/m/default/media/images/gray-up-arrow-h18px.png" />
\r 
  40     {% ifnotequal showing total %}
\r 
  41         <span class="comments-showing">
\r 
  42             {% blocktrans %}showing {{ showing }} of {{ total }}{% endblocktrans %}
\r 
  44         <a href="#" class="show-all-comments-link">{% trans "show all" %}</a>
\r 
  46     {% if can_comment %}
\r 
  47         <a href="#" class="add-comment-link">{% trans "add new comment" %}</a>
\r 
  50 {% if can_comment %}
\r 
  51 <div id="comment-{{ post.id }}-form-container" class="comment-form-container">
\r 
  52     <form id="comment-{{ post.id }}-form" method="post" action="{% url comment id=post.id %}">
\r 
  53         <div class="comment-form-widgets-container">
\r 
  54             <textarea name="comment"></textarea>
\r 
  55             <input type="submit" value="{% trans " add comment" %}" />
\r 
  57         <span id="comment-{{ post.id }}-chars-left" class="comment-chars-left">
\r 
  59                 have <span class="comments-char-left-count">{{ max_length }}</span> characters left
\r 
  62         <script type="text/html" class="new-comment-skeleton" id="new-comment-skeleton-{{ post.id }}">
\r 
  63             <table class="comment" id="comment-%ID%" style="display: none">
\r 
  65                     <td rowspan="2" class="comment-score" id="comment-%ID%-score"></td>
\r 
  66                     <td class="comment-text" id="comment-%ID%-text">%COMMENT%</td>
\r 
  69                     <td class="comment-info" id="comment-%ID%-info">
\r 
  70                         <a class="comment-user" href="%PROFILE_URL%">%USERNAME%</a>
\r 
  71                         <span class="comment-age">({% trans "just now" %})</span>
\r 
  72                         <a id="comment-%ID%-edit" href="#"
\r 
  73                             class="comment-edit" rel="nofollow"> </a>
\r 
  74                         <a id="comment-%ID%-delete" href="%DELETE_URL%"
\r 
  75                             class="ajax-command comment-delete" rel="nofollow"> </a>
\r