Wykres commitów

9565 Commity (2e23ef4ee45ee553d0f1647a7a2ecb09983a19a3)

Autor SHA1 Wiadomość Data
Karl Hobley 2e23ef4ee4
Author specific locking docs changes (#5771)
* Add to Dashboard docs

* Replace Dashboard image to show locked pages

* Add further explanatory text to Dashboard

* Improve image readability, add missing bracket

Co-authored-by: jacobtoppm <55137073+jacobtoppm@users.noreply.github.com>
2020-01-28 09:07:01 +00:00
Andy Chosak 43acf24cc8 Always include contributor names in the CHANGELOG
The CHANGELOG docs say that contributor names should only be included if
they are not a core committer, but historical practice has been to
always include names. Per discussion on the core team, we want to change
this guidance to explicitly recommend always including contributor
names.

This not only encourages and recognizes contributions but also helps
future contributors know who worked on different parts of the code. This
record (along with git history) provides a good reference to understand
who made certain changes or features.
2020-01-27 09:25:42 -05:00
Andy Chosak 81d23fc8ab Support the rel attribute on ModelAdmin buttons
Currently it is possible to pass the target attribute to a button
created using ModelAdmin's ButtonHelper framework. This allows you to
generate button links like <a ... target="_blank">.

For example, if adding a new button and modeling it after the existing
edit_button code [0], you can add {'target': "_blank"} to the returned
dict and it'll get passed to the template when the button is rendered.

To be consistent with PR 4844, and to be consistent with what seems to
be the best practice ([1], [2]), we should also support passing the rel
attribute, which would allow for creation of button links like <a ...
target="_blank" rel="noopener noreferrer">.

[0] 5e2f50403b/wagtail/contrib/modeladmin/helpers/button.py (L61-L73)
[1] https://developers.google.com/web/tools/lighthouse/audits/noopener
[2] https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/
2020-01-26 21:06:26 -05:00
Jack Paine 70da204eb1 Reduce contrast of rich text toolbar. Fix #4997 (#5740) 2020-01-25 00:05:27 +00:00
Thibaud Colas 2933589680 Add release notes for #5467 2020-01-24 20:56:18 +00:00
Thibaud Colas 14a6561223 Use data- attribute instead of class 2020-01-24 20:56:18 +00:00
Simon Evans 9aaed8db4c Refactor logo SVG partials and update bg colour 2020-01-24 20:56:18 +00:00
Brian Edelman e0672d60b3 adds new image for accessible logo background, updates html and css for desktop and mobile to account for new image 2020-01-24 20:56:18 +00:00
Thibaud Colas eb0612c21c Add release notes for #5784 2020-01-24 15:56:34 +00:00
Casper Timmers 8af6b4a555 Add aria label for password reset. Fix #5782 (#5784) 2020-01-24 15:53:37 +00:00
Thibaud Colas b7872e3f2f Add release notes for #5773 2020-01-23 16:21:43 +00:00
Sævar Öfjörð Magnússon 9b64b39f4b Show 'Close Explorer' button on mobile viewports. Fix #5396 (#5773)
* Rework 'Close Explorer' button css so that it does not rely on u-hidden. Fixes issue #5396
* Update tests due to changed css classes on 'close explorer' button
2020-01-23 16:18:14 +00:00
Thibaud Colas ef6ace6e98 Add release notes for #5775 2020-01-23 15:59:43 +00:00
Kjartan Sverrisson 5dcc71799e Reorder login form to match expected tab order. Fix #5274 (#5775)
Addresses the issue of incorrect tab-order when logging on using keyboard. This change moves the password reset link to the very end of the form code, while maintaining the same visual location.

* Fix lint issues
* Refactor login position to remove unused media query

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-01-23 15:53:29 +00:00
Matt Westcott 11ba755f63 Release note for #5777 2020-01-23 15:33:19 +00:00
Casper Timmers 53d2259fbe Add alert role to search results (#5777)
* Add alert role to Page, Documents and Images search results
* Add alert role to Choosers, Users, Groups and Redirects search results
2020-01-23 15:21:02 +01:00
Matt Westcott 1547777a9b Rotate deprecation warnings 2020-01-23 13:06:49 +00:00
Matt Westcott 98e0dbcdab Remove wagtail.admin.decorators 2020-01-23 13:06:49 +00:00
Matt Westcott 697bb128fb Remove wagtail.admin.utils 2020-01-23 13:06:49 +00:00
Matt Westcott be8cd8f8a9 Remove dummy_request from Page 2020-01-23 13:06:49 +00:00
Matt Westcott 8ad9f8ecf7 Add changelog / release notes for 2.9 2020-01-23 11:56:35 +00:00
Matt Westcott 8cdb9077d3 Version bump to start work on 2.9 2020-01-23 11:41:03 +00:00
LB Johnston d202195333 fix minor typos in changelog/2.8 release notes 2020-01-22 07:27:34 +10:00
Matt Westcott 968d77be4d Version bump to 2.8rc1 2020-01-20 20:29:41 +00:00
Matt Westcott 42438e970b Generate new source strings for translation 2020-01-20 20:29:41 +00:00
Matt Westcott fb74944c90 Fetch new translations from Transifex 2020-01-20 20:29:41 +00:00
Allen, Timothy c4e5eb6afa Add an empty block area on the search results listing for adding extra fields after the title. 2020-01-20 19:04:02 +00:00
Matt Westcott d2080ff892 Update docs to cover responsive HTML being disabled by default 2020-01-20 18:57:51 +00:00
Matt Westcott 9332953f7e Set WAGTAILEMBEDS_RESPONSIVE_HTML to default to False and update tests for both cases 2020-01-20 18:57:51 +00:00
Matt Westcott 25942a4467 Rename WAGTAIL_ENABLE_RESPONSIVE_EMBED to WAGTAILEMBEDS_RESPONSIVE_HTML for consistency with other settings 2020-01-20 18:57:51 +00:00
Saptak S eda098de58 Abort unfinished ajax before new calls in all search ajax 2020-01-17 17:41:51 +00:00
Eric Sherman f5f841ed59 dropdown on search page by initing dropdowns on ajax success 2020-01-17 16:56:21 +00:00
Kalob Taulien aefb0f9506 Responsive emebed setting 2020-01-17 16:44:46 +00:00
Matt Westcott 7a92ca5ad9 Mark nested InlinePanels as experimental for now
See https://github.com/wagtail/wagtail/issues/5126#issuecomment-575607574, https://github.com/wagtail/wagtail/pull/5732#issuecomment-574753410
2020-01-17 13:00:50 +00:00
Matt Westcott 590bea3b7b Revert "Fix submenu footer blocking items in admin" (#5606)
This change causes the footer to no longer be bottom-aligned when the menu is shorter than window height.

This reverts commit a459e91692.
2020-01-17 12:58:20 +00:00
Andy Chosak 349fca66f3 Fix: Properly save ordering of nested InlinePanels
The order of nested InlinePanels (recently formally added in 5566)
doesn't get saved properly due to some now-invalid assumptions in the JS
selector code.

Currently, Wagtail users can use the editor up/down arrows to order
InlinePanel elements that contain child InlinePanels, but these may not
be properly saved.

Before InlinePanel nesting was supported, it was a safer bet that a
child panel would only contain one hidden input named "-ORDER". With
nesting, however, a parent panel will also contain hidden inputs named
like this for its child panels. This breaks the logic used in the
ordering code.

This change modifies the logic to use the jQuery `.children()` selector
instead of `.next()`, ensuring that we reference the correct adjacent
panel item.

An easy way to test this against current master is to use the Wagtail
testapp test models that exercise this behavior:

1. `wagtail start testwagtail` to create a new project.
2. `cd testwagtail`
3. Edit testwagtail/settings/base.py to add the Wagtail test
application `'wagtail.tests.testapp'` to the list of `INSTALLED_APPS`.
For the admin to work properly with this app, you also need to add
`'wagtail.contrib.settings'` to that list and copy the definition of
`WAGTAILADMIN_RICH_TEXT_EDITORS` from wagtail/tests/settings.py.
4. `./manage.py migrate` to create your local database.
5. `./manage.py createsuperuser` to create an admin user.
6. Create a new Event Page
(http://localhost:8000/admin/pages/add/tests/eventpage/3/).
7. Fill in all required items, and then add multiple speakers under
"Speaker Lineup". For each speaker, add at least one Award. Save the
page.
8. Try using the up/down arrows to reorder the speakers (the parent
InlinePanel), and save the page.
9. Note that when the page reloads, the ordering hasn't been saved. If
you debug using the developer tools, you'll notice that this is because
the code being modified here selects the child panel items instead of
the adjacent parent panel item.
2020-01-15 16:43:32 +00:00
Ascani Carlo 4864920555 Fix update_index throwing AttributeError when value is None (#5757) 2020-01-14 11:33:25 +00:00
Dan Braghis c4a0ec2c4f Use sensitive_post_parameters on password reset form (#5760) 2020-01-14 11:13:21 +00:00
Matt Westcott 1e44186f32 Reword upgrade note about removal of Page/Site from Django admin 2020-01-08 15:50:05 +00:00
Matt Westcott e927f6269a Release note for #5634 2020-01-08 15:43:34 +00:00
Matt Westcott e5f2611cc1 Move edit locking upgrade considerations note to 2.8 2020-01-08 15:20:25 +00:00
Matt Westcott 3f27014a86 Merge branch 'author-specific-locking' of https://github.com/jacobtoppm/wagtail into kaedroho-author-specific-locking 2020-01-08 15:05:59 +00:00
Matt Westcott 8c456a4e17 Renumber migrations for author page locking 2020-01-08 15:05:28 +00:00
Matt Westcott ee8eda8353 Merge branch 'author-specific-locking' of https://github.com/kaedroho/wagtail into kaedroho-author-specific-locking 2020-01-08 15:02:19 +00:00
Matt Westcott 7fdb06c86c Fill in release date for 2.7.1 2020-01-08 10:39:45 +00:00
Matt Westcott 8c49f2e68d Release notes for #5694 2020-01-07 17:03:09 +00:00
jacobtm 9fbeff41b3 Update reference to , add basic tests for locked pages report, and update to cope with missing UserPagePermissionsProxy.permissions if inactive or superuser 2020-01-07 17:00:17 +00:00
Alex Tomkins f4273fa683 Move all usage of versioned_static to media methods (#5694) 2020-01-07 16:46:57 +00:00
Matt Westcott ac72dec52a Add test case for tag field inside InlinePanel
Fixes #5414 - thanks to @johannesvogel for the original test case.
2020-01-07 15:39:10 +00:00
jacobtm df194b40f3 Display locked pages report only if user has 'unlock any page' permission for consistency with rfc 2020-01-07 14:57:00 +00:00