SEESenv/web/hgbook/templates/single_com.html
changeset 2 52d12eb31c30
parent 0 8083d21c0020
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