From bedde59aaa0e0cf012cfaa15fb6563633bd557f9 Mon Sep 17 00:00:00 2001 From: Roel Bruggink Date: Mon, 4 Apr 2016 20:20:27 +0200 Subject: [PATCH] Add 'revisions' action to 'more'. --- CHANGELOG.txt | 1 + CONTRIBUTORS.rst | 1 + docs/releases/1.5.rst | 1 + wagtail/wagtailadmin/wagtail_hooks.py | 1 + 4 files changed, 4 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index b7c2cbf604..aaeb2ac787 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -6,6 +6,7 @@ Changelog * Moved lesser-user actions in the page explorer into a 'More' dropdown * Added a hook `register_page_listing_buttons` for adding action buttons to the page explorer + * Added 'revisions' action to pages list (Roel Bruggink) * The "dynamic serve view" for images has been greatly improved See release notes for details * Added a hook `insert_global_admin_js` for inserting custom JavaScript throughout the admin backend (Tom Dyson) * The type of the ``search_fields`` attribute on ``Page`` models (and other searchable models) has changed from a tuple to a list (Tim Heap) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 18743e3e62..4f9794572a 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -120,6 +120,7 @@ Contributors * Jonas Lergell * Danielle Madeley * Janneke Janssen +* Roel Bruggink Translators =========== diff --git a/docs/releases/1.5.rst b/docs/releases/1.5.rst index 4b69d2c614..3f18d3e7fb 100644 --- a/docs/releases/1.5.rst +++ b/docs/releases/1.5.rst @@ -27,6 +27,7 @@ Minor features * Moved lesser-user actions in the page explorer into a 'More' dropdown * Added a hook :ref:`register_page_listing_buttons` for adding action buttons to the page explorer + * Added 'revisions' action to pages list (Roel Bruggink) * Added a hook :ref:`insert_global_admin_js` for inserting custom JavaScript throughout the admin backend (Tom Dyson) * The type of the ``search_fields`` attribute on ``Page`` models (and other searchable models) has changed from a tuple to a list (see upgrade consideration below) (Tim Heap) * Use `PasswordChangeForm` when user changes their password, requiring the user to enter their current password (Matthijs Melissen) diff --git a/wagtail/wagtailadmin/wagtail_hooks.py b/wagtail/wagtailadmin/wagtail_hooks.py index 3c3bbbedbb..be7e23c346 100644 --- a/wagtail/wagtailadmin/wagtail_hooks.py +++ b/wagtail/wagtailadmin/wagtail_hooks.py @@ -97,3 +97,4 @@ def page_listing_more_buttons(page, page_perms, is_parent=False): yield Button(_('Delete'), reverse('wagtailadmin_pages:delete', args=[page.id]), priority=30) if page_perms.can_unpublish(): yield Button(_('Unpublish'), reverse('wagtailadmin_pages:unpublish', args=[page.id]), priority=40) + yield Button(_('Revisions'), reverse('wagtailadmin_pages:revisions_index', args=[page.id]), priority=50)