kopia lustrzana https://github.com/wagtail/wagtail
Remove snippets edit_header.html in favour of generic slim_header.html
This is now possible now that the slim_header.html template has the history icon link includepull/10919/head
rodzic
2b89685f80
commit
31694dc141
|
@ -242,6 +242,7 @@ The templates for the snippets views have been refactored to reuse the shared `s
|
|||
|
||||
- `wagtailsnippets/snippets/headers/_base_header.html`
|
||||
- `wagtailsnippets/snippets/headers/create_header.html`
|
||||
- `wagtailsnippets/snippets/headers/edit_header.html`
|
||||
- `wagtailsnippets/snippets/headers/history_header.html`
|
||||
- `wagtailsnippets/snippets/headers/list_header.html`
|
||||
- `wagtailsnippets/snippets/headers/usage_header.html`
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{% block titletag %}{% blocktrans trimmed with snippet_type_name=model_opts.verbose_name %}Editing {{ snippet_type_name }} - {{ object }}{% endblocktrans %}{% endblock %}
|
||||
{% block bodyclass %}{% if locked_for_user %}content-locked{% endif %}{% endblock %}
|
||||
{% block content %}
|
||||
{% include 'wagtailsnippets/snippets/headers/edit_header.html' %}
|
||||
{% include 'wagtailadmin/shared/headers/slim_header.html' %}
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title=object icon=header_icon merged=1 only %}
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
{% extends 'wagtailadmin/shared/headers/slim_header.html' %}
|
||||
{% load wagtailadmin_tags i18n %}
|
||||
|
||||
{% block actions %}
|
||||
{{ block.super }}
|
||||
|
||||
{# Object history #}
|
||||
{% include "wagtailadmin/shared/headers/_history_icon_link.html" with history_url=history_url nav_icon_button_classes=nav_icon_button_classes nav_icon_classes=nav_icon_classes only %}
|
||||
{% endblock %}
|
Ładowanie…
Reference in New Issue