mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
665f9342d3
commit
5cc93500e8
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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…
Reference in New Issue