Skip to content

Commit bf4eeb3

Browse files
author
Daniel Jowett
committed
Follow reversion template in 1) hiding object-tools and 2) using verbose app name
1 parent 809620c commit bf4eeb3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

feincms/templates/admin/feincms/revision_form.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
{% load i18n admin_urls %}
44

5+
{# override of breadcrumbs only required up to Reversion 2.0 #}
56
{% block breadcrumbs %}
67
<div class="breadcrumbs">
78
<a href="{% url 'admin:index' %}">{% trans "Home" %}</a> &rsaquo;
8-
<a href="{% url 'admin:app_list' app_label %}">{{app_label|capfirst|escape}}</a> &rsaquo;
9+
<a href="{% url 'admin:app_list' opts.app_label %}">{{opts.app_config.verbose_name}}</a> &rsaquo;
910
<a href="{% url opts|admin_urlname:'changelist' %}">{{opts.verbose_name_plural|capfirst}}</a> &rsaquo;
1011
<a href="{% url opts|admin_urlname:'change' object_id %}">{{original|truncatewords:"18"}}</a> &rsaquo;
1112
<a href="{% url opts|admin_urlname:'history' object_id %}">{% trans "History" %}</a> &rsaquo;
1213
{% blocktrans with opts.verbose_name as verbose_name %}Revert {{verbose_name}}{% endblocktrans %}
1314
</div>
1415
{% endblock %}
1516

17+
{% block object-tools %}{% endblock %}
18+
1619
{% block form_top %}
1720
<p>{% blocktrans %}Press the save button below to revert to this version of the object.{% endblocktrans %}</p>
1821
{% endblock %}
1922

20-
{% block submit_buttons_bottom %}
21-
<div class="submit-row">
22-
<input type="submit" value="{% trans 'Save' %}" class="default" name="_save" />
23-
</div>
24-
{% endblock %}
23+
{% block submit_buttons_top %}{% with is_popup=1 %}{{block.super}}{% endwith %}{% endblock %}
24+
{% block submit_buttons_bottom %}{% with is_popup=1 %}{{block.super}}{% endwith %}{% endblock %}

0 commit comments

Comments
 (0)