0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

9408 Commits

Author SHA1 Message Date
Karl Hobley
5aa60e6722 Add user_has_lock to PagePermissionTester 2019-11-26 14:25:52 +00:00
Karl Hobley
7fbdbb58d9
Merge pull request #52 from jacobtoppm/author-locking-ui
Add button styling and text for lock/unlock button
2019-11-07 09:10:46 +00:00
jacobtm
eb97574836 Add button styling and text for lock/unlock button 2019-11-04 17:18:17 +00:00
Karl Hobley
d5f945186a
Merge pull request #51 from jacobtoppm/author-locking-ui
Author locking ui
2019-11-04 10:17:20 +00:00
Karl Hobley
e9182553a4 Remove "The" 2019-11-04 10:16:29 +00:00
jacobtm
b98816ff0b Improve translation compatibility, and allow base_report's 'no pages found' message to be customised using a block 2019-10-31 13:06:09 +00:00
jacobtm
83d98d9166 Reformatting and remove LockedPagesMenuItem 2019-10-31 10:27:36 +00:00
jacobtm
1c94a9cd53 Create base ReportView and refactor locked_pages into subclass LockedPagesView, with a base template base_reports.html for simple listing reports 2019-10-31 10:05:38 +00:00
jacobtm
d06e7d8462 Refactor reports out of pages and into reports-specific files 2019-10-30 14:39:32 +00:00
jacobtm
0db98757b4 Add reports submenu with locked pages as item 2019-10-30 13:06:40 +00:00
jacobtm
d50a9eb11a Add link to all locked pages under 'Your Locked Pages' 2019-10-30 12:09:58 +00:00
jacobtm
91f3d093ce Change locked pages view icon 2019-10-30 12:01:51 +00:00
jacobtm
430b50424e Include scss formatting and add bold formatting to locking messages 2019-10-30 11:58:50 +00:00
jacobtm
7914c601e1 Remove default locked message 2019-10-30 11:37:24 +00:00
jacobtm
46c13d1d7d Add messages with lock and unlock icons depending on page's lock state 2019-10-30 11:35:58 +00:00
jacobtm
612e376290 Add a way to include extra tags in messages, and use it to add unlocked icon to unlock success message 2019-10-30 10:37:17 +00:00
Karl Hobley
221c3a6da0 Add to settings docs 2019-10-29 13:58:46 +00:00
Karl Hobley
2f93ae56e5 Upgrade consideration 2019-10-29 11:01:44 +00:00
Karl Hobley
e4dfbac2b8 Use page_perms directly instead of copying into template context 2019-10-28 11:27:13 +00:00
Karl Hobley
52638a1a6c Remove page locked check from modeladmin edit template 2019-10-28 11:19:14 +00:00
Karl Hobley
ed32bc8444 fixup! Record time and user when a page is locked 2019-10-28 11:16:54 +00:00
Karl Hobley
f09919a0f9 Add "Locked pages" view 2019-10-18 13:14:12 +01:00
Karl Hobley
ffd81242c3 Added "Your locked pages" dashboard panel 2019-10-18 10:03:54 +01:00
Karl Hobley
2f0c7c3f43 Implement 'Unlock' page permission 2019-10-18 10:03:54 +01:00
Karl Hobley
ec2feb24c5 Allow global locks to be re-enabled with a setting 2019-10-18 10:03:10 +01:00
Karl Hobley
f4a1467b7e Implement author specific locking 2019-10-18 10:03:08 +01:00
Karl Hobley
67213d7286 Record time and user when a page is locked 2019-10-16 14:26:04 +01:00
Matt Westcott
fe9fcd5128 Make copy of ES6 settings before setting max_ngram_diff (#5625) 2019-10-16 09:22:43 +01:00
Matt Westcott
ddbbaea288 Formalise Python 3.8 support 2019-10-15 20:08:04 +01:00
Matt Westcott
34b3f0c0fc Recommend signals rather than hooks for model-level customisations
As per #5620 - signals are often overlooked as a way of customising model-level behaviour. We should recommend them over admin hooks where possible, as they aren't reliant on users taking one particular path through the admin - for example, an 'add document' signal will be triggered regardless of whether a document is created through the single uploader, multiple uploader, chooser model or a scripted task, whereas a hook would not catch all of these cases.
2019-10-15 13:52:32 +01:00
LB (Ben Johnston)
03cd4056df Docs - Add AbstractUser import to custom user model
- `from django.contrib.auth.models import AbstractUser`
- revise a previous changelog entry to clarify 'clean up' vs 'fix'
2019-10-12 09:57:47 +10:00
Matt Westcott
9d7d09bd75 Replace format() placeholders in translatable strings with % formatting
Fixes #5539. Transifex and Django's makemessages command have validation to catch invalid placeholder variables within translated strings - for example, where the translator has translated the variable name - but these only recognise old-style `%` formatting, not the `format` method, and so it's better for us to standardise on % formatting.

To reduce the burden on translators having to re-translate these strings, only the ones using named placeholders (`"Edited page {title}"`) rather than numeric ones (`"Edited page {0}"`) have been changed - hopefully the latter give less room for error.

Also fixed some incorrect use of plurals (verbose_name vs verbose_name_plural) in snippet confirmation messages.
2019-10-12 09:46:57 +10:00
David Thompson
6a6555eb19 Fix multiple minor documentation issues
- Typo in readme (verb did not agree with the subject)
- Grammatical error in topics/pages
- #5364 - Update URL config code block in getting-started/integrating-into-django
2019-10-12 09:42:02 +10:00
a-mere-peasant
1eae1e4614 Added 'image uploads in forms' to third party tutorials 2019-10-12 09:31:19 +10:00
Matt Westcott
a0035c33c0 Add example of template rendering to TableBlock docs
Addresses #5540
2019-10-12 09:29:10 +10:00
Matt Westcott
72ba719ac8 Remove mentions of Django 3.0 compatibility from release notes
Work on compatibility is ongoing while Django 3.0 is still in development; we don't want this to be misinterpreted as a statement of formal Django 3.0 support (which we can't promise until the final release)
2019-10-11 12:28:01 +01:00
Matt Westcott
7aacade7ec Add acknowledgement to The Motley Fool 2019-10-11 12:27:18 +01:00
Matt Westcott
ee68d2214a Release note for #5500 / #5612 2019-10-11 12:18:34 +01:00
Matt Westcott
3557c954c0 Clarify that menu item order attribute is ignored in construct_page_action_menu 2019-10-11 12:17:52 +01:00
Matt Westcott
671698a59f Add release note about template change for action menu items 2019-10-11 12:11:09 +01:00
Matt Westcott
6de06b6d04 Update construct_page_action_menu example
Now avoids redefining the whole list, and reflects the fact that the first (rather than last) item is picked as the default.
2019-10-11 12:11:09 +01:00
Matt Westcott
cbbddb5572 Revise action menu ordering so that the first (not last) item is picked as the default
Addresses backwards compatibility of existing action menu hooks, as per https://github.com/wagtail/wagtail/pull/5500#pullrequestreview-286868977
2019-10-11 12:11:09 +01:00
Matt Westcott
0bd6266736 Add 'Page locked' as a distinct menu item 2019-10-11 12:11:08 +01:00
Rahmi Pruitt
fe2f8644fa Allow default item in action menu to be overridden with construct_page_action_menu hook
Fixes #5438
2019-10-11 12:11:08 +01:00
Karl Hobley
0507ec5377 Release notes for #5611 2019-10-10 11:03:39 +01:00
pySilver
0149eff66a Implements ES7 support (#5611)
* Implements ES7 support

* Linter fix

* Adds docs

* isort fix

* Fixes typo
2019-10-10 11:00:14 +01:00
Matt Westcott
e1d3390a1f Release note for #5527 2019-10-09 12:53:58 +01:00
Matt Westcott
0569960acc Added upgrade note about disabling version strings 2019-10-09 12:16:59 +01:00
Matt Westcott
779620e53b Disable querystrings if a storage backend with hashed filenames is active 2019-10-09 12:16:58 +01:00
Matt Westcott
8711050e49 Add cache-busting parameter to admin static files
Fixes #5493
2019-10-09 12:16:56 +01:00