sphinx_django/templates/comment.html~
author amit
Wed, 27 Oct 2010 13:59:11 +0530
changeset 3 de4a2ed2f34b
permissions -rw-r--r--
Adding readme files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
     1
{% ifequal length 1 %}
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
     2
  <a class="commenttoggle" id="toggle_{{ id }}"
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
     3
      onclick="return toggleComment('{{ id }}')"
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
     4
      href="comments: show / hide">One comment</a>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
     5
{% else %}
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
     6
  {% if length %}
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
     7
    <a class="commenttoggle" id="toggle_{{ id }}"
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
     8
      onclick="return toggleComment('{{ id }}')"
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
     9
      href="comments: show / hide">{{ length }} comments</a>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    10
  {% else %}
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    11
    <a class="commenttoggle" id="toggle_{{ id }}"
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    12
      onclick="return toggleComment('{{ id }}')"
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    13
      href="comments: show / hide">No comments</a>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    14
    <div class="comment" {% if not newid %} style="display: none;" {% endif %}>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    15
      <div class="comment_body">Be the first to comment on this paragraph!</div>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    16
    </div>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    17
  {% endif %}
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    18
{% endifequal %}
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    19
{% for c in query %}
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    20
  <div class="{% ifequal c.id newid %}new_{% endifequal %}comment"
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    21
      {% if not newid %} style="display: none;" {% endif %}
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    22
    id="comment{{ c.id }}">
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    23
    <a name="comment{{ c.id }}"/>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    24
    <div class="comment_header">
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    25
	<span class="comment_id"><a href="/admin/comments/comment/{{ c.id }}/">{{ c.id }}</a></span>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    26
      
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    27
    </div>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    28
    <div class="comment_body">{{ c.comment|escape|linebreaks }}</div>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    29
  </div>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    30
{% endfor %}
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    31
<form class="comment" id="form_{{ id }}" action="/comments/submit/{{ id }}/"
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    32
    method="post" >
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    33
  {{ form.id }}
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    34
  <table>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    35
    <tbody>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    36
      <tr><td align="right" valign="top">Comment<br></td>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    37
	  <td>{{ form.comment }}</td></tr>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    38
      <tr><td align="right">Your name</td><td>{{ form.name }}
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    39
	    <span class="comment_help"><b>Required</b> so we can give you credit</a></span></td></tr>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    40
      <tr><td align="right">Your URL</td><td>{{ form.url }}
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    41
	    <span class="comment_help"><b>Optional</b> link to blog, home page,
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    42
	      <i>etc</i>.</span></td></tr>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    43
      <tr><td align="right">Remember you?</td><td>{{ form.remember }}</td></tr>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    44
      <tr><td/><td><input name="submit" type="submit"
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    45
	      value="Submit Comment"/><span class="comment_error">{{ error }}</span></td></tr>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    46
    </tbody>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    47
  </table>
de4a2ed2f34b Adding readme files
amit
parents:
diff changeset
    48
</form>