Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X] Fixed #8869 -- Fixed comments templates to be well-formed XHTML.

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...
commit 4393fea6821b322c7806a6acf83c6e37e5ca3607 1 parent 769709e
Malcolm Tredinnick authored October 05, 2008
4  django/contrib/comments/templates/comments/approve.html
@@ -6,9 +6,9 @@
6 6
   <h1>Really make this comment public?</h1>
7 7
   <blockquote>{{ comment|linebreaks }}</blockquote>
8 8
   <form action="." method="post">
9  
-    <input type="hidden" name="next" value="{{ next }}" id="next">
  9
+    <input type="hidden" name="next" value="{{ next }}" id="next" />
10 10
     <p class="submit">
11  
-      <input type="submit" name="submit" value="Approve"> or <a href="{{ comment.permalink }}">cancel</a>
  11
+      <input type="submit" name="submit" value="Approve" /> or <a href="{{ comment.permalink }}">cancel</a>
12 12
     </p>
13 13
   </form>
14 14
 {% endblock %}
4  django/contrib/comments/templates/comments/delete.html
@@ -6,9 +6,9 @@
6 6
   <h1>Really remove this comment?</h1>
7 7
   <blockquote>{{ comment|linebreaks }}</blockquote>
8 8
   <form action="." method="post">
9  
-    <input type="hidden" name="next" value="{{ next }}" id="next">
  9
+    <input type="hidden" name="next" value="{{ next }}" id="next" />
10 10
     <p class="submit">
11  
-      <input type="submit" name="submit" value="Remove"> or <a href="{{ comment.permalink }}">cancel</a>
  11
+      <input type="submit" name="submit" value="Remove" /> or <a href="{{ comment.permalink }}">cancel</a>
12 12
     </p>
13 13
   </form>
14 14
 {% endblock %}
4  django/contrib/comments/templates/comments/flag.html
@@ -6,9 +6,9 @@
6 6
   <h1>Really flag this comment?</h1>
7 7
   <blockquote>{{ comment|linebreaks }}</blockquote>
8 8
   <form action="." method="post">
9  
-    <input type="hidden" name="next" value="{{ next }}" id="next">
  9
+    <input type="hidden" name="next" value="{{ next }}" id="next" />
10 10
     <p class="submit">
11  
-      <input type="submit" name="submit" value="Flag"> or <a href="{{ comment.permalink }}">cancel</a>
  11
+      <input type="submit" name="submit" value="Flag" /> or <a href="{{ comment.permalink }}">cancel</a>
12 12
     </p>
13 13
   </form>
14 14
 {% endblock %}
10  django/contrib/comments/templates/comments/moderation_queue.html
@@ -23,7 +23,7 @@ <h1 id="site-name">Comment moderation queue</h1>
23 23
 
24 24
 {% block content %}
25 25
 {% if empty %}
26  
-  <p id="nocomments">No comments to moderate.</div>
  26
+  <p id="nocomments">No comments to moderate.</p>
27 27
 {% else %}
28 28
 <div id="content-main">
29 29
   <div class="module" id="changelist">
@@ -45,12 +45,12 @@ <h1 id="site-name">Comment moderation queue</h1>
45 45
         <tr class="{% cycle 'row1' 'row2' %}">
46 46
           <td class="actions">
47 47
             <form action="{% url comments-approve comment.pk %}" method="post">
48  
-              <input type="hidden" name="next" value="{% url comments-moderation-queue %}">
49  
-              <input class="approve submit" type="submit" name="submit" value="Approve">
  48
+              <input type="hidden" name="next" value="{% url comments-moderation-queue %}" />
  49
+              <input class="approve submit" type="submit" name="submit" value="Approve" />
50 50
             </form>
51 51
             <form action="{% url comments-delete comment.pk %}" method="post">
52  
-              <input type="hidden" name="next" value="{% url comments-moderation-queue %}">
53  
-              <input class="remove submit" type="submit" name="submit" value="Remove">
  52
+              <input type="hidden" name="next" value="{% url comments-moderation-queue %}" />
  53
+              <input class="remove submit" type="submit" name="submit" value="Remove" />
54 54
             </form>
55 55
           </td>
56 56
           <td>{{ comment.name }}</td>
6  django/contrib/comments/templates/comments/preview.html
@@ -11,7 +11,7 @@
11 11
       <h1>Preview your comment</h1>
12 12
       <blockquote>{{ comment|linebreaks }}</blockquote>
13 13
       <p>
14  
-        and <input type="submit" name="submit" value="Post your comment" id="submit"> or make changes:
  14
+        and <input type="submit" name="submit" value="Post your comment" id="submit" /> or make changes:
15 15
       </p>
16 16
     {% endif %}
17 17
     {% for field in form %}
@@ -27,8 +27,8 @@
27 27
       {% endif %}
28 28
     {% endfor %}
29 29
     <p class="submit">
30  
-      <input type="submit" name="submit" class="submit-post" value="Post">
31  
-      <input type="submit" name="submit" class="submit-preview" value="Preview">
  30
+      <input type="submit" name="submit" class="submit-post" value="Post" />
  31
+      <input type="submit" name="submit" class="submit-preview" value="Preview" />
32 32
     </p>
33 33
   </form>
34 34
 {% endblock %}

0 notes on commit 4393fea

Please sign in to comment.
Something went wrong with that request. Please try again.