Wykres commitów

11710 Commity (9ae4ab6084a47b31092ba6834f975c992a9fb93c)

Autor SHA1 Wiadomość Data
Tibor Leupold 9ae4ab6084 Document how to limit a page parent to root
Closes #2768

Issue #2768 was created because a way how to limit a page to be only
available under the root page was unknown.

The implementation has allowed this for a while now, but the issue was
not closed (presumably due to missing documentation).

The documentation of the `parent_page_types` filed now includes this
"special" case.
2021-09-07 09:52:33 +01:00
Karl Hobley 45b7788c6d
Completely hide sidebar in mobile mode (#7481)
* Add bars.svg icon

* Add Open/Close button for mobile mode

* Completely hide sidebar in mobile mode

* mobile state tweaks

* Rename 'open' to 'visibleOnMobile'
* Don't initialise 'collapsed' state based on screen size (old code)
* Remove main.sidebar--open (not used)

Co-authored-by: Storm Heg <storm@stormbase.digital>
2021-09-02 16:38:03 +01:00
Matt Westcott dcd920d0e8 add a shared get_context_data method to both chooser views to avoid repetition
This has the side-effect of adding searchform to the results-only context, but that doesn't add any extra processing or have any visible effect.
2021-09-01 20:46:41 +10:00
Matt Westcott 17e8fc22eb Refactor helper methods in chooser.py
JS context variables are only needed in one place now
2021-09-01 20:46:41 +10:00
Matt Westcott 2911878d21 On upload form validation error, only re-render the form rather than the whole modal 2021-09-01 20:46:41 +10:00
Matt Westcott c894d8f619 Add 'collections' to the context in the results view too
This prevents the 'collection' column from disappearing once you search / paginate / choose a collection
2021-09-01 20:46:41 +10:00
Matt Westcott 860cf46eaa use form.serialize for posting the search form 2021-09-01 20:46:41 +10:00
Matt Westcott 5b5336a98b replace ajax_pagination_nav with pagination_nav 2021-09-01 20:46:41 +10:00
Matt Westcott 5fff02c73e Make the results-only version of the chooser a distinct view 2021-09-01 20:46:41 +10:00
Matt Westcott fffc6fd987 Split response rendering into its own method 2021-09-01 20:46:41 +10:00
Matt Westcott 517cd166b6 Make document chooser into a class-based view 2021-09-01 20:46:41 +10:00
Matt Westcott 48dd1a8f50 Don't reuse documents/list.html for chooser
Synchronising context variables across the two views is too messy. This removes the reorderable columns from the chooser, but they were broken anyway.
2021-09-01 20:46:41 +10:00
Justin Slay 85faf19211 Change initial value of publish_copies to False 2021-09-01 17:47:12 +10:00
FDGod99 c2347a6d35 fix - high-contrast mode - sidebar needs visual separation
- Due to how high-contrast mode works, there was no visual separation between the sidebar and the main content, adding a transparent border resolves this without having any visual impact in non-high contrast mode
- fixes #7456
2021-09-01 08:02:42 +10:00
Matt Westcott 113182b571 Remove is_ajax checks from multiple upload views
is_ajax is scheduled for removal in Django 4.0, since Django no longer considers the X-Requested-With header as a definitive indicator of whether the request came from Javascript. On that logic, there is no real value in enforcing it in our AJAX-only views, and there's no harm in removing it (it just means that if anyone ever does make a non-AJAX request to that URL, they'll get an HTML fragment back rather than a 400 error, which is equally good at communicating the message that the URL endpoint isn't directly usable in the browser).
2021-09-01 07:42:02 +10:00
dependabot[bot] 7bf83f14f4 Bump tar from 6.1.3 to 6.1.11
Bumps [tar](https://github.com/npm/node-tar) from 6.1.3 to 6.1.11.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-tar/compare/v6.1.3...v6.1.11)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-01 07:33:33 +10:00
Matt Westcott 38586595f2 Remove bogus workflow_history filtering tests
This test class is mistakenly testing the site_history view - see the `get()` method. The workflow_history view doesn't have any filtering options, so there's nothing to test here.
2021-08-31 21:48:28 +10:00
Matt Westcott 7f27e0abbc Support calling get_image_model and get_document_model at import time
Attempting to call get_image_model or get_document_model at the top level of a models.py file currently fails with "Models aren't loaded yet". This can be avoided by passing `require_ready=False` to apps.get_model.

This change makes it possible for third-party apps to define abstract models with foreign key references to the possibly-custom image or document model (which can then be subclassed into concrete models in the project itself - defining concrete models in the third-party app probably still isn't safe, as the model will end up being baked into the third-party app's migrations).
2021-08-31 21:15:12 +10:00
LB Johnston d43c203c29 add release notes for #7480 & #7474 2021-08-31 21:06:37 +10:00
Alex Tomkins 9812d606a9 Add a style fallback to avoid invalid inline styles
- fixes #7387
2021-08-31 21:02:43 +10:00
Karl Hobley bb7620f445
Frontend improvements for new slim sidebar (#7469)
* Fix left padding not changing fast enough

* Make all icons stay in a fixed Y position

So they don't move when you hover

* Make the Wagtail a bit bigger in collapsed mode

* Fix position of search icon when expanding/contracting menu

* Animation refinements

* Fix gap between icon and text changing for legacy icons during collapse

* Only peek the menu if the mouse hovers over a menu

This fixes an issue where peeking wouldn't happen if you collapsed the
menu and then hovered over a menu item without the mouse leaving the
sidebar. It now always peeks when the user hovers the menu item.

But we still want to avoid it peeking when the user clicks the collapse
button, so I've moved the mouse enter/leave handlers to a sub-element
that doesn't include this button.

* Peek the sidebar on focus

Allows the sidebar to open when it receives keyboard focus, and stops it
annoyingly closing while you are typing a search query.

* Remove the start peeking timeout
2021-08-31 12:00:29 +01:00
Gordon Pendleton b6c172cf20 Allow html in multi image upload errors
- fixes #6824
2021-08-31 20:45:36 +10:00
LB Johnston 05727d2341 add support for non_field_errors rendering in workflow action modal
- fixes #7479
2021-08-31 20:16:18 +10:00
Matt Westcott f8f7f543b3
Update contributing docs to specify Node 14 2021-08-31 10:32:40 +01:00
infinityplusone 5f3207ca43 add object count to modeladmin header listing view 2021-08-31 11:53:34 +10:00
Chris 5593b8b42e Fix: Update elasticsearch path in documentation
New location: https://github.com/wagtail/wagtail/blob/main/wagtail/search/backends/elasticsearch7.py
2021-08-31 11:29:56 +10:00
dependabot[bot] 7804b9e3a4 Bump tar from 6.1.0 to 6.1.3
Bumps [tar](https://github.com/npm/node-tar) from 6.1.0 to 6.1.3.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-tar/compare/v6.1.0...v6.1.3)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-31 11:15:49 +10:00
dependabot[bot] 637377292b Bump trim-newlines from 3.0.0 to 3.0.1
Bumps [trim-newlines](https://github.com/sindresorhus/trim-newlines) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/sindresorhus/trim-newlines/releases)
- [Commits](https://github.com/sindresorhus/trim-newlines/commits)

---
updated-dependencies:
- dependency-name: trim-newlines
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-31 11:15:37 +10:00
dependabot[bot] ed95f6308b Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-31 11:15:17 +10:00
LB Johnston 277e5481e7 update node requirements to node v14
- fixes #7473
2021-08-31 11:11:26 +10:00
fabienheureux cb08c997ea
Make all edit panels collapsible (#7365)
* Make more panels type collapsible
* Remove duplicate js in homepage template
* Move collapsible code into its own js file
* Change $li to $target in collapsible.js, as in #6342

Closes #7364, #6342, #6187, #2123

Co-authored by: Fabien Le Frapper <contact@fabienlefrapper.me>
Co-authored-by: Robbie Mackay <rm@robbiemackay.com>
Co-authored-by: Scott Cranfill <scott.cranfill@jpl.nasa.gov>
2021-08-30 08:33:43 -07:00
Chakita b5abd8b155 High-contrast mode: restored vertical separation between field panels
- fixes #7455
2021-08-30 20:10:15 +10:00
Stefan Hammer 22a35b70d2 Fix home icon in breadcrumbs for limited-permission users, fixes #7348
- The html has just been synced with the html for unlimited users
2021-08-30 19:56:17 +10:00
amychan331@yahoo.com f1b3bbc52f Update form label css to be readable by screen reader
- login screen
2021-08-30 19:12:22 +10:00
LB Johnston 5d2794b932 add release note for #7381 2021-08-25 07:38:44 +10:00
Matt Westcott eca0e2d413 Add 'only' to prevent action_url from leaking into header.html's context and creating a spurious action button
Have confirmed that this doesn't strip out any context variables that we do rely on - IndexView is the only thing descending from the generic base template which customises the header beyond title/subtitle/icon, and it does that by explicitly passing parameters to `include`, not by having them floating around in the template context.
2021-08-25 07:38:44 +10:00
Matt Westcott 433fc29479 Remove redundant (and/or just plain wrong) sites-list div 2021-08-25 07:23:43 +10:00
Matt Westcott b89e298c08 Give generic/create.html and generic/edit.html a shared form.html base template 2021-08-25 07:23:43 +10:00
Matt Westcott 20385adde2 Add a mixin / base template to handle the admin page furniture including header
Fixes the inconsistency where some views have a subtitle attribute available and some don't.
2021-08-25 07:23:42 +10:00
Matt Westcott 2271dc6d2f Rejig generic/create.html to match edit.html 2021-08-25 07:23:42 +10:00
Matt Westcott c919d4c3b3 release note for #7425 2021-08-24 15:57:03 +01:00
Matt Westcott 1d5c696785 double backticks 2021-08-24 15:55:17 +01:00
Matt Westcott 1155373d72 "simplest way" -> "preferred way" 2021-08-24 15:42:04 +01:00
Matt Westcott 8921cb3a4d More helpful error message when passing a non-component to the component template tag 2021-08-24 15:42:04 +01:00
Matt Westcott e777517950 Update docs on action menu items to cover new API 2021-08-24 15:42:04 +01:00
Matt Westcott 83d24c8346 Link to release notes from deprecation warnings 2021-08-24 15:42:04 +01:00
Matt Westcott 1ad6f3518c Update docs to cover use of components in homepage panels / summary items 2021-08-24 15:42:04 +01:00
Matt Westcott 428c4c7a3f Documentation for template components 2021-08-24 15:42:04 +01:00
Matt Westcott f73a59402d Add tests for {% component %} tag, including HTML escaping 2021-08-24 15:42:04 +01:00
Matt Westcott 21d5a9bbfc Convert SiteSummaryPanel to a Component
Ensure that media defined on summary items is pulled through to the template.
2021-08-24 15:42:04 +01:00