web/hgbook/templates/single_com.html
changeset 2 52d12eb31c30
parent 1 672eaaab9204
child 3 6cee07c589cb
equal deleted inserted replaced
1:672eaaab9204 2:52d12eb31c30
     1 {% ifequal length 1 %}
       
     2   <a class="commenttoggle" id="toggle_{{ id }}"
       
     3       onclick="return toggleComment('{{ id }}')"
       
     4       href="comments: show / hide">One comment</a>
       
     5 {% else %}
       
     6   {% if length %}
       
     7     <a class="commenttoggle" id="toggle_{{ id }}"
       
     8       onclick="return toggleComment('{{ id }}')"
       
     9       href="comments: show / hide">{{ length }} comments</a>
       
    10   {% else %}
       
    11     <a class="commenttoggle" id="toggle_{{ id }}"
       
    12       onclick="return toggleComment('{{ id }}')"
       
    13       href="comments: show / hide">No comments</a>
       
    14     <div class="comment" {% if not newid %} style="display: none;" {% endif %}>
       
    15       <div class="comment_body">Be the first to comment on this paragraph!</div>
       
    16     </div>
       
    17   {% endif %}
       
    18 {% endifequal %}
       
    19