0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-25 13:10:14 +01:00
Commit Graph

16624 Commits

Author SHA1 Message Date
Sage Abdullah
81ea6d6266 Remove nice-padding from documents, users, and generic listing views tables
The added CSS handles the case when nice padding is removed (to make the listing
go full-width) and no bulk actions are available (e.g. a ModelViewSet index view
or some other view that extends generic listing view).

This allows us to not rely on the full-width class (which should
eventually be removed) while correctly apply the spacing regardless
whether nice-padding is used or not, and whether bulk actions are
available or not.

If nice-padding is used, then the listing view will look as they
previously do.
2024-01-02 09:00:58 +00:00
Sage Abdullah
1ad22f530d Enforce bulk action checkbox column via CSS
10px was never the right width.

Using CSS instead of the column's width attribute allows us to use media queries to change the width responsively
2024-01-02 09:00:58 +00:00
Sage Abdullah
174146edef Reuse search_form block from slim_header in page_listing_header.html
And rename get_results_url() in pages' BaseIndexView to
get_index_results_url to match the method in generic IndexView
2024-01-02 09:00:58 +00:00
Sage Abdullah
28d21bf066 Make styles for header buttons consistent 2024-01-02 09:00:58 +00:00
Sage Abdullah
73f7a1abc4 Use button components pattern for slim header buttons 2024-01-02 09:00:58 +00:00
Sage Abdullah
2274a44572 Add default template for Button component 2024-01-02 09:00:58 +00:00
Sage Abdullah
4554dbdf4f Rename main_actions and more_actions to header_buttons and header_more_buttons
To follow the pattern for get_list_buttons and get_list_more_buttons

This will be made clearer in the next commit
2024-01-02 09:00:58 +00:00
Sage Abdullah
c900ba6c8e Reduce slim header search bar height to match filter button 2024-01-02 09:00:58 +00:00
Sage Abdullah
8a7dd1f5a1 Don't use legacy header when breadcrumbs are used 2024-01-02 09:00:58 +00:00
Sage Abdullah
5ede8a132d Show edit as a main action in generic history and usage views 2024-01-02 09:00:58 +00:00
Sage Abdullah
2e23981021 Change 'Usage of' page title to 'Usage'
page_title and page_subtitle are not meant to be read as one phrase
2024-01-02 09:00:58 +00:00
Sage Abdullah
e7e9ae5a1e Use border instead of underline in breadcrumbs to prevent gap with sublabel 2024-01-02 09:00:58 +00:00
Sage Abdullah
62f4ebe0d1 Add sublabel to history, usage, and inspect breadcrumb items 2024-01-02 09:00:58 +00:00
Sage Abdullah
3cbf3b4b6a Add sublabel support to breadcrumbs 2024-01-02 09:00:58 +00:00
Sage Abdullah
4407c5b5b0 Improve styles of slim header's search and filters for better vertical alignment 2024-01-02 09:00:58 +00:00
Sage Abdullah
71f826575a Add filters to slim_header.html 2024-01-02 09:00:58 +00:00
Sage Abdullah
b8ad40170a Add header actions in generic index view 2024-01-02 09:00:58 +00:00
Sage Abdullah
370351bcda Add the ability to define header actions in generic views 2024-01-02 09:00:58 +00:00
Sage Abdullah
3f23fe35da Add stripped option to fragment tag 2024-01-02 09:00:58 +00:00
Sage Abdullah
a6a51cbc63 Allow actions in slim_header.html to be passed as variable 2024-01-02 09:00:58 +00:00
Sage Abdullah
db2c8d842f Add search support in slim_header.html template 2024-01-02 09:00:58 +00:00
Sage Abdullah
3fbf792621 Use bigger font size for last breadcrumb item by default except on create/edit views
We want to make the slim_header.html as the basis for the modern header
template that will be used everywhere, eventually replacing header.html.

Rather than making the page explorer be the special case where we want
the last item to be bigger, do it the other way around i.e. use the
smaller font size on the create/edit views. This ensures that the big
font size is used on all other views e.g. Inspect view.
2024-01-02 09:00:58 +00:00
Sage Abdullah
f4f08ee2fe Move breadcrumbs styling in _listing.scss to its own _breadcrumbs.scss file 2024-01-02 09:00:58 +00:00
Sage Abdullah
6f92a71253 Move page explorer header's extra spacing to CSS
For better colocation with the CSS that increases the font size
2024-01-02 09:00:58 +00:00
Sage Abdullah
3c5f485201 Introduce get_header_title in WagtailAdminTemplateMixin for <title> and slim header's h1 2024-01-02 09:00:58 +00:00
Sage Abdullah
d9b340ab68 Add dedicated blocks for title, breadcrumbs, and actions in slim_header.html and refactor page header templates to make better use of them 2024-01-02 09:00:58 +00:00
Sage Abdullah
454c4eabae Explicitly pass, document, and limit the variables accepted by slim_header.html
We'll be building this as the replacement for header.html eventually.

So, we should properly document each variable and make sure the template
is used as intended by not implicitly passing all variables.

Unfortunately, this isn't possible yet for pages and snippets due to the
side panels relying on some variables from the view.
2024-01-02 09:00:58 +00:00
Sage Abdullah
efd7d85f9f Rename actions block in slim_header.html to toggles
We're going to add a block for the three-dot dropdown actions menu (beside the breadcrumbs), which is more fitting to use the 'actions' name

The old actions block is for placing the side panel toggles (and the Live link), so it's more fitting to use the name 'toggles'
2024-01-02 09:00:58 +00:00
Sage Abdullah
b0deeab728 Change page listing's add button to icon-only 2024-01-02 09:00:58 +00:00
Sage Abdullah
568e926043 Move page listing search form to be in the same row as the breadcrumbs 2024-01-02 09:00:58 +00:00
Sage Abdullah
5926e9fabe Standardise search form placeholder to 'Search…' 2024-01-02 09:00:58 +00:00
Matt Westcott
5eb38c2c8b Release note for #11403 2024-01-02 06:16:11 +00:00
Cynthia Kiser
3bc5564a8b Correct pygments lexer names 2024-01-02 06:14:24 +00:00
Cynthia Kiser
4bf3f82b7e Link target was removed when the setting was removed 2024-01-02 06:14:24 +00:00
Cynthia Kiser
56135dbb66 Corrected links to Django documentation
Apparently you can't use implicit references with url fragments
2024-01-02 06:14:24 +00:00
Cynthia Kiser
1b76b8154f Fix additional ambiguous reference warnings during sphinx build 2024-01-02 06:14:24 +00:00
Cynthia Kiser
a69586f61c Renamed rich_text reference to eliminate ambiguous reference warnings 2024-01-02 06:14:24 +00:00
Sylvain Fankhauser
b62d043f70 Relax django-taggit dependency to allow 5.0 (#11363) 2024-01-02 05:32:27 +00:00
Damilola Oladele
247b83030d
Documentation: GSoD—Improve the clarity of new tutorial (#11357)
Clarified tutorial based on feedback
2023-12-30 20:33:45 -08:00
Sævar Öfjörð Magnússon
2b061ac96e
Fix a typo in the SnippetsViewSet documentation (#11390) 2023-12-22 13:40:29 +00:00
Thibaud Colas
8a6ab175fc
Mention the BSD license in the docs copyright notice. Fix #9688 2023-12-22 06:37:34 +00:00
Thibaud Colas
ad8912c481 Add release notes for #11217, #11360, #11354 2023-12-20 00:38:04 +00:00
Sage Abdullah
f1909c73e4
Release note for #11359 and #11361 2023-12-19 16:59:20 +00:00
Matt Westcott
2b226b7b49
Add site filter to page listing 2023-12-19 16:59:20 +00:00
Matt Westcott
79a85e7dbd
Add owner filter to page listing 2023-12-19 16:59:19 +00:00
Thibaud Colas
607f020c2d Upgrade TypeScript dependencies for linting to support TypeScript 5.2.2 2023-12-19 15:39:49 +00:00
Thibaud Colas
e95158af73 Upgrade ts-loader 2023-12-19 15:39:49 +00:00
Thibaud Colas
aa8de9f74f List specific supported Safari versions
This is useful because we interpret "Last n" differently for Safari - to only consider major version bumps.
And this will only be updated once a year so it won’t be too onerous to keep up-to-date.
2023-12-19 15:39:49 +00:00
Thibaud Colas
b120fccba9 Simplify browserslist definition for ease of future maintenance 2023-12-19 15:39:49 +00:00
Thibaud Colas
58cfea4087 Update to latest caniuse-late 2023-12-19 15:39:49 +00:00