Skip to content

Commit

Permalink
[1.0.X] Fixed #8869 -- Fixed comments templates to be well-formed XHTML.
Browse files Browse the repository at this point in the history
Based on a patch from zgoda.

Backport of r9117 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9124 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Oct 5, 2008
1 parent 769709e commit 4393fea
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions django/contrib/comments/templates/comments/approve.html
Expand Up @@ -6,9 +6,9 @@
<h1>Really make this comment public?</h1>
<blockquote>{{ comment|linebreaks }}</blockquote>
<form action="." method="post">
<input type="hidden" name="next" value="{{ next }}" id="next">
<input type="hidden" name="next" value="{{ next }}" id="next" />
<p class="submit">
<input type="submit" name="submit" value="Approve"> or <a href="{{ comment.permalink }}">cancel</a>
<input type="submit" name="submit" value="Approve" /> or <a href="{{ comment.permalink }}">cancel</a>
</p>
</form>
{% endblock %}
4 changes: 2 additions & 2 deletions django/contrib/comments/templates/comments/delete.html
Expand Up @@ -6,9 +6,9 @@
<h1>Really remove this comment?</h1>
<blockquote>{{ comment|linebreaks }}</blockquote>
<form action="." method="post">
<input type="hidden" name="next" value="{{ next }}" id="next">
<input type="hidden" name="next" value="{{ next }}" id="next" />
<p class="submit">
<input type="submit" name="submit" value="Remove"> or <a href="{{ comment.permalink }}">cancel</a>
<input type="submit" name="submit" value="Remove" /> or <a href="{{ comment.permalink }}">cancel</a>
</p>
</form>
{% endblock %}
4 changes: 2 additions & 2 deletions django/contrib/comments/templates/comments/flag.html
Expand Up @@ -6,9 +6,9 @@
<h1>Really flag this comment?</h1>
<blockquote>{{ comment|linebreaks }}</blockquote>
<form action="." method="post">
<input type="hidden" name="next" value="{{ next }}" id="next">
<input type="hidden" name="next" value="{{ next }}" id="next" />
<p class="submit">
<input type="submit" name="submit" value="Flag"> or <a href="{{ comment.permalink }}">cancel</a>
<input type="submit" name="submit" value="Flag" /> or <a href="{{ comment.permalink }}">cancel</a>
</p>
</form>
{% endblock %}
10 changes: 5 additions & 5 deletions django/contrib/comments/templates/comments/moderation_queue.html
Expand Up @@ -23,7 +23,7 @@ <h1 id="site-name">Comment moderation queue</h1>

{% block content %}
{% if empty %}
<p id="nocomments">No comments to moderate.</div>
<p id="nocomments">No comments to moderate.</p>
{% else %}
<div id="content-main">
<div class="module" id="changelist">
Expand All @@ -45,12 +45,12 @@ <h1 id="site-name">Comment moderation queue</h1>
<tr class="{% cycle 'row1' 'row2' %}">
<td class="actions">
<form action="{% url comments-approve comment.pk %}" method="post">
<input type="hidden" name="next" value="{% url comments-moderation-queue %}">
<input class="approve submit" type="submit" name="submit" value="Approve">
<input type="hidden" name="next" value="{% url comments-moderation-queue %}" />
<input class="approve submit" type="submit" name="submit" value="Approve" />
</form>
<form action="{% url comments-delete comment.pk %}" method="post">
<input type="hidden" name="next" value="{% url comments-moderation-queue %}">
<input class="remove submit" type="submit" name="submit" value="Remove">
<input type="hidden" name="next" value="{% url comments-moderation-queue %}" />
<input class="remove submit" type="submit" name="submit" value="Remove" />
</form>
</td>
<td>{{ comment.name }}</td>
Expand Down
6 changes: 3 additions & 3 deletions django/contrib/comments/templates/comments/preview.html
Expand Up @@ -11,7 +11,7 @@ <h1>Please correct the error{{ form.errors|pluralize }} below</h1>
<h1>Preview your comment</h1>
<blockquote>{{ comment|linebreaks }}</blockquote>
<p>
and <input type="submit" name="submit" value="Post your comment" id="submit"> or make changes:
and <input type="submit" name="submit" value="Post your comment" id="submit" /> or make changes:
</p>
{% endif %}
{% for field in form %}
Expand All @@ -27,8 +27,8 @@ <h1>Preview your comment</h1>
{% endif %}
{% endfor %}
<p class="submit">
<input type="submit" name="submit" class="submit-post" value="Post">
<input type="submit" name="submit" class="submit-preview" value="Preview">
<input type="submit" name="submit" class="submit-post" value="Post" />
<input type="submit" name="submit" class="submit-preview" value="Preview" />
</p>
</form>
{% endblock %}

0 comments on commit 4393fea

Please sign in to comment.