0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-28 00:17:06 +01:00
Commit Graph

11462 Commits

Author SHA1 Message Date
Matt Westcott
8422150485 Require python-dateutil>=2.7 (otherwise freezegun fails with module 'dateutil.tz' has no attribute 'UTC') 2021-06-14 16:17:04 +01:00
Matt Westcott
b1a3a292f7
Refactor images index into CBV and eliminate is_ajax (#7251)
* Convert images index to a class-based view

* Use TemplateView for images index

* Add a separate URL endpoint for image search results include

Eliminates use of request.is_ajax, along with some unnecessary collection querying
2021-06-14 13:54:28 +01:00
Thibaud Colas
14b0e807d6
Update guidance on alt text for images in rich text
This shortcoming was fixed and released in Wagtail 2.13
2021-06-11 14:11:55 +01:00
Chris Pollard
c9a55d8b1b Fix tagged page page copy regression in _copy_m2m_relations (#7224)
Fixes #7230
2021-06-11 14:08:55 +01:00
Karl Hobley
967626f9a2 Allow footer text to be set on sub menus 2021-06-11 13:47:12 +01:00
Karl Hobley
e047266153 Convert Icon to TypeScript 2021-06-11 09:32:18 +01:00
Karl Hobley
36966a5819 Merge Sidebar button implementation into shared implementation 2021-06-11 09:32:18 +01:00
Karl Hobley
5dabd762fa Use React event listeners for peeking the sidebar 2021-06-10 14:18:19 +01:00
Karl Hobley
8a79f27738 Add story containing Arabic translations 2021-06-10 14:18:19 +01:00
Karl Hobley
e463bedff1 Prevent double initialisation if Telepath is imported twice 2021-06-10 14:18:19 +01:00
Karl Hobley
33af79a1c4 Initial work on new sidebar react/css 2021-06-10 14:18:19 +01:00
Karl Hobley
15626b2789 Add angle icons 2021-06-10 14:18:19 +01:00
Matt Westcott
b8a86ac15d
Eliminate request.is_ajax from snippet listing view (#7209)
* Convert snippet list view to a class-based view

* Convert ListView to use TemplateView

* Add separate URL endpoint for listing results include

This eliminates the use of request.is_ajax, which will be removed in Django 4.0.

* Use a results_only parameter on ListView rather than distinct subclasses
2021-06-08 19:28:51 +01:00
Matt Westcott
0ef7a4ba05
Fix syntax error in StreamBlock example (#7238)
Fixes #7237
2021-06-04 19:04:38 +01:00
Matt Westcott
4abb53275b Fill in release date for 2.13.1 2021-06-01 15:51:13 +01:00
Matt Westcott
9813639b21 Fetch new translations from Transifex 2021-06-01 15:11:08 +01:00
Matt Westcott
9f4b9f36c9 Release note for #7223 in 2.13.1 2021-06-01 14:05:04 +01:00
Matt Westcott
09fb013a59
Fix broken link in comment notification HTML email (#7223)
Thanks to @auslaner for reporting.
2021-06-01 13:54:51 +01:00
Matt Westcott
ee8291d238 Prefetch wagtail_userprofile when retrieving comment authors
avatar_url will access this, so this prevents an N+1 query.
2021-06-01 10:57:24 +01:00
Dan Braghis
bca79b81f7
Change CodeQL analysis on cron only (#7229)
now that they mark unrelated changes as failures on PR...
2021-06-01 10:53:47 +01:00
Alex
fd4ed6aaeb Fix order
This change fixes promotion pages order.
2021-05-30 14:47:33 +02:00
Matt Westcott
7c6db207a8 Release note for #7216 in 2.13.1 2021-05-28 16:48:52 +01:00
Jacob Topp-Mugglestone
afff4d451a
Fix/comments with UUID user (#7216)
* Add UUID primary key to EmailUser

* Convert pks to strings when being used as dictionary keys for commenting, to prevent custom primary key fields on user model causing serialization to fail
2021-05-28 16:46:45 +01:00
Matt Westcott
a56143b90b Add release note for #7212 in 2.13.1 2021-05-28 16:39:24 +01:00
Karl Hobley
45dce6ac1e
Hide comment notifications checkbox when commenting is disabled (#7212)
Fixes #7203
2021-05-28 16:24:46 +01:00
Matt Westcott
e68d20f33e
Avoid n+1 query on recent edits dashboard panel (#7220)
The use of Page.objects.in_bulk to retrieve all page data for the panel in a single query was being thwarted by our use of revision.page.id when reading them back (which ends up loading the whole page object just to look at the id...)
2021-05-26 19:24:27 +01:00
Matt Westcott
de9588590b Allow workflows to be disabled (#7218)
Introduce a WAGTAIL_WORKFLOW_ENABLED setting; when false, the workflow report and settings menus are hidden, permissions are not registered, moderation-related dashboard panels on the homepage are skipped, workflow actions on add/edit page are hidden, and model methods such as page.current_workflow_state return None / False immediately without any db queries.
2021-05-26 19:23:28 +01:00
Matt Westcott
4dc68550bc
Reorganise snippet admin URLs to avoid ambiguous paths (#7208)
* Reorganise snippet admin URLs to avoid ambiguous paths

Snippet admin views allow for arbitrary strings as primary keys, and the current URL patterns don't adequately namespace these from reserved words like 'add' - for example, a snippet with the primary key 'add' would have an edit URL that collides with the add view at `/admin/snippets/foo/bar/add/`.

This is unlikely to come up in practice, but it does mean that our urlconf is more sensitive to ordering than it needs to be. Rearrange so that the verb (add, edit, delete) consistently comes before the pk, and add redirects to handle the legacy URLs.

* Release notes for #7208

Co-authored-by: Storm Heg <storm@stormheg.co>
2021-05-25 17:22:07 +02:00
Jaap Roes
8487c67ebb
Simplify oembed dict missing key fallback (#6922) 2021-05-24 17:20:13 +01:00
Bojan Mihelac
0dfc342d66 Small fix in doc for routablepage 2021-05-19 15:15:49 +01:00
Karl Hobley
acf467337f New sidebar: Logout => Log out 2021-05-18 09:01:34 +01:00
Karl Hobley
13b8b1b7b8 Update JavaScript guidelines to say two space indent 2021-05-17 15:26:10 +01:00
dependabot[bot]
6ec5484bce Bump hosted-git-info from 2.8.8 to 2.8.9
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 14:40:33 +01:00
dependabot[bot]
48fa41f560 Bump lodash from 4.17.20 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 14:40:10 +01:00
Karl Hobley
4daeed1bf5 Add locale filter into snippet chooser (#6699) 2021-05-17 13:24:03 +01:00
Matt Westcott
08be45dbd9 Release note for #7180 2021-05-17 12:32:19 +01:00
Matt Westcott
a982ebe9f2 Documentation for image rendition properties including full_url 2021-05-17 12:32:19 +01:00
Shreyash Srivastava
b718746715 Added full_url property on image renditions. (#7180)
Fixes #6803
2021-05-17 12:32:18 +01:00
Karl Hobley
a5e89db20d Initialise new sidebar in template 2021-05-17 11:48:29 +01:00
Karl Hobley
e67fb23ea8 Add JS and CSS entrypoints for new sidebar 2021-05-17 11:48:29 +01:00
Karl Hobley
04deadedba Move legacy sidebar JS into a separate module 2021-05-17 11:48:29 +01:00
Cynthia Kiser
acb016a255
Update sponsors list with recent contributions (#7167)
* Update sponsors list with recent contributions
2021-05-17 10:09:08 +01:00
Helen Chapman
868f19c95d
Prevent “Forgotten password” link from overlapping with field on mobile devices (#6748)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-05-14 22:26:44 +01:00
Matt Westcott
abf9199682 Remove redundant badges from readme
* Codecov is only tracking JS coverage, so displaying a coverage figure for the whole project is misleading
* wagtail-slack.now.sh appears to be dead
2021-05-14 16:18:22 +01:00
Karl Hobley
8e25960972
Telepath set up for new sidebar
* Add ability to register multiple hooks with register_temporarily

It's not possible to add multiple items in a ``with`` block in multiple
lines. So to register multiple hooks, you either need to put them all on
one line or add many nested ``with`` blocks.

This commit adds the ability to pass in a list of hooks into one call.
This works around the syntax error, but there's still no way to
represent this in a way that flake8 is happy with so I've added
``#noqa`` in a few places.

* Telepath set up for new sidebar

* unindent hooks.register_temporarily with blocks

Co-authored-by: Matt Westcott <matt@west.co.tt>

* Update wagtail/core/telepath.py

Co-authored-by: Matt Westcott <matt@west.co.tt>

Co-authored-by: Matt Westcott <matt@west.co.tt>
2021-05-14 16:16:55 +01:00
Matt Westcott
cfadc59acc Fix eslint/csslint warnings about line length / indenting 2021-05-13 16:09:02 +01:00
Matt Westcott
53ab6741b5 Fill in release date for 2.13 2021-05-12 14:58:08 +01:00
Matt Westcott
7feb2f4b2a Fetch new translations from Transifex 2021-05-12 14:51:56 +01:00
Coen van der Kamp
95693efc10
Disable options without translated parent. Add help text. (#7171) 2021-05-12 13:49:36 +01:00
Matt Westcott
7b0b8e2eb6 Add note about incompatibility with other streamfield replacement packages 2021-05-12 12:03:02 +01:00