{{ model.name }} | + {% else %} +{{ model.name }} | + {% endif %} + + {% if model.add_url %} +{% translate 'Add' %} | + {% else %} ++ {% endif %} + + {% if model.admin_url and show_changelinks %} + {% if model.view_only %} + | {% translate 'View' %} | + {% else %} +{% translate 'Change' %} | + {% endif %} + {% elif show_changelinks %} ++ {% endif %} + |
---|
{% translate 'You don’t have permission to view or edit anything.' %}
+{% endif %} diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index 8d6425ad04..61b5a13d74 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -4,6 +4,9 @@