2
0
Эх сурвалжийг харах

Remove unused snippets _header_with_history.html

Thibaud Colas 1 жил өмнө
parent
commit
602cc6f334

+ 1 - 0
CHANGELOG.txt

@@ -85,6 +85,7 @@ Changelog
  * Maintenance: Replace ModelAdmin history header human readable date template tag (LB (Ben) Johnston)
  * Maintenance: Update uuid to v9 and Jest to v29, with `jest-environment-jsdom` and new snapshot format (LB (Ben) Johnston)
  * Maintenance: Update test cases producing undesirable console output due to missing mocks, uncaught errors, warnings (LB (Ben) Johnston)
+ * Maintenance: Remove unused snippets _header_with_history.html template (Thibaud Colas)
 
 
 5.0.2 (21.06.2023)

+ 1 - 0
docs/releases/5.1.md

@@ -128,6 +128,7 @@ As part of tackling Wagtail’s technical debt and improving [CSP compatibility]
  * Replace ModelAdmin history header human readable date template tag (LB (Ben) Johnston)
  * Update uuid to v9 and Jest to v29, with `jest-environment-jsdom` and new snapshot format (LB (Ben) Johnston)
  * Update test cases producing undesirable console output due to missing mocks, uncaught errors, warnings (LB (Ben) Johnston)
+ * Remove unused snippets _header_with_history.html template (Thibaud Colas)
 
 ## Upgrade considerations
 

+ 0 - 20
wagtail/snippets/templates/wagtailsnippets/snippets/_header_with_history.html

@@ -1,20 +0,0 @@
-{% extends "wagtailadmin/shared/header_with_locale_selector.html" %}
-{% load wagtailadmin_tags i18n %}
-
-{% block extra_rows %}
-    {% if latest_log_entry %}
-        <div class="row last-updated">
-            <ul>
-                <li>
-                    {% avatar user=latest_log_entry.user size="small" tooltip=latest_log_entry.user_display_name %}
-                    {% trans "Last updated" %}
-                    {% human_readable_date date=latest_log_entry.timestamp %}
-                </li>
-                {% if history_url %}
-                    <li><a href="{{ history_url }}">{% icon "history" classname="default" %} {% trans "History" %}</a></li>
-                {% endif %}
-                <li>{% icon "snippet" classname="default" %} {{ model_opts.verbose_name|capfirst }}</li>
-            </ul>
-        </div>
-    {% endif %}
-{% endblock %}