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 include
pull/10919/head
Sage Abdullah 2023-09-18 17:07:43 +01:00
rodzic 2b89685f80
commit 31694dc141
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
3 zmienionych plików z 2 dodań i 10 usunięć

Wyświetl plik

@ -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`

Wyświetl plik

@ -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 %}

Wyświetl plik

@ -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 %}