Ticket #14450: templates.admin.patch

File templates.admin.patch, 2.8 KB (added by Vsevolod Novikov, 14 years ago)

Patch for admin templates to use a new app_name variable introduced in *.py.patch

  • change_form.html

    old new  
    1111
    1212{% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %}
    1313
    14 {% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
     14{% block bodyclass %}{{ app_name }}-{{ opts.object_name.lower }} change-form{% endblock %}
    1515
    1616{% block breadcrumbs %}{% if not is_popup %}
    1717<div class="breadcrumbs">
    1818     <a href="../../../">{% trans "Home" %}</a> &rsaquo;
    19      <a href="../../">{{ app_label|capfirst|escape }}</a> &rsaquo;
     19     <a href="../../">{{ app_name|escape }}</a> &rsaquo;
    2020     {% if has_change_permission %}<a href="../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} &rsaquo;
    2121     {% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
    2222</div>
  • change_list.html

    old new  
    4343      </a>
    4444       &rsaquo;
    4545       <a href="../">
    46          {{ app_label|capfirst }}
     46         {{ app_name }}
    4747      </a>
    4848      &rsaquo;
    4949      {{ cl.opts.verbose_name_plural|capfirst }}
  • delete_confirmation.html

    old new  
    44{% block breadcrumbs %}
    55<div class="breadcrumbs">
    66     <a href="../../../../">{% trans "Home" %}</a> &rsaquo;
    7      <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo;
     7     <a href="../../../">{{ app_name }}</a> &rsaquo;
    88     <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
    99     <a href="../">{{ object|truncatewords:"18" }}</a> &rsaquo;
    1010     {% trans 'Delete' %}
  • delete_selected_confirmation.html

    old new  
    44{% block breadcrumbs %}
    55<div class="breadcrumbs">
    66     <a href="../../">{% trans "Home" %}</a> &rsaquo;
    7      <a href="../">{{ app_label|capfirst }}</a> &rsaquo;
     7     <a href="../">{{ app_name }}</a> &rsaquo;
    88     <a href="./">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
    99     {% trans 'Delete multiple objects' %}
    1010</div>
  • object_history.html

    old new  
    44{% block breadcrumbs %}
    55<div class="breadcrumbs">
    66    <a href="../../../../">{% trans 'Home' %}</a> &rsaquo;
    7     <a href="../../../">{{ app_label|capfirst }}</a> &rsaquo;
     7    <a href="../../../">{{ app_name }}</a> &rsaquo;
    88    <a href="../../">{{ module_name }}</a> &rsaquo;
    99    <a href="../">{{ object|truncatewords:"18" }}</a> &rsaquo;
    1010    {% trans 'History' %}
Back to Top