Proper context and breadcrumbs
This commit is contained in:
@@ -37,12 +37,16 @@
|
||||
{% if not is_popup %}
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="../../../">
|
||||
<a href="{% url 'admin:index' %}">
|
||||
{% trans "Home" %}
|
||||
</a>
|
||||
›
|
||||
<a href="../../">
|
||||
{{ app_label|capfirst }}
|
||||
›
|
||||
<a href="{% url 'admin:app_list' app_label=opts.app_label %}">
|
||||
{{ opts.app_config.verbose_name }}
|
||||
</a>
|
||||
›
|
||||
<a href="{% url opts|admin_urlname:'changelist' %}">
|
||||
{{ opts.verbose_name_plural|capfirst }}
|
||||
</a>
|
||||
›
|
||||
{% trans 'Reorder' %}
|
||||
@@ -72,7 +76,7 @@
|
||||
{% block object-tools %}
|
||||
<ul class="object-tools">
|
||||
<li>
|
||||
<a href="../">
|
||||
<a href="{% url opts|admin_urlname:'changelist' %}">
|
||||
{% blocktrans with opts.verbose_name_plural|capfirst as model %}Return to {{ model }}{% endblocktrans %}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user