Sage Abdullah
c6bb19d823
Render breadcrumbs in page usage view
2024-03-14 06:24:06 +10:00
Sage Abdullah
a388e57c1c
Extract get_breadcrumbs_items_for_page from page_breadcrumbs template tag
2024-03-14 06:24:06 +10:00
Sage Abdullah
c844c54671
Set usage_url_name explicitly on pages.UsageView
2024-03-14 06:24:06 +10:00
Sage Abdullah
2ee27d4dfa
Make generic.UsageView.edit_url_name optional
2024-03-14 06:24:06 +10:00
Sage Abdullah
7a703a01c4
Remove unused page_perms parameter in page_breadcrumbs template tag
2024-03-14 06:24:06 +10:00
Sage Abdullah
b3eff69be3
Add icon support to page_breadcrumbs template tag
...
Not used anywhere at the moment, but technically possible as now they share the same template
2024-03-14 06:24:06 +10:00
Sage Abdullah
bc9538c9e1
Refactor page_breadcrumbs template tag to use generic breadcrumbs.html template
...
Move the logic from the page_breadcrumbs.html template to the
page_breadcrumbs template tag function. This allows us to completely
reuse the same generic breadcrumbs.html template.
As a result, the page_breadcrumbs.html template is now no longer needed
and can be removed.
2024-03-14 06:24:06 +10:00
Sage Abdullah
49a835c5eb
Add tests for page_breadcrumbs tag
...
To ensure we don't break things while refactoring
2024-03-14 06:24:06 +10:00
Sage Abdullah
06e76ec449
Enforce generic breadcrumbs to also be expanded if there's only one item
...
To match the behaviour of page_breadcrumbs
2024-03-14 06:24:06 +10:00
Sage Abdullah
2163a5279a
Reuse assertBreadcrumbsItemsRendered util in BreadcrumbsTagTest
2024-03-14 06:24:06 +10:00
Matt Westcott
f30c65138e
Release note for #11720
2024-03-12 14:57:31 +00:00
Sage Abdullah
bed92e4145
Use breadcrumbs for wagtail.locales views
2024-03-12 14:56:54 +00:00
Sage Abdullah
9fc53dcd6d
Eliminate N+1 queries for root_page in sites IndexView
2024-03-12 14:56:54 +00:00
Sage Abdullah
fa5531c5f2
Add test for number of queries to load the sites index view
2024-03-12 14:56:54 +00:00
Sage Abdullah
e7170d5571
Use breadcrumbs for wagtail.sites views
2024-03-12 14:56:54 +00:00
Sage Abdullah
1b53fa7150
Only show status side panel in CreateView if model is translatable
...
Otherwise it would only show an empty panel with the model name, which isn't very useful.
2024-03-12 14:56:54 +00:00
Matt Westcott
75af2f22be
Release note for #11709
2024-03-11 18:28:17 +00:00
Sage Abdullah
2c8b6321e4
Remove unused documents list.html template
2024-03-11 18:26:58 +00:00
Sage Abdullah
ede3a58ba3
Use workaround to allow tag filtering and searching documents at the same time
2024-03-11 18:26:58 +00:00
Sage Abdullah
2b0b5d017b
Refactor documents collection filter to use django-filter
...
This also gives us tag filtering for free via BaseMediaFilterSet.
2024-03-11 18:26:58 +00:00
Sage Abdullah
89ed36c38c
Use breadcrumbs and new header button for documents listing view
2024-03-11 18:26:58 +00:00
Sage Abdullah
45484c5da7
Release note for #11698
2024-03-11 14:06:50 +00:00
Sage Abdullah
c9a05832c1
Evaluate tagged item pks in tag+search workaround instead of using a subquery
...
The query seems quite complex to be a subquery
2024-03-11 09:55:52 +00:00
Sage Abdullah
f1610a992e
Unset images IndexView.columns to prevent updated_at annotation
2024-03-11 09:55:42 +00:00
Sage Abdullah
f8201f00ca
Use workaround to allow filtering and searching images
2024-03-11 09:55:42 +00:00
Sage Abdullah
7714bb8f7a
Reimplement image listing filtering by tag using django-filter
2024-03-11 09:55:42 +00:00
Sage Abdullah
18b1b18d7a
Add FilterField("created_at") to AbstractImage.search_fields
...
This allows ordering by newest/oldest while searching
2024-03-11 09:55:42 +00:00
Sage Abdullah
baf26ed5fa
Extract BaseListingView.get_filterset_kwargs()
2024-03-11 09:55:42 +00:00
Sage Abdullah
88fad9a071
Show full label for non-page listings HeaderButton
...
In the new designs, listings other than the page listings should show
the complete label for the main header button.
The page listing only shows the icon because much of the space is taken
by the side panel toggles.
The page listing's header button hasn't been refactored to use the
HeaderButton class, hence there is no changes to the page listings code
in this commit.
2024-03-11 09:55:41 +00:00
Sage Abdullah
a5aafe0d15
Remove support for customising the number of entries on the image listing
2024-03-11 09:55:41 +00:00
Sage Abdullah
a35b2f5bff
Use gettext_lazy for images IndexView class attributes
2024-03-11 09:55:41 +00:00
Sage Abdullah
420723c174
Move 'sort by' select element in images listing to the slim header
...
This uses a custom header template that extends the slim_header.html
We could do this without the custom header template, but this would mean
the slim_header.html will accept yet another variable (extra_form_fields),
which we are trying to avoid to prevent it from accepting so many variables
like header.html.
This is especially since this "extra fields" block is only needed for the
images listing (at least for the foreseeable future).
2024-03-11 09:55:41 +00:00
Sage Abdullah
146a9f8e3f
Move rendering of header_buttons to slim_header.html
...
This allows us to easily override the slim_header block, as we won't need to redo the buttons rendering
2024-03-11 09:55:41 +00:00
Sage Abdullah
8f69ce3160
Refactor images collection filter to use django-filter
2024-03-11 09:55:38 +00:00
Sage Abdullah
9bd6abf16d
Extract CollectionQuerySet.get_min_depth()
2024-03-11 09:49:45 +00:00
Sage Abdullah
145f7af5e9
Preserve and pass only the collection_id to images add view
2024-03-11 09:49:45 +00:00
Sage Abdullah
3003632f2d
Use breadcrumbs in images listing view
2024-03-11 09:47:14 +00:00
LB Johnston
dd48762b18
Update changelog for cherry-pick #11736
2024-03-09 20:19:41 +10:00
Sage Abdullah
574a9d4ebd
Use TeleportController to re-render slim header's buttons on results refresh
...
Fixes #11726
2024-03-09 20:15:03 +10:00
Sage Abdullah
2003e14a95
Allow TeleportController to have any number of child nodes of any kind
2024-03-09 20:15:03 +10:00
Meagen Voss
a21b1cf21c
Adding a small README promo for Wagtail Space 2024 ( #11742 )
...
* Added promo for Wagtail Space 2024.
2024-03-09 17:46:54 +10:00
Matt Westcott
007d5b048d
Release note for #11735
2024-03-07 14:54:35 +00:00
Matt Westcott
92d1ff5d7a
Remove lesser-used archive formats from WAGTAILDOCS_EXTENSIONS list
2024-03-07 12:19:23 +00:00
Matt Westcott
5e5619d43f
Add warnings about XSS to WAGTAILDOCS_SERVE_METHOD and WAGTAILDOCS_EXTENSIONS settings docs
2024-03-07 12:19:22 +00:00
Matt Westcott
00d1d134aa
Mention WAGTAILDOCS_EXTENSIONS in 'integrating into Django' docs
2024-03-07 12:19:22 +00:00
Matt Westcott
f39a91a67e
Set a default WAGTAILDOCS_EXTENSIONS list in project template
2024-03-07 12:19:22 +00:00
Matt Westcott
abde315c0b
Update deployment docs to cover XSS risks
2024-03-07 12:19:22 +00:00
Sage Abdullah
c741351635
Release note for #11485
2024-03-07 09:58:28 +00:00
Matt Westcott
b05c50b3f5
Add reference docs for PageListingViewSet
2024-03-07 09:57:11 +00:00
Matt Westcott
f67b68d8ed
Use double quotes in
...
Co-authored-by: sage <laymonage@gmail.com>
2024-03-07 09:57:10 +00:00