diff --git a/CHANGELOG.txt b/CHANGELOG.txt index b808ffc761..43bd445f11 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -22,6 +22,7 @@ Changelog * Add support for more rich text formats, disabled by default: `blockquote`, `superscript`, `subscript`, `strikethrough`, `code` (Md Arifin Ibne Matin) * Added `max_count_per_parent` option on page models to limit the number of pages of a given type that can be created under one parent page (Wesley van Lee) * `StreamField` field blocks now accept a `validators` argument (Tom Usher) + * Added edit / delete buttons to snippet index and "don't delete" option to confirmation screen, for consistency with pages (Kevin Howbrook) * Fix: Set `SERVER_PORT` to 443 in `Page.dummy_request()` for HTTPS sites (Sergey Fedoseev) * Fix: Include port number in `Host` header of `Page.dummy_request()` (Sergey Fedoseev) * Fix: Validation error messages in `InlinePanel` no longer count towards `max_num` when disabling the 'add' button (Todd Dembrey, Thibaud Colas) diff --git a/docs/releases/2.5.rst b/docs/releases/2.5.rst index 4880581f14..82525bdb69 100644 --- a/docs/releases/2.5.rst +++ b/docs/releases/2.5.rst @@ -32,6 +32,7 @@ Other features * Add support for more rich text formats, disabled by default: ``blockquote``, ``superscript``, ``subscript``, ``strikethrough``, ``code`` (Md Arifin Ibne Matin) * Added ``max_count_per_parent`` option on page models to limit the number of pages of a given type that can be created under one parent page (Wesley van Lee) * ``StreamField`` field blocks now accept a ``validators`` argument (Tom Usher) + * Added edit / delete buttons to snippet index and "don't delete" option to confirmation screen, for consistency with pages (Kevin Howbrook) Bug fixes diff --git a/wagtail/snippets/templates/wagtailsnippets/snippets/confirm_delete.html b/wagtail/snippets/templates/wagtailsnippets/snippets/confirm_delete.html index 84a633f0cb..e7f4455606 100644 --- a/wagtail/snippets/templates/wagtailsnippets/snippets/confirm_delete.html +++ b/wagtail/snippets/templates/wagtailsnippets/snippets/confirm_delete.html @@ -35,6 +35,7 @@
{% csrf_token %} + {% trans "No, don't delete" %}
diff --git a/wagtail/snippets/templates/wagtailsnippets/snippets/list.html b/wagtail/snippets/templates/wagtailsnippets/snippets/list.html index 6e51a0dc2f..551ecf685e 100644 --- a/wagtail/snippets/templates/wagtailsnippets/snippets/list.html +++ b/wagtail/snippets/templates/wagtailsnippets/snippets/list.html @@ -21,6 +21,16 @@

{{ snippet }}

{% else %}

{{ snippet }}

+ {% endif %}