Commit 5cc93500 authored by Adrian Holovaty's avatar Adrian Holovaty
Browse files

Fixed #8959 -- Removed redundant calls to the 'escape' template filter in the...

Fixed #8959 -- Removed redundant calls to the 'escape' template filter in the django.contrib.comments templates. Thanks, zgoda

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9000 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 665f9342
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4,9 +4,9 @@

{% block content %}
  <h1>Really make this comment public?</h1>
  <blockquote>{{ comment|escape|linebreaks }}</blockquote>
  <blockquote>{{ comment|linebreaks }}</blockquote>
  <form action="." method="POST">
    <input type="hidden" name="next" value="{{ next|escape }}" 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>
    </p>
+3 −3
Original line number Diff line number Diff line
@@ -4,9 +4,9 @@

{% block content %}
  <h1>Really remove this comment?</h1>
  <blockquote>{{ comment|escape|linebreaks }}</blockquote>
  <blockquote>{{ comment|linebreaks }}</blockquote>
  <form action="." method="POST">
    <input type="hidden" name="next" value="{{ next|escape }}" 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>
    </p>
+3 −3
Original line number Diff line number Diff line
@@ -4,9 +4,9 @@

{% block content %}
  <h1>Really flag this comment?</h1>
  <blockquote>{{ comment|escape|linebreaks }}</blockquote>
  <blockquote>{{ comment|linebreaks }}</blockquote>
  <form action="." method="POST">
    <input type="hidden" name="next" value="{{ next|escape }}" 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>
    </p>
+5 −5
Original line number Diff line number Diff line
@@ -53,17 +53,17 @@
              <input class="remove submit" type="submit" name="submit" value="Remove">
            </form>
          </td>
          <td>{{ comment.name|escape }}</td>
          <td>{{ comment.comment|truncatewords:"50"|escape }}</td>
          <td>{{ comment.email|escape }}</td>
          <td>{{ comment.url|escape }}</td>
          <td>{{ comment.name }}</td>
          <td>{{ comment.comment|truncatewords:"50" }}</td>
          <td>{{ comment.email }}</td>
          <td>{{ comment.url }}</td>
          <td>
            <img
              src="{% admin_media_prefix %}img/admin/icon-{% if comment.user %}yes{% else %}no{% endif %}.gif"
              alt="{% if comment.user %}yes{% else %}no{% endif %}"
            />
          </td>
          <td>{{ comment.ip_address|escape }}</td>
          <td>{{ comment.ip_address }}</td>
          <td>{{ comment.submit_date|date:"F j, P" }}</td>
        </tr>
      {% endfor %}
+2 −2
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
      <h1>Please correct the error{{ form.errors|pluralize }} below</h1>
    {% else %}
      <h1>Preview your comment</h1>
      <blockquote>{{ comment|escape|linebreaks }}</blockquote>
      <blockquote>{{ comment|linebreaks }}</blockquote>
      <p>
        and <input type="submit" name="submit" value="Post your comment" id="submit"> or make changes:
      </p>
Loading