Code

Ticket #9141: 9141.diff

File 9141.diff, 2.4 KB (added by thejaswi_puthraya, 6 years ago)

svn diff against the latest checkout

Line 
1Index: django/contrib/comments/templates/comments/reply_preview.html
2===================================================================
3--- django/contrib/comments/templates/comments/reply_preview.html       (revision 9070)
4+++ django/contrib/comments/templates/comments/reply_preview.html       (working copy)
5@@ -1,34 +0,0 @@
6-{% extends "comments/base.html" %}
7-
8-{% block title %}Preview your comment{% endblock %}
9-
10-{% block content %}
11-  {% load comments %}
12-  <form action="{% comment_form_target %}" method="post">
13-    {% if form.errors %}
14-      <h1>Please correct the error{{ form.errors|pluralize }} below</h1>
15-    {% else %}
16-      <h1>Preview your comment</h1>
17-      <blockquote>{{ comment|linebreaks }}</blockquote>
18-      <p>
19-        and <input type="submit" name="submit" value="Post your comment" id="submit"> or make changes:
20-      </p>
21-    {% endif %}
22-    {% for field in form %}
23-      {% if field.is_hidden %}
24-        {{ field }}
25-      {% else %}
26-        <p
27-          {% if field.errors %} class="error"{% endif %}
28-          {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
29-          {% if field.errors %}{{ field.errors }}{% endif %}
30-          {{ field.label_tag }} {{ field }}
31-        </p>
32-      {% endif %}
33-    {% endfor %}
34-    <p class="submit">
35-      <input type="submit" name="submit" class="submit-post" value="Post">
36-      <input type="submit" name="submit" class="submit-preview" value="Preview">
37-    </p>
38-  </form>
39-{% endblock %}
40Index: django/contrib/comments/templates/comments/reply.html
41===================================================================
42--- django/contrib/comments/templates/comments/reply.html       (revision 9070)
43+++ django/contrib/comments/templates/comments/reply.html       (working copy)
44@@ -1,19 +0,0 @@
45-{% load comments %}
46-<form action="{% comment_form_target %}" method="post">
47-  {% for field in form %}
48-    {% if field.is_hidden %}
49-      {{ field }}
50-    {% else %}
51-      <p
52-        {% if field.errors %} class="error"{% endif %}
53-        {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
54-        {% if field.errors %}{{ field.errors }}{% endif %}
55-        {{ field.label_tag }} {{ field }}
56-      </p>
57-    {% endif %}
58-  {% endfor %}
59-  <p class="submit">
60-    <input type="submit" name="submit" class="submit-post" value="Reply">
61-    <input type="submit" name="submit" class="submit-preview" value="Preview">
62-  </p>
63-</form>