Wykres commitów

11435 Commity (4dc68550bcbc310bac0673005fd86869277b1379)

Autor SHA1 Wiadomość Data
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
Matt Westcott 004bcf2650
Add documentation for custom JS on StructBlocks (#7164)
* Document the need for data-contentpath with StructBlock.form_template

* Add documentation for custom JS on StructBlocks
2021-05-12 11:52:25 +01:00
Dan Braghis df772cffea
Add feedback section in the release notes (#7183) 2021-05-12 11:22:26 +01:00
Thibaud Colas d58c90db5d
Update accessibility contribution guidance in bug report and PR templates (#7142)
Co-authored-by: Scott Cranfill <scott@scottcranfill.com>
2021-05-11 16:57:29 +01:00
Matt Westcott 7fbd656a43 flake8 2021-05-11 15:07:48 +01:00
Matt Westcott aa2d10c713 Release note for #6477 2021-05-11 15:05:59 +01:00
Matt Westcott c1f1c2e95c Copyediting for group view customisation docs 2021-05-11 14:56:33 +01:00
Matt Westcott 604e4d7297 Simplify get_group_viewset_cls 2021-05-10 15:56:47 +01:00
Jan Seifert 9dda314263 Allow GroupViewSet to be customised (#6477) 2021-05-10 14:43:53 +01:00
Matt Westcott 3f128b554e
Prevent JS error on URL hashes that are not tabs (#7169)
The tab code looks for the presence of a URL hash and calls showTab on a link with that href, without checking that the link A) actually exists and B) is a tab as identified by the data-tab attribute. As a result, non-tab-related uses of URL hashes (such as simply visiting /admin/#foo) throw a JS error.
2021-05-07 17:02:08 +01:00
Karl Hobley 8eb0ddfbc3 Add filter to hide all commenting actions from history 2021-05-07 13:08:46 +01:00
Kevin 3a4f7d9e36
Change 'iff' to 'if and only if' to avoid confusion. (#7158) 2021-05-06 17:28:30 +01:00
Matt Westcott c1d3b87674
Prevent StreamField initialisation from being broken by colliding HTML IDs (#7152)
Fixes #7146 - the root StreamField element is now matched by ID _and_ having a data-block attribute. (Duplicate IDs are invalid HTML and the 'proper' fix would be to add a global prefix to form fields, particularly since this problem isn't necessarily specific to StreamFields - but that would be a bigger breaking change.)
2021-05-06 09:45:23 +01:00
fabienheureux 6d01ced56b
Fix usage of html syntax instead of html+django (#7138) 2021-05-05 11:08:40 +01:00
Storm Heg 4d67cc8bb3
Add release notes for #7126 2021-05-04 21:16:11 +02:00
Tijani-Dia 06b6f91b91
Admin URLs respect APPEND_SLASH setting (#7126)
* Modified urlconf regex for default view depending on settings.APPEND_SLASH

Fixes #5331 

Co-authored-by: tijani <tijani-dia@github.com>
2021-05-04 21:15:48 +02:00
Matt Westcott 9d29ba862c Document idForLabel on the telepath widget API
Fixes #7145
2021-05-04 16:01:01 +01:00
Karl Hobley 19671c7073 Remove no longer needed enable_comment_panel hack 2021-05-04 15:07:03 +01:00
Karl Hobley c6d15175e8 Remove unneeded check from log_commenting_changes 2021-05-04 15:07:03 +01:00
Karl Hobley 8be72de524 Check for commenting changes in workflow actions too
One of them checks has_content_changes before creating a revision. Think
it's worth checking this in all variants for consitency, and also so we
don't forget to update the logic if we ever move comments out of
content in the future.
2021-05-04 15:07:03 +01:00
Karl Hobley 935ad479db Added methods to Comment and CommentReply for creating logs 2021-05-04 15:07:03 +01:00
Karl Hobley 0e184aefdc Make get_commenting_changes return a dict 2021-05-04 15:07:03 +01:00
Karl Hobley 8d19454a49 Allow log actions to define comments 2021-05-04 15:07:03 +01:00
Karl Hobley 122f509b1d Move comment formatting logic to LogActionRegistry 2021-05-04 15:07:03 +01:00
Karl Hobley 7494075e98 Add basic audit logging for replies 2021-05-04 15:07:03 +01:00
Karl Hobley 5089195cf3 Add basic audit logging for comments 2021-05-04 15:07:03 +01:00
Karl Hobley 5b197bab8b Add get_commenting_changes method to EditView 2021-05-04 15:07:03 +01:00
Karl Hobley 5e13a74a6d Allow message formatters to take the whole log entry record 2021-05-04 15:07:03 +01:00