SEESenv/web/hgbook/templates/single_com.html
author amit@thunder
Wed, 10 Mar 2010 17:39:26 +0530
changeset 45 b5bff924ef69
parent 2 52d12eb31c30
permissions -rwxr-xr-x
Some more changes to soup is made in final html also comment.html has been changed so the links don't appear

{% ifequal length 1 %}
  <a class="commenttoggle" id="toggle_{{ id }}"
      onclick="return toggleComment('{{ id }}')"
      href="comments: show / hide">One comment</a>
{% else %}
  {% if length %}
    <a class="commenttoggle" id="toggle_{{ id }}"
      onclick="return toggleComment('{{ id }}')"
      href="comments: show / hide">{{ length }} comments</a>
  {% else %}
    <a class="commenttoggle" id="toggle_{{ id }}"
      onclick="return toggleComment('{{ id }}')"
      href="comments: show / hide">No comments</a>
    <div class="comment" {% if not newid %} style="display: none;" {% endif %}>
      <div class="comment_body">Be the first to comment on this paragraph!</div>
    </div>
  {% endif %}
{% endifequal %}