Ticket #2006: patch.diff

File patch.diff, 1.3 KB (added by mhf@…, 18 years ago)

patch

  • django/contrib/admin/templates/admin/filter.html

     
    33<ul>
    44{% for choice in choices %}
    55    <li{% if choice.selected %} class="selected"{% endif %}>
    6     <a href="{{ choice.query_string }}">{{ choice.display }}</a></li>
     6    <a href="{{ choice.query_string }}">{{ choice.display|escape }}</a></li>
    77{% endfor %}
    88</ul>
  • django/contrib/admin/templates/admin/change_form.html

     
    1212<div class="breadcrumbs">
    1313     <a href="../../../">{% trans "Home" %}</a> &rsaquo;
    1414     <a href="../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
    15      {% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|striptags|truncatewords:"18" }}{% endif %}
     15     {% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18"|escape }}{% endif %}
    1616</div>
    1717{% endif %}{% endblock %}
    1818{% block content %}<div id="content-main">
Back to Top