Ticket #5425: 00-admin-pagination.diff

File 00-admin-pagination.diff, 949 bytes (added by Petr Marhoun <petr.marhoun@…>, 17 years ago)

new version - after autoescape merge

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

    === modified file 'django/contrib/admin/templates/admin/pagination.html'
     
    66    {% paginator_number cl i %}
    77{% endfor %}
    88{% endif %}
    9 {{ cl.result_count }} {% ifequal cl.result_count 1 %}{{ cl.opts.verbose_name|escape }}{% else %}{{ cl.opts.verbose_name_plural }}{% endifequal %}
     9{% ifequal cl.result_count 1 %}
     10        {% blocktrans with cl.result_count as count and cl.opts.verbose_name as verbose_name %}{{ count }} {{ verbose_name }}{% endblocktrans %}
     11{% else %}
     12        {% blocktrans with cl.result_count as count and cl.opts.verbose_name_plural as verbose_name_plural %}{{ count }} {{ verbose_name_plural }}{% endblocktrans %}
     13{% endifequal %}
    1014{% if show_all_url %}&nbsp;&nbsp;<a href="{{ show_all_url }}" class="showall">{% trans 'Show all' %}</a>{% endif %}
    1115</p>
Back to Top