Ticket #12694: 12694.diff

File 12694.diff, 1.0 KB (added by DrMeers, 4 years ago)
  • django/contrib/admin/templates/admin/change_form.html

    diff --git a/django/contrib/admin/templates/admin/change_form.html b/django/contrib/admin/templates/admin/change_form.html
    index 7c96628..c2fe812 100644
    a b  
    2525{% block content %}<div id="content-main">
    2626{% block object-tools %}
    2727{% if change %}{% if not is_popup %}
    28   <ul class="object-tools"><li><a href="history/" class="historylink">{% trans "History" %}</a></li>
    29   {% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
     28  <ul class="object-tools">
     29    {% block object-tools-items %}
     30    <li><a href="history/" class="historylink">{% trans "History" %}</a></li>
     31    {% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
     32    {% endblock %}
    3033  </ul>
    3134{% endif %}{% endif %}
    3235{% endblock %}
Back to Top