Wykres commitów

11724 Commity (b3c35e5f7fbe224cc4fa05a946c89b6254f861f8)

Autor SHA1 Wiadomość Data
Karl Hobley b3c35e5f7f
Update Circle CI base image ()
[...] CircleCI’s latest pre-built container images were designed from the ground up to help your team build more reliably. Our new images were built specifically for continuous integration projects and they are our most deterministic, performant, and efficient images yet.
2021-09-18 17:11:43 +01:00
Matt Westcott 2f518eb147 Use gettext_lazy in modeladmin views where required
Class-level strings were using gettext, which meant that they were not respecting user language settings.
2021-09-18 21:25:41 +10:00
Dan Braghis a87acf5b17 Fix page history with deleted user 2021-09-18 21:17:26 +10:00
Storm Heg e565ecb618
Explicitly use port 80 for squash.io ()
Hopefully prevents scenarios where Squash prompts for a port number and a
wrong port number is entered. This leads to the Squash deployment never finishing and eventually timing out.
2021-09-17 18:22:44 +02:00
LB Johnston d949946434 fix warning message for disabling workflow task
- show the states_in_progress number based on the current Task only, not all tasks
- fixes 
2021-09-14 19:34:03 +10:00
bwilliams3 fb4a5a6961 Send notifications to active users only 2021-09-11 14:16:48 +10:00
Andrew Stone 7d9e90fdbd Ensure admin tab events are handled on page load
The `shown.bs.tab` event was being bound after showTab() was already
called, so on page load, the tabs weren't being updated correctly.
2021-09-10 07:06:59 +10:00
LB Johnston eba4ac1563 add release notes for 2021-09-10 07:01:37 +10:00
LB (Ben Johnston) b4f0f56a05
update package lock - caniuse-lite db ()
caniuse-lite has been successfully updated to 1.0.30001252

Target browser changes:
- and_chr 85
+ and_chr 92
- chrome 86
- chrome 85
+ chrome 92
+ chrome 91
- edge 86
- edge 85
+ edge 92
+ edge 91
- firefox 81
+ firefox 91
- ios_saf 14
- ios_saf 13.4-13.7
+ ios_saf 14.5-14.7
+ ios_saf 14.0-14.4
- safari 13.1
+ safari 14.1

Co-authored-by: LB Johnston <lb.johnston@virginaustralia.com>
2021-09-09 10:06:02 +02:00
Nick Moreton e86901ac2b
Set default_auto_field in wagtail.contrib.postgres_search AppConfig
Add default_auto_field = 'django.db.models.AutoField'

Co-authored-by: Nick Moreton <nick.moreton@torchbox.com>
2021-09-08 13:42:21 +01:00
Krzysztof Jeziorny cf064f2b99 Fix width on comment notifications dropdown
- Other languages' word can break the dropdown's layout
2021-09-07 20:54:43 +10:00
Sagar Agarwal 592408ac3d Remove target: _blank from 'view live' and 'view draft'
- Change new_window=True to False for 'view live' and 'view draft'
- fixes 
2021-09-07 20:43:33 +10:00
Jake Howard 4dc2967d26 Settings docs - remove duplicate word 2021-09-07 20:23:11 +10:00
Desaiakshata 22cdd89b68 Fix Window high contrast mode - tag field
-edit background color for form input field-forced color mode
2021-09-07 20:11:00 +10:00
Tibor Leupold 9ae4ab6084 Document how to limit a page parent to root
Closes 

Issue  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 ()
* 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 
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 & 2021-08-31 21:06:37 +10:00
Alex Tomkins 9812d606a9 Add a style fallback to avoid invalid inline styles
- fixes 
2021-08-31 21:02:43 +10:00
Karl Hobley bb7620f445
Frontend improvements for new slim sidebar ()
* 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 
2021-08-31 20:45:36 +10:00
LB Johnston 05727d2341 add support for non_field_errors rendering in workflow action modal
- fixes 
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 
2021-08-31 11:11:26 +10:00
fabienheureux cb08c997ea
Make all edit panels collapsible ()
* 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 , , , 

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 
2021-08-30 20:10:15 +10:00
Stefan Hammer 22a35b70d2 Fix home icon in breadcrumbs for limited-permission users, fixes
- 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 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