Wykres commitów

11710 Commity (9ae4ab6084a47b31092ba6834f975c992a9fb93c)

Autor SHA1 Wiadomość Data
nmorduch 368049b835 Warn if StreamField doesn't use StreamFieldPanel (#7276) 2021-06-25 16:44:04 +01:00
Matt Westcott 2b8049fbd4 Add max_height param to Facebook and Instagram finders 2021-06-25 16:15:10 +01:00
Petr Dlouhý 50e4f5151d fix small youtube embed - allow to override max_width/max_height in EmbedBlock 2021-06-25 16:15:09 +01:00
Gordon Pendleton a64eb1f2f3 adjusted queries to ignore expired embeds (#7279) 2021-06-25 14:10:00 +01:00
Karl Hobley de8ee5ed99 Move account forms into admin
To be in the same app the views are defined
2021-06-25 13:07:49 +01:00
Jacob Topp-Mugglestone 51c3c8cb40 Don't assume window.comments exists during Draftail init
This may break use of Draftail widgets in custom image models, where the usual editor js is not used.
2021-06-25 09:56:38 +01:00
Storm Heg 688f022e48 Reinstate sidebar slim account menu css selector
It was still in use, oops...
2021-06-24 15:36:21 +01:00
Storm Heg 33efa345e3
[slim-sidebar] Small bug fixes 2021-06-24 11:12:15 +01:00
Storm Heg 877297f67e
[slim-sidebar] Styling changes 2021-06-23 21:50:33 +01:00
Daniel 431549c427 incorrect field name 2021-06-22 14:34:16 +01:00
Karl Hobley e457d6a0fd
[slim-sidebar] Always display menu that is opening on top of menu that is closing (#7270) 2021-06-22 14:34:53 +02:00
Storm Heg c475e96d1b Give every sidebar module a numerical key
This stops React from complaining that every child in a list should
have a unique key prop.
2021-06-22 13:25:00 +01:00
Karl Hobley b756c37731
[slim-sidebar 5] Page explorer (#7192)
* Added separate SidebarPanel component

* Copied explorer implementation

It's going to need a lot of changes

* Initialise the page explorer

* Move page explorer up a bit

* Hook into page explorer navigation

* Make navigate handler replace default button click behaviour

* Update page explorer to use SidebarPanel

* Add swipe in/out transition for page explorer
2021-06-22 13:45:19 +02:00
Matt Westcott 701fc099a4 Fix mention of documents being served through a Django view
Since Wagtail 2.7, this is no longer true by default when using remote storage - only when `WAGTAILDOCS_SERVE_METHOD` is explicitly set to `serve_view`.
2021-06-22 09:30:33 +01:00
Matt Westcott a28376a5c9 Give 404 pages a meaningful HTML title in project template (#7262)
Improve the generation of `<title>` tags as follows:

* use `page` in preference to `self` (self has been semi-deprecated ever since we added jinja2 support)
* Retrieve current site with `{% wagtail_site %}` rather than page.get_site so that it works on non-pages such as 404s
* Fill in the 'title' block on 404.html
2021-06-21 14:53:08 +01:00
Matt Westcott ac2e07e8c4 Move cleanForSlug into its own utils module
This allows us to test it without having to jump through hoops to make the rest of page-editor.js module-friendly, and moving the test module out of client/src/entrypoints means we don't duplicate it into wagtail/admin/static (where the test runner tries to run it again with broken imports)
2021-06-21 14:34:40 +01:00
Matt Westcott 39e168c574 Build front-end assets on CircleCI
This means we don't need a bogus "eslint-disable-next-line import/no-unresolved" directive when importing built CSS, which ends up breaking lint locally. Fixes #7177
2021-06-21 14:34:40 +01:00
Matt Westcott 9d19c2aa13 Fix eslint warnings 2021-06-21 14:34:40 +01:00
Storm Heg 7a03c125de Sidebar: use new toggle styling 2021-06-21 14:29:34 +01:00
Storm Heg 2b35464783 sidebar: use darker background color 2021-06-21 14:29:34 +01:00
Storm Heg dec4e9a0a3 Increase slim sidebar width 2021-06-21 14:29:34 +01:00
Michael Brown 30ec4631d2 Disable image/document Update button on click (#6676) 2021-06-18 16:58:19 +01:00
Chris Pollard 5f7181e05d Fix: Prevent 500 error when filtering by content_type. (#6755) 2021-06-18 16:42:42 +01:00
Gordon Pendleton 3c6ac4b502 added field `cache_until` to embed model (#6966) 2021-06-18 15:57:21 +01:00
Jake Howard 1408761e42 Emit a warning when trying to load a Draftail plugin which doesn't exist
This mostly catches the case of typos, or forgetting to actually register the feature
2021-06-18 15:22:14 +01:00
Matt Westcott 093d59d4e3 Move locale-related models into wagtail.core.models.i18n 2021-06-18 15:18:25 +01:00
Matt Westcott 4590e0d133 Move copying helper functions to wagtail.core.models.copying 2021-06-18 15:18:25 +01:00
Matt Westcott 3bdec6934b Use a signal for reassigning root page locale, rather than overriding Locale.delete
We can't use pre_delete for this, as that would be sent after on_delete validation has already failed (https://code.djangoproject.com/ticket/6870), so define a new pre_validate_delete signal for this.
2021-06-18 15:18:25 +01:00
Matt Westcott c9e47f142f Test that root page locale is reassigned on deletion 2021-06-18 15:18:25 +01:00
Matt Westcott 87057501ac Add titlesonly to reference / topics top-level TOCs
This prevents duplicated headings in places where the second-level index page has intro blurbs for each subsection (and also means we're not listing out long multi-section pages in full in the index, but given how big these indexes are that's probably not a bad thing).
2021-06-18 15:17:24 +01:00
Jake Howard d5b955b0e4 Exclude root pages from `ModelAdmin`s (#7213)
Previously, this would fail, as `user_can_copy_obj` doesn't handle root
pages. Root pages also are special in a number of ways, and handling
copying is tricky and non-obvious.

If someone needs to show root pages (for some reason), they'll have to
special case them themselves.
2021-06-18 14:10:39 +01:00
Jaap Roes 5808a49407 Update Makefile (#7067)
* List all tasks in .PHONY
* Describe develop task in help output
* Remove undocumented test-all task, it just executes tox which isn't one of the testing requirements
* Fix coverage task
* Running tests is not quick
2021-06-18 13:19:41 +01:00
Matt Westcott 74e3c1764f Release note for CVE-2021-32681 in Wagtail 2.13.2 2021-06-17 11:32:07 +01:00
Matt Westcott f108167111 Release note for CVE-2021-32681 in Wagtail 2.12.5 2021-06-17 11:31:34 +01:00
Matt Westcott 5954921cdf Release note for CVE-2021-32681 in Wagtail 2.11.8 2021-06-17 11:31:28 +01:00
Matt Westcott 11b6b34de1 Apply correct HTML escaping to jinja2 include_block tag 2021-06-17 11:30:28 +01:00
Matt Westcott c564c29494 Apply correct HTML escaping to include_block tag output 2021-06-17 11:30:28 +01:00
Matt Westcott 613c4328a2
Add Godswill Melford to contributors 2021-06-16 10:19:49 +01:00
Godswill Melford 212def6aa2 docs: update custom_account_settings.rst
Modify CustomSettingsForm import in hooks.py in user model usage
2021-06-16 10:19:03 +01:00
Matt Westcott 7e41ee8706 Add explanatory comments for submodules 2021-06-15 12:46:49 +01:00
Matt Westcott c04fe47dd0 Move logging models to wagtail.core.models.audit_log 2021-06-15 12:46:49 +01:00
Matt Westcott 99ae907c97 Add get_instance_title method to BaseLogEntryManager
This makes BaseLogEntryManager fully independent of the Page model
2021-06-15 12:46:49 +01:00
Matt Westcott ee254f72e0 Move Collection models to wagtail.core.models.collections 2021-06-15 12:46:49 +01:00
Matt Westcott 5e66087de7 Move BaseViewRestriction model to wagtail.core.models.view_restrictions 2021-06-15 12:46:49 +01:00
Matt Westcott 6648a69049 Move logging code from BaseViewRestriction to PageViewRestriction
View restrictions other than PageViewRestriction should not generate PageLogEntry records. (Luckily, the old code avoided doing this because PageViewRestriction.save and .delete would have been the only things that ever passed specific_instance to super.)
2021-06-15 12:46:49 +01:00
Matt Westcott 267f69a1d1 Move Site model to wagtail.core.models.sites 2021-06-15 12:46:49 +01:00
Matt Westcott 96b4df451c Move wagtail.core.models to a subfolder 2021-06-15 12:46:49 +01:00
Matt Westcott 4749c89cc8
Reinstate BaseLogEntry.comment property (#7253)
Fixes #7163
2021-06-14 17:39:46 +01:00
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