wagtail 6.2.2__py3-none-any.whl → 6.3rc2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wagtail/__init__.py +1 -1
- wagtail/actions/copy_for_translation.py +6 -0
- wagtail/actions/publish_revision.py +3 -3
- wagtail/admin/action_menu.py +5 -3
- wagtail/admin/forms/account.py +1 -1
- wagtail/admin/icons.py +2 -6
- wagtail/admin/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/cy/LC_MESSAGES/django.po +32 -0
- wagtail/admin/locale/dv/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/dv/LC_MESSAGES/django.po +28 -0
- wagtail/admin/locale/en/LC_MESSAGES/django.po +451 -485
- wagtail/admin/locale/en/LC_MESSAGES/djangojs.po +7 -7
- wagtail/admin/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/sl/LC_MESSAGES/django.po +150 -0
- wagtail/admin/locale/sl/LC_MESSAGES/djangojs.mo +0 -0
- wagtail/admin/locale/sl/LC_MESSAGES/djangojs.po +9 -2
- wagtail/admin/locale/ug/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/ug/LC_MESSAGES/django.po +3250 -196
- wagtail/admin/localization.py +12 -2
- wagtail/admin/panels/model_utils.py +1 -1
- wagtail/admin/site_summary.py +0 -2
- wagtail/admin/static/wagtailadmin/css/core.css +1 -1
- wagtail/admin/static/wagtailadmin/css/panels/draftail.css +1 -1
- wagtail/admin/static/wagtailadmin/images/email-header.jpg +0 -0
- wagtail/admin/static/wagtailadmin/js/bulk-actions.js +1 -1
- wagtail/admin/static/wagtailadmin/js/core.js +1 -1
- wagtail/admin/static/wagtailadmin/js/core.js.LICENSE.txt +12 -0
- wagtail/admin/static/wagtailadmin/js/draftail.js +1 -1
- wagtail/admin/static/wagtailadmin/js/sidebar.js +1 -1
- wagtail/admin/static/wagtailadmin/js/telepath/telepath.js +1 -1
- wagtail/admin/static/wagtailadmin/js/telepath/widgets.js +1 -1
- wagtail/admin/static/wagtailadmin/js/userbar.js +1 -1
- wagtail/admin/static/wagtailadmin/js/userbar.js.LICENSE.txt +1 -1
- wagtail/admin/static/wagtailadmin/js/vendor.js +1 -1
- wagtail/admin/static/wagtailadmin/js/wagtailadmin.js +1 -1
- wagtail/admin/static/wagtailadmin/js/workflow-action.js +1 -1
- wagtail/admin/staticfiles.py +6 -4
- wagtail/admin/templates/wagtailadmin/account/account.html +42 -59
- wagtail/admin/templates/wagtailadmin/admin_base.html +0 -28
- wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html +1 -1
- wagtail/admin/templates/wagtailadmin/chooser/_search_results.html +7 -5
- wagtail/admin/templates/wagtailadmin/chooser/tables/page_navigate_to_children_cell.html +1 -1
- wagtail/admin/templates/wagtailadmin/generic/chooser/results.html +7 -5
- wagtail/admin/templates/wagtailadmin/generic/edit.html +0 -8
- wagtail/admin/templates/wagtailadmin/generic/form.html +60 -17
- wagtail/admin/templates/wagtailadmin/generic/index.html +17 -0
- wagtail/admin/templates/wagtailadmin/generic/index_results.html +9 -35
- wagtail/admin/templates/wagtailadmin/generic/inspect.html +2 -21
- wagtail/admin/templates/wagtailadmin/generic/listing.html +11 -17
- wagtail/admin/templates/wagtailadmin/generic/listing_results.html +19 -1
- wagtail/admin/templates/wagtailadmin/home/account_summary.html +26 -0
- wagtail/admin/templates/wagtailadmin/home/locked_pages.html +28 -18
- wagtail/admin/templates/wagtailadmin/home/recent_edits.html +28 -17
- wagtail/admin/templates/wagtailadmin/home/site_summary_pages.html +2 -2
- wagtail/admin/templates/wagtailadmin/home/upgrade_notification.html +35 -13
- wagtail/admin/templates/wagtailadmin/home/user_objects_in_workflow_moderation.html +28 -18
- wagtail/admin/templates/wagtailadmin/home/workflow_objects_to_moderate.html +43 -32
- wagtail/admin/templates/wagtailadmin/home.html +22 -5
- wagtail/admin/templates/wagtailadmin/pages/_editor_js.html +0 -1
- wagtail/admin/templates/wagtailadmin/pages/action_menu/menu.html +1 -11
- wagtail/admin/templates/wagtailadmin/pages/action_menu/menu_item.html +1 -6
- wagtail/admin/templates/wagtailadmin/pages/action_menu/page_locked.html +1 -1
- wagtail/admin/templates/wagtailadmin/pages/action_menu/publish.html +1 -1
- wagtail/admin/templates/wagtailadmin/pages/action_menu/save_draft.html +1 -1
- wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_delete.html +12 -6
- wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_move.html +12 -7
- wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_publish.html +17 -11
- wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_unpublish.html +15 -9
- wagtail/admin/templates/wagtailadmin/pages/confirm_delete.html +9 -9
- wagtail/admin/templates/wagtailadmin/pages/confirm_move.html +2 -2
- wagtail/admin/templates/wagtailadmin/pages/confirm_unpublish.html +4 -4
- wagtail/admin/templates/wagtailadmin/pages/create.html +15 -34
- wagtail/admin/templates/wagtailadmin/pages/edit.html +15 -30
- wagtail/admin/templates/wagtailadmin/pages/explorable_index.html +6 -0
- wagtail/admin/templates/wagtailadmin/pages/explorable_index_results.html +60 -0
- wagtail/admin/templates/wagtailadmin/pages/index.html +1 -36
- wagtail/admin/templates/wagtailadmin/pages/index_results.html +2 -50
- wagtail/admin/templates/wagtailadmin/pages/listing/_locked_indicator.html +1 -1
- wagtail/admin/templates/wagtailadmin/pages/listing/_ordering_cell.html +1 -1
- wagtail/admin/templates/wagtailadmin/pages/listing/_page_header_buttons.html +1 -1
- wagtail/admin/templates/wagtailadmin/pages/listing/_page_title_column_header.html +3 -3
- wagtail/admin/templates/wagtailadmin/pages/listing/_pagination.html +1 -1
- wagtail/admin/templates/wagtailadmin/pages/listing.html +24 -0
- wagtail/admin/templates/wagtailadmin/pages/search.html +1 -20
- wagtail/admin/templates/wagtailadmin/pages/search_results.html +27 -25
- wagtail/admin/templates/wagtailadmin/permissions/includes/collection_member_permissions_formset.html +0 -1
- wagtail/admin/templates/wagtailadmin/reports/listing/_list_page_report.html +2 -2
- wagtail/admin/templates/wagtailadmin/reports/listing/_list_page_types_usage.html +6 -6
- wagtail/admin/templates/wagtailadmin/reports/workflow_tasks_results.html +1 -1
- wagtail/admin/templates/wagtailadmin/shared/action_menu/menu.html +14 -0
- wagtail/admin/templates/wagtailadmin/shared/action_menu/menu_item.html +6 -0
- wagtail/admin/templates/wagtailadmin/shared/avatar.html +13 -3
- wagtail/admin/templates/wagtailadmin/shared/header.html +0 -5
- wagtail/admin/templates/wagtailadmin/shared/headers/slim_header.html +1 -1
- wagtail/admin/templates/wagtailadmin/shared/page_status_tag_new.html +4 -1
- wagtail/admin/templates/wagtailadmin/shared/pagination_nav.html +1 -1
- wagtail/admin/templates/wagtailadmin/shared/side_panel_toggle.html +1 -1
- wagtail/admin/templates/wagtailadmin/shared/side_panels/includes/status/locale.html +1 -1
- wagtail/admin/templates/wagtailadmin/shared/side_panels/includes/status/usage.html +2 -2
- wagtail/admin/templates/wagtailadmin/shared/side_panels/preview.html +94 -52
- wagtail/admin/templates/wagtailadmin/{pages/_unsaved_changes_warning.html → shared/unsaved_changes_warning.html} +4 -4
- wagtail/admin/templates/wagtailadmin/shared/usage_summary.html +2 -2
- wagtail/admin/templates/wagtailadmin/shared/workflow_history/detail.html +1 -7
- wagtail/admin/templates/wagtailadmin/shared/workflow_history/listing.html +1 -0
- wagtail/admin/templates/wagtailadmin/shared/workflow_history/{list.html → listing_results.html} +33 -35
- wagtail/admin/templates/wagtailadmin/tables/references_cell.html +1 -1
- wagtail/admin/templates/wagtailadmin/workflows/create.html +11 -36
- wagtail/admin/templates/wagtailadmin/workflows/create_task.html +0 -38
- wagtail/admin/templates/wagtailadmin/workflows/edit.html +44 -74
- wagtail/admin/templates/wagtailadmin/workflows/edit_task.html +27 -66
- wagtail/admin/templates/wagtailadmin/workflows/includes/task_usage_cell.html +4 -2
- wagtail/admin/templates/wagtailadmin/workflows/includes/workflow_tasks_cell.html +4 -4
- wagtail/admin/templates/wagtailadmin/workflows/includes/workflow_used_by_cell.html +15 -11
- wagtail/admin/templates/wagtailadmin/workflows/task_chooser/includes/results.html +7 -5
- wagtail/admin/templatetags/wagtailadmin_tags.py +51 -22
- wagtail/admin/tests/pages/test_content_type_use_view.py +82 -2
- wagtail/admin/tests/pages/test_edit_page.py +70 -0
- wagtail/admin/tests/pages/test_explorer_view.py +65 -4
- wagtail/admin/tests/pages/test_page_search.py +8 -7
- wagtail/admin/tests/pages/test_page_usage.py +3 -1
- wagtail/admin/tests/pages/test_preview.py +208 -63
- wagtail/admin/tests/pages/test_reorder_page.py +91 -1
- wagtail/admin/tests/pages/test_view_draft.py +32 -1
- wagtail/admin/tests/pages/test_workflow_history.py +288 -7
- wagtail/admin/tests/test_account_management.py +23 -3
- wagtail/admin/tests/test_audit_log.py +24 -2
- wagtail/admin/tests/test_collections_views.py +17 -5
- wagtail/admin/tests/test_dashboard.py +1 -1
- wagtail/admin/tests/test_edit_handlers.py +3 -2
- wagtail/admin/tests/test_icon_sprite.py +4 -0
- wagtail/admin/tests/test_privacy.py +5 -19
- wagtail/admin/tests/test_reports_views.py +1 -1
- wagtail/admin/tests/test_site_summary.py +3 -3
- wagtail/admin/tests/test_templatetags.py +27 -3
- wagtail/admin/tests/test_upgrade_notification.py +71 -18
- wagtail/admin/tests/test_views.py +2 -2
- wagtail/admin/tests/test_views_generic.py +13 -0
- wagtail/admin/tests/test_widgets.py +3 -3
- wagtail/admin/tests/test_workflows.py +172 -27
- wagtail/admin/tests/tests.py +1 -1
- wagtail/admin/tests/viewsets/test_model_viewset.py +55 -3
- wagtail/admin/ui/side_panels.py +19 -0
- wagtail/admin/ui/sidebar.py +4 -3
- wagtail/admin/ui/tables/__init__.py +14 -1
- wagtail/admin/ui/tables/pages.py +6 -1
- wagtail/admin/urls/pages.py +10 -1
- wagtail/admin/urls/workflows.py +6 -1
- wagtail/admin/views/account.py +5 -1
- wagtail/admin/views/collections.py +0 -2
- wagtail/admin/views/generic/base.py +118 -1
- wagtail/admin/views/generic/history.py +158 -26
- wagtail/admin/views/generic/models.py +113 -99
- wagtail/admin/views/home.py +24 -9
- wagtail/admin/views/page_privacy.py +54 -30
- wagtail/admin/views/pages/history.py +11 -4
- wagtail/admin/views/pages/listing.py +76 -89
- wagtail/admin/views/pages/preview.py +1 -1
- wagtail/admin/views/pages/search.py +27 -71
- wagtail/admin/views/pages/usage.py +63 -24
- wagtail/admin/views/pages/utils.py +4 -3
- wagtail/admin/views/reports/base.py +0 -6
- wagtail/admin/views/workflows.py +67 -25
- wagtail/admin/viewsets/model.py +4 -3
- wagtail/admin/widgets/chooser.py +2 -1
- wagtail/api/v2/tests/test_pages.py +15 -2
- wagtail/blocks/field_block.py +15 -3
- wagtail/blocks/static_block.py +3 -0
- wagtail/contrib/forms/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/forms/locale/cy/LC_MESSAGES/django.po +29 -1
- wagtail/contrib/forms/locale/en/LC_MESSAGES/django.po +15 -11
- wagtail/contrib/forms/templates/wagtailforms/confirm_delete.html +1 -0
- wagtail/contrib/forms/templates/wagtailforms/index.html +1 -1
- wagtail/contrib/forms/templates/wagtailforms/index_results.html +1 -1
- wagtail/contrib/forms/templates/wagtailforms/list_submissions.html +2 -1
- wagtail/contrib/forms/templates/wagtailforms/panels/form_responses_panel.html +2 -2
- wagtail/contrib/forms/tests/test_views.py +234 -35
- wagtail/contrib/forms/utils.py +8 -14
- wagtail/contrib/forms/views.py +72 -27
- wagtail/contrib/frontend_cache/backends/azure.py +1 -1
- wagtail/contrib/frontend_cache/backends/cloudfront.py +2 -2
- wagtail/contrib/frontend_cache/backends/dummy.py +11 -0
- wagtail/contrib/frontend_cache/tests.py +31 -37
- wagtail/contrib/frontend_cache/utils.py +12 -5
- wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.po +16 -1
- wagtail/contrib/redirects/locale/en/LC_MESSAGES/django.po +20 -24
- wagtail/contrib/redirects/models.py +16 -1
- wagtail/contrib/redirects/signal_handlers.py +18 -3
- wagtail/contrib/redirects/templates/wagtailredirects/add.html +5 -16
- wagtail/contrib/redirects/templates/wagtailredirects/import_summary.html +1 -1
- wagtail/contrib/redirects/tests/test_redirects.py +49 -6
- wagtail/contrib/redirects/tests/test_signal_handlers.py +42 -1
- wagtail/contrib/redirects/views.py +27 -3
- wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.po +60 -1
- wagtail/contrib/search_promotions/locale/en/LC_MESSAGES/django.po +12 -18
- wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/add.html +5 -8
- wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/edit.html +15 -10
- wagtail/contrib/search_promotions/tests.py +13 -2
- wagtail/contrib/search_promotions/views.py +15 -3
- wagtail/contrib/settings/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/settings/locale/cy/LC_MESSAGES/django.po +6 -1
- wagtail/contrib/settings/locale/en/LC_MESSAGES/django.po +2 -10
- wagtail/contrib/settings/templates/wagtailsettings/edit.html +12 -45
- wagtail/contrib/simple_translation/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/simple_translation/locale/cy/LC_MESSAGES/django.po +13 -1
- wagtail/contrib/simple_translation/locale/dv/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/simple_translation/locale/dv/LC_MESSAGES/django.po +3 -0
- wagtail/contrib/simple_translation/locale/en/LC_MESSAGES/django.po +4 -4
- wagtail/contrib/simple_translation/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/simple_translation/locale/sl/LC_MESSAGES/django.po +5 -2
- wagtail/contrib/simple_translation/tests/test_views.py +51 -0
- wagtail/contrib/simple_translation/wagtail_hooks.py +16 -11
- wagtail/contrib/styleguide/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/styleguide/locale/cy/LC_MESSAGES/django.po +5 -1
- wagtail/contrib/styleguide/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/table_block/locale/cy/LC_MESSAGES/django.po +27 -1
- wagtail/contrib/table_block/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/blocks.py +25 -0
- wagtail/contrib/typed_table_block/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/typed_table_block/locale/cy/LC_MESSAGES/django.po +12 -1
- wagtail/contrib/typed_table_block/locale/en/LC_MESSAGES/django.po +10 -10
- wagtail/contrib/typed_table_block/tests.py +24 -1
- wagtail/coreutils.py +5 -11
- wagtail/documents/admin_urls.py +2 -2
- wagtail/documents/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/cy/LC_MESSAGES/django.po +10 -0
- wagtail/documents/locale/en/LC_MESSAGES/django.po +61 -76
- wagtail/documents/migrations/0014_alter_document_file_size.py +18 -0
- wagtail/documents/models.py +1 -1
- wagtail/documents/rich_text/__init__.py +1 -3
- wagtail/documents/static/wagtaildocs/js/add-multiple.js +1 -1
- wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_add_tags.html +5 -1
- wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_add_to_collection.html +5 -1
- wagtail/documents/templates/wagtaildocs/bulk_actions/confirm_bulk_delete.html +11 -5
- wagtail/documents/templates/wagtaildocs/documents/add.html +13 -41
- wagtail/documents/templates/wagtaildocs/documents/edit.html +28 -56
- wagtail/documents/templates/wagtaildocs/documents/index.html +1 -4
- wagtail/documents/templates/wagtaildocs/homepage/site_summary_documents.html +2 -2
- wagtail/documents/templates/wagtaildocs/multiple/add.html +36 -41
- wagtail/documents/tests/test_admin_views.py +64 -6
- wagtail/documents/tests/test_site_summary.py +3 -3
- wagtail/documents/views/documents.py +103 -113
- wagtail/documents/views/multiple.py +19 -1
- wagtail/embeds/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/oembed_providers.py +9 -19
- wagtail/fields.py +43 -27
- wagtail/images/admin_urls.py +2 -2
- wagtail/images/blocks.py +230 -2
- wagtail/images/fields.py +17 -29
- wagtail/images/image_operations.py +1 -1
- wagtail/images/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/cy/LC_MESSAGES/django.po +128 -1
- wagtail/images/locale/en/LC_MESSAGES/django.po +119 -129
- wagtail/images/migrations/0025_alter_image_file_alter_rendition_file.py +36 -43
- wagtail/images/migrations/0027_image_description.py +20 -0
- wagtail/images/models.py +120 -45
- wagtail/images/rich_text/__init__.py +1 -3
- wagtail/images/static/wagtailimages/js/add-multiple.js +1 -1
- wagtail/images/static/wagtailimages/js/image-block.js +1 -0
- wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_add_tags.html +5 -1
- wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_add_to_collection.html +5 -1
- wagtail/images/templates/wagtailimages/bulk_actions/confirm_bulk_delete.html +11 -5
- wagtail/images/templates/wagtailimages/chooser/results.html +2 -2
- wagtail/images/templates/wagtailimages/homepage/site_summary_images.html +2 -2
- wagtail/images/templates/wagtailimages/images/_file_field.html +2 -2
- wagtail/images/templates/wagtailimages/images/add.html +13 -31
- wagtail/images/templates/wagtailimages/images/edit.html +53 -82
- wagtail/images/templates/wagtailimages/images/index.html +1 -4
- wagtail/images/templates/wagtailimages/images/url_generator.html +1 -1
- wagtail/images/templates/wagtailimages/multiple/add.html +40 -47
- wagtail/images/templates/wagtailimages/widgets/image.html +5 -0
- wagtail/images/templates/wagtailimages/widgets/image_chooser.html +1 -1
- wagtail/images/tests/test_admin_views.py +70 -10
- wagtail/images/tests/test_blocks.py +367 -1
- wagtail/images/tests/test_image_operations.py +23 -0
- wagtail/images/tests/test_models.py +20 -0
- wagtail/images/tests/test_signal_handlers.py +99 -95
- wagtail/images/tests/test_site_summary.py +3 -3
- wagtail/images/tests/test_templatetags.py +11 -7
- wagtail/images/tests/tests.py +4 -0
- wagtail/images/views/images.py +103 -104
- wagtail/images/views/multiple.py +17 -1
- wagtail/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/cy/LC_MESSAGES/django.po +3 -0
- wagtail/locale/en/LC_MESSAGES/django.po +137 -125
- wagtail/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/sl/LC_MESSAGES/django.po +3 -0
- wagtail/locales/locale/en/LC_MESSAGES/django.po +8 -8
- wagtail/locales/views.py +4 -1
- wagtail/migrations/0089_log_entry_data_json_null_to_object.py +1 -7
- wagtail/models/__init__.py +122 -14
- wagtail/models/audit_log.py +1 -3
- wagtail/models/i18n.py +1 -2
- wagtail/project_template/Dockerfile +3 -3
- wagtail/project_template/requirements.txt +2 -2
- wagtail/query.py +17 -4
- wagtail/rich_text/__init__.py +2 -3
- wagtail/rich_text/pages.py +2 -4
- wagtail/rich_text/rewriters.py +2 -2
- wagtail/search/backends/database/mysql/query.py +3 -3
- wagtail/search/backends/database/sqlite/query.py +6 -6
- wagtail/search/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/en/LC_MESSAGES/django.po +6 -6
- wagtail/sites/views.py +0 -1
- wagtail/snippets/action_menu.py +14 -4
- wagtail/snippets/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/snippets/locale/cy/LC_MESSAGES/django.po +73 -1
- wagtail/snippets/locale/en/LC_MESSAGES/django.po +27 -33
- wagtail/snippets/static/wagtailsnippets/js/snippet-chooser-telepath.js +1 -1
- wagtail/snippets/static/wagtailsnippets/js/snippet-chooser.js +1 -1
- wagtail/snippets/templates/wagtailsnippets/bulk_actions/confirm_bulk_delete.html +5 -3
- wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/locked.html +1 -1
- wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu.html +1 -11
- wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu_item.html +1 -6
- wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/publish.html +1 -1
- wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/save.html +1 -1
- wagtail/snippets/templates/wagtailsnippets/snippets/create.html +1 -18
- wagtail/snippets/templates/wagtailsnippets/snippets/edit.html +1 -14
- wagtail/snippets/templates/wagtailsnippets/snippets/index.html +2 -5
- wagtail/snippets/tests/test_preview.py +193 -61
- wagtail/snippets/tests/test_snippets.py +247 -38
- wagtail/snippets/tests/test_usage.py +5 -0
- wagtail/snippets/tests/test_viewset.py +25 -9
- wagtail/snippets/tests/test_workflows.py +232 -19
- wagtail/snippets/views/snippets.py +1 -10
- wagtail/test/numberformat.py +104 -0
- wagtail/test/settings.py +10 -0
- wagtail/test/settings_ui.py +2 -0
- wagtail/test/testapp/migrations/0010_alter_customimage_file_and_more.py +71 -78
- wagtail/test/testapp/migrations/0040_nocreatablesubpagetypespage_nosubpagetypespage.py +54 -0
- wagtail/test/testapp/migrations/0041_alter_jsonstreammodel_options.py +17 -0
- wagtail/test/testapp/migrations/0042_alter_customdocument_file_size_and_more.py +28 -0
- wagtail/test/testapp/migrations/0043_customimage_description.py +41 -0
- wagtail/test/testapp/migrations/0044_custompreviewsizesmodel_custompreviewsizespage.py +52 -0
- wagtail/test/testapp/migrations/0045_alter_streampage_body.py +52 -0
- wagtail/test/testapp/models.py +62 -4
- wagtail/test/testapp/rich_text.py +2 -2
- wagtail/test/testapp/templates/tests/form_page_landing.html +2 -1
- wagtail/test/testapp/urls.py +5 -0
- wagtail/test/testapp/views.py +5 -0
- wagtail/test/utils/page_tests.py +5 -5
- wagtail/test/utils/template_tests.py +2 -2
- wagtail/tests/test_blocks.py +15 -0
- wagtail/tests/test_page_permissions.py +109 -0
- wagtail/tests/test_revision_model.py +27 -0
- wagtail/tests/test_signals.py +21 -2
- wagtail/tests/test_tests.py +30 -0
- wagtail/users/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/users/locale/cy/LC_MESSAGES/django.po +118 -1
- wagtail/users/locale/dv/LC_MESSAGES/django.mo +0 -0
- wagtail/users/locale/dv/LC_MESSAGES/django.po +3 -0
- wagtail/users/locale/en/LC_MESSAGES/django.po +89 -113
- wagtail/users/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/users/locale/sl/LC_MESSAGES/django.po +3 -0
- wagtail/users/migrations/0014_userprofile_contrast.py +23 -0
- wagtail/users/models.py +11 -0
- wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_assign_role.html +5 -1
- wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_delete.html +5 -1
- wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_set_active_state.html +5 -1
- wagtail/users/templates/wagtailusers/groups/create.html +19 -17
- wagtail/users/templates/wagtailusers/groups/edit.html +2 -40
- wagtail/users/templates/wagtailusers/groups/includes/formatted_permissions.html +1 -62
- wagtail/users/templates/wagtailusers/groups/includes/page_permissions_formset.html +0 -1
- wagtail/users/templates/wagtailusers/users/create.html +46 -50
- wagtail/users/templates/wagtailusers/users/edit.html +45 -62
- wagtail/users/templates/wagtailusers/users/index.html +1 -4
- wagtail/users/templatetags/wagtailusers_tags.py +1 -5
- wagtail/users/tests/test_admin_views.py +85 -66
- wagtail/users/views/groups.py +4 -1
- wagtail/users/views/users.py +2 -0
- {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/METADATA +6 -6
- {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/RECORD +378 -367
- wagtail/admin/static/wagtailadmin/js/preview-panel.js +0 -2
- wagtail/admin/static/wagtailadmin/js/preview-panel.js.LICENSE.txt +0 -11
- wagtail/admin/templates/wagtailadmin/generic/history_results.html +0 -1
- wagtail/admin/templates/wagtailadmin/page_privacy/ancestor_privacy.html +0 -3
- wagtail/admin/templates/wagtailadmin/pages/usage_results.html +0 -6
- wagtail/admin/templates/wagtailadmin/shared/workflow_history/index.html +0 -17
- wagtail/admin/templates/wagtailadmin/shared/workflow_history/results.html +0 -17
- wagtail/admin/templates/wagtailadmin/workflows/usage.html +0 -44
- {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/LICENSE +0 -0
- {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/WHEEL +0 -0
- {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/entry_points.txt +0 -0
- {wagtail-6.2.2.dist-info → wagtail-6.3rc2.dist-info}/top_level.txt +0 -0
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
# Translators:
|
|
6
6
|
# Philip Crisp, 2022
|
|
7
7
|
# Philip Crisp, 2022
|
|
8
|
+
# Philip Lindsay-Crisp, 2024
|
|
8
9
|
msgid ""
|
|
9
10
|
msgstr ""
|
|
10
11
|
"Project-Id-Version: Wagtail\n"
|
|
11
12
|
"Report-Msgid-Bugs-To: \n"
|
|
12
13
|
"POT-Creation-Date: 2024-08-07 10:06+0100\n"
|
|
13
14
|
"PO-Revision-Date: 2015-08-26 14:04+0000\n"
|
|
14
|
-
"Last-Translator: Philip Crisp,
|
|
15
|
+
"Last-Translator: Philip Lindsay-Crisp, 2024\n"
|
|
15
16
|
"Language-Team: Welsh (http://app.transifex.com/torchbox/wagtail/language/"
|
|
16
17
|
"cy/)\n"
|
|
17
18
|
"MIME-Version: 1.0\n"
|
|
@@ -38,15 +39,38 @@ msgstr ""
|
|
|
38
39
|
msgid "Please specify at least one recommendation for this search term."
|
|
39
40
|
msgstr "Nodwch o leiaf un argymhelliad ar gyfer y term chwilio hwn."
|
|
40
41
|
|
|
42
|
+
msgid "You must enter an external link text if you enter an external link URL."
|
|
43
|
+
msgstr ""
|
|
44
|
+
"Rhaid i chi nodi testun cyswllt allanol os ydych chi'n nodi URL cyswllt "
|
|
45
|
+
"allanol."
|
|
46
|
+
|
|
47
|
+
msgid "You must recommend a page OR an external link."
|
|
48
|
+
msgstr "Rhaid i chi argymell tudalen NEU ddolen allanol."
|
|
49
|
+
|
|
50
|
+
msgid "Please only select a page OR enter an external link."
|
|
51
|
+
msgstr "Dewiswch dudalen yn unig NEU rhowch linc allanol."
|
|
52
|
+
|
|
41
53
|
msgid "Query Daily Hits"
|
|
42
54
|
msgstr "Ymholiad Trawiadau Dyddiol"
|
|
43
55
|
|
|
44
56
|
msgid "page"
|
|
45
57
|
msgstr "tudalen"
|
|
46
58
|
|
|
59
|
+
msgid "Choose an internal page for this promotion"
|
|
60
|
+
msgstr "Dewisiwch tudalen mewnol i'r hyrwyddiad hwn"
|
|
61
|
+
|
|
62
|
+
msgid "External link URL"
|
|
63
|
+
msgstr "Link URL allanol"
|
|
64
|
+
|
|
65
|
+
msgid "Alternatively, use an external link for this promotion"
|
|
66
|
+
msgstr "Fel arall, defnyddiwch linc allanol ar gyfer yr hyrwyddiad hwn"
|
|
67
|
+
|
|
47
68
|
msgid "description"
|
|
48
69
|
msgstr "disgrifiad"
|
|
49
70
|
|
|
71
|
+
msgid "Applies to internal page or external link"
|
|
72
|
+
msgstr "Yn berthnasol i dudalen fewnol neu linc allanol"
|
|
73
|
+
|
|
50
74
|
msgid "search promotion"
|
|
51
75
|
msgstr "hyrwyddo chwilio"
|
|
52
76
|
|
|
@@ -56,6 +80,29 @@ msgstr "Ychwanegwch hyrwyddo chwilio"
|
|
|
56
80
|
msgid "Add search pick"
|
|
57
81
|
msgstr "Ychwanegu dewis chwilio"
|
|
58
82
|
|
|
83
|
+
msgid ""
|
|
84
|
+
"<p>Promoted search results are a means of recommending specific pages or "
|
|
85
|
+
"external links that might not organically come high up in search results. E."
|
|
86
|
+
"g recommending your primary donation page to a user searching with the less "
|
|
87
|
+
"common term \"<em>giving</em>\".</p>"
|
|
88
|
+
msgstr ""
|
|
89
|
+
"<p>Mae canlyniadau chwilio a hyrwyddir yn fodd o argymell tudalennau penodol "
|
|
90
|
+
"neu ddolenni allanol na fyddant efallai'n dod yn uchel yn organig mewn "
|
|
91
|
+
"canlyniadau chwilio. E.e. argymell eich tudalen rhoddion cynradd i "
|
|
92
|
+
"ddefnyddiwr sy'n chwilio gyda'r term llai cyffredin \"<em>rhoi</em>\".</p>"
|
|
93
|
+
|
|
94
|
+
msgid ""
|
|
95
|
+
"<p>The \"Search term(s)/phrase\" field below must contain the full and exact "
|
|
96
|
+
"search for which you wish to provide recommended results, <em>including</em> "
|
|
97
|
+
"any misspellings/user error. To help, you can choose from search terms that "
|
|
98
|
+
"have been popular with users of your site.</p>"
|
|
99
|
+
msgstr ""
|
|
100
|
+
"<p>Rhaid i'r maes \"Term(au)/ymadrodd chwilio\" isod gynnwys y chwiliad "
|
|
101
|
+
"llawn ac union yr hoffech ddarparu canlyniadau a argymhellir ar ei gyfer, "
|
|
102
|
+
"<em>yn cynwys</em> unrhyw gamsillafiadau/gwall defnyddiwr. I helpu, gallwch "
|
|
103
|
+
"ddewis o dermau chwilio sydd wedi bod yn boblogaidd gyda defnyddwyr eich "
|
|
104
|
+
"gwefan.</p>"
|
|
105
|
+
|
|
59
106
|
msgid "Save"
|
|
60
107
|
msgstr "Cadw"
|
|
61
108
|
|
|
@@ -88,9 +135,15 @@ msgstr "Symyd i fyny"
|
|
|
88
135
|
msgid "Move down"
|
|
89
136
|
msgstr "Symyd i lawr"
|
|
90
137
|
|
|
138
|
+
msgid "Recommended search result"
|
|
139
|
+
msgstr "Canlyniad chwilio a argymhellir"
|
|
140
|
+
|
|
91
141
|
msgid "Promoted search results"
|
|
92
142
|
msgstr "Canlyniad chwilio wedi'i hyrwyddo"
|
|
93
143
|
|
|
144
|
+
msgid "Add a recommended result"
|
|
145
|
+
msgstr "Ychwanegu canlyniad a argymhellir"
|
|
146
|
+
|
|
94
147
|
#, python-format
|
|
95
148
|
msgid "Sorry, no promoted results match \"<em>%(query_string)s</em>\""
|
|
96
149
|
msgstr ""
|
|
@@ -105,6 +158,9 @@ msgstr ""
|
|
|
105
158
|
"Nid oes unrhyw ganlyniadau wedi'u hyrwyddo wedi'u creu. Pam ddim <a "
|
|
106
159
|
"href=\"%(wagtailsearchpromotions_add_url)s\">ychwanegu un</a>?"
|
|
107
160
|
|
|
161
|
+
msgid "No promoted results have been created."
|
|
162
|
+
msgstr "Nid oes unrhyw ganlyniadau wedi'u hyrwyddo wedi'u creu."
|
|
163
|
+
|
|
108
164
|
msgid "Popular search terms"
|
|
109
165
|
msgstr "Termau chwilio poblogaidd"
|
|
110
166
|
|
|
@@ -123,6 +179,9 @@ msgstr "Dim chanfuwyd canlyniadau"
|
|
|
123
179
|
msgid "Choose from popular search terms"
|
|
124
180
|
msgstr "Dewiswch o dermau chwilio poblogaidd"
|
|
125
181
|
|
|
182
|
+
msgid "External link"
|
|
183
|
+
msgstr "Linc allanol"
|
|
184
|
+
|
|
126
185
|
msgid "None"
|
|
127
186
|
msgstr "Ddim"
|
|
128
187
|
|
|
@@ -8,7 +8,7 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: PACKAGE VERSION\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2024-
|
|
11
|
+
"POT-Creation-Date: 2024-10-21 17:53+0100\n"
|
|
12
12
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
@@ -104,18 +104,12 @@ msgid ""
|
|
|
104
104
|
"have been popular with users of your site.</p>"
|
|
105
105
|
msgstr ""
|
|
106
106
|
|
|
107
|
-
#: templates/wagtailsearchpromotions/add.html:29
|
|
108
|
-
#: templates/wagtailsearchpromotions/edit.html:19
|
|
109
|
-
msgid "Save"
|
|
110
|
-
msgstr ""
|
|
111
|
-
|
|
112
107
|
#: templates/wagtailsearchpromotions/confirm_delete.html:3
|
|
113
108
|
#, python-format
|
|
114
109
|
msgid "Delete %(query)s"
|
|
115
110
|
msgstr ""
|
|
116
111
|
|
|
117
112
|
#: templates/wagtailsearchpromotions/confirm_delete.html:5
|
|
118
|
-
#: templates/wagtailsearchpromotions/edit.html:20
|
|
119
113
|
#: templates/wagtailsearchpromotions/includes/searchpromotion_form.html:10
|
|
120
114
|
msgid "Delete"
|
|
121
115
|
msgstr ""
|
|
@@ -151,7 +145,7 @@ msgid "Recommended search result"
|
|
|
151
145
|
msgstr ""
|
|
152
146
|
|
|
153
147
|
#: templates/wagtailsearchpromotions/includes/searchpromotions_formset.html:4
|
|
154
|
-
#: views.py:
|
|
148
|
+
#: views.py:81 wagtail_hooks.py:36
|
|
155
149
|
msgid "Promoted search results"
|
|
156
150
|
msgstr ""
|
|
157
151
|
|
|
@@ -190,7 +184,7 @@ msgid "Terms"
|
|
|
190
184
|
msgstr ""
|
|
191
185
|
|
|
192
186
|
#: templates/wagtailsearchpromotions/queries/chooser/results.html:10
|
|
193
|
-
#: views.py:
|
|
187
|
+
#: views.py:58
|
|
194
188
|
msgid "Views (past week)"
|
|
195
189
|
msgstr ""
|
|
196
190
|
|
|
@@ -214,40 +208,40 @@ msgstr ""
|
|
|
214
208
|
msgid "Search Terms"
|
|
215
209
|
msgstr ""
|
|
216
210
|
|
|
217
|
-
#: views.py:
|
|
211
|
+
#: views.py:42
|
|
218
212
|
msgid "Add new promoted result"
|
|
219
213
|
msgstr ""
|
|
220
214
|
|
|
221
|
-
#: views.py:
|
|
215
|
+
#: views.py:46
|
|
222
216
|
msgid "Search term(s)"
|
|
223
217
|
msgstr ""
|
|
224
218
|
|
|
225
|
-
#: views.py:
|
|
219
|
+
#: views.py:53
|
|
226
220
|
msgid "Promoted results"
|
|
227
221
|
msgstr ""
|
|
228
222
|
|
|
229
|
-
#: views.py:
|
|
223
|
+
#: views.py:144
|
|
230
224
|
#, python-format
|
|
231
225
|
msgid "Editor's picks for '%(query)s' created."
|
|
232
226
|
msgstr ""
|
|
233
227
|
|
|
234
|
-
#: views.py:
|
|
228
|
+
#: views.py:148 views.py:212
|
|
235
229
|
msgid "Edit"
|
|
236
230
|
msgstr ""
|
|
237
231
|
|
|
238
|
-
#: views.py:
|
|
232
|
+
#: views.py:166
|
|
239
233
|
msgid "Recommendations have not been created due to errors"
|
|
240
234
|
msgstr ""
|
|
241
235
|
|
|
242
|
-
#: views.py:
|
|
236
|
+
#: views.py:208
|
|
243
237
|
#, python-format
|
|
244
238
|
msgid "Editor's picks for '%(query)s' updated."
|
|
245
239
|
msgstr ""
|
|
246
240
|
|
|
247
|
-
#: views.py:
|
|
241
|
+
#: views.py:228
|
|
248
242
|
msgid "Recommendations have not been saved due to errors"
|
|
249
243
|
msgstr ""
|
|
250
244
|
|
|
251
|
-
#: views.py:
|
|
245
|
+
#: views.py:267
|
|
252
246
|
msgid "Editor's picks deleted."
|
|
253
247
|
msgstr ""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% extends "wagtailadmin/
|
|
1
|
+
{% extends "wagtailadmin/generic/form.html" %}
|
|
2
2
|
{% load i18n wagtailadmin_tags %}
|
|
3
3
|
{% block titletag %}{% trans "Add search promotion" %}{% endblock %}
|
|
4
4
|
{% block content %}
|
|
@@ -26,21 +26,18 @@
|
|
|
26
26
|
<li>
|
|
27
27
|
{% include "wagtailsearchpromotions/includes/searchpromotions_formset.html" with formset=searchpicks_formset only %}
|
|
28
28
|
</li>
|
|
29
|
-
<li><input type="submit" value="{% trans 'Save' %}" class="button" /></li>
|
|
30
29
|
</ul>
|
|
30
|
+
|
|
31
|
+
{% block footer %}
|
|
32
|
+
{{ block.super }}
|
|
33
|
+
{% endblock %}
|
|
31
34
|
</form>
|
|
32
35
|
</div>
|
|
33
36
|
{% endblock %}
|
|
34
37
|
|
|
35
|
-
{% block extra_css %}
|
|
36
|
-
{{ block.super }}
|
|
37
|
-
{{ form_media.css }}
|
|
38
|
-
{% endblock %}
|
|
39
38
|
{% block extra_js %}
|
|
40
39
|
{{ block.super }}
|
|
41
|
-
{% include "wagtailadmin/pages/_editor_js.html" %}
|
|
42
40
|
<script src="{% versioned_static 'wagtailsearchpromotions/js/query-chooser-modal.js' %}"></script>
|
|
43
|
-
{{ form_media.js }}
|
|
44
41
|
|
|
45
42
|
<script type="text/javascript">
|
|
46
43
|
{% include "wagtailsearchpromotions/includes/searchpromotions_formset.js" with formset=searchpicks_formset only %}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% extends "wagtailadmin/
|
|
1
|
+
{% extends "wagtailadmin/generic/form.html" %}
|
|
2
2
|
{% load i18n wagtailadmin_tags %}
|
|
3
3
|
{% block titletag %}{% blocktrans trimmed with query=query.query_string %}Editing {{ query }}{% endblocktrans %}{% endblock %}
|
|
4
4
|
{% block content %}
|
|
@@ -15,23 +15,28 @@
|
|
|
15
15
|
<li>
|
|
16
16
|
{% include "wagtailsearchpromotions/includes/searchpromotions_formset.html" with formset=searchpicks_formset only %}
|
|
17
17
|
</li>
|
|
18
|
-
<li>
|
|
19
|
-
<input type="submit" value="{% trans 'Save' %}" class="button" />
|
|
20
|
-
<a href="{% url 'wagtailsearchpromotions:delete' query.id %}" class="button no">{% trans "Delete" %}</a>
|
|
21
|
-
</li>
|
|
22
18
|
</ul>
|
|
19
|
+
|
|
20
|
+
{% block footer %}
|
|
21
|
+
{{ block.super }}
|
|
22
|
+
{% endblock %}
|
|
23
23
|
</form>
|
|
24
24
|
{% endblock %}
|
|
25
25
|
|
|
26
|
-
{% block
|
|
27
|
-
{
|
|
28
|
-
|
|
26
|
+
{% block extra_actions %}
|
|
27
|
+
{% comment %}
|
|
28
|
+
The view hasn't extended from generic EditView, so we cannot use the new
|
|
29
|
+
header buttons in the breadcrumbs for the Delete button. Instead, we'll
|
|
30
|
+
add a Delete button to the footer actions.
|
|
31
|
+
{% endcomment %}
|
|
32
|
+
{% if can_delete %}
|
|
33
|
+
<a href="{{ delete_url }}" class="button">{{ delete_item_label }}</a>
|
|
34
|
+
{% endif %}
|
|
29
35
|
{% endblock %}
|
|
36
|
+
|
|
30
37
|
{% block extra_js %}
|
|
31
38
|
{{ block.super }}
|
|
32
|
-
{% include "wagtailadmin/pages/_editor_js.html" %}
|
|
33
39
|
<script src="{% versioned_static 'wagtailsearchpromotions/js/query-chooser-modal.js' %}"></script>
|
|
34
|
-
{{ form_media.js }}
|
|
35
40
|
|
|
36
41
|
<script type="text/javascript">
|
|
37
42
|
{% include "wagtailsearchpromotions/includes/searchpromotions_formset.js" with formset=searchpicks_formset only %}
|
|
@@ -241,7 +241,11 @@ class TestSearchPromotionsIndexView(WagtailTestUtils, TestCase):
|
|
|
241
241
|
)
|
|
242
242
|
|
|
243
243
|
# Check response
|
|
244
|
-
self.assertEqual(response.status_code,
|
|
244
|
+
self.assertEqual(response.status_code, 200)
|
|
245
|
+
self.assertTemplateUsed(response, "wagtailsearchpromotions/index.html")
|
|
246
|
+
|
|
247
|
+
# Check that we got page one
|
|
248
|
+
self.assertEqual(response.context["page_obj"].number, 1)
|
|
245
249
|
|
|
246
250
|
def test_pagination_out_of_range(self):
|
|
247
251
|
self.make_search_picks()
|
|
@@ -251,7 +255,14 @@ class TestSearchPromotionsIndexView(WagtailTestUtils, TestCase):
|
|
|
251
255
|
)
|
|
252
256
|
|
|
253
257
|
# Check response
|
|
254
|
-
self.assertEqual(response.status_code,
|
|
258
|
+
self.assertEqual(response.status_code, 200)
|
|
259
|
+
self.assertTemplateUsed(response, "wagtailsearchpromotions/index.html")
|
|
260
|
+
|
|
261
|
+
# Check that we got the last page
|
|
262
|
+
self.assertEqual(
|
|
263
|
+
response.context["page_obj"].number,
|
|
264
|
+
response.context["paginator"].num_pages,
|
|
265
|
+
)
|
|
255
266
|
|
|
256
267
|
def test_num_queries(self):
|
|
257
268
|
url = reverse("wagtailsearchpromotions:index")
|
|
@@ -36,7 +36,6 @@ class IndexView(generic.IndexView):
|
|
|
36
36
|
permission_policy = ModelPermissionPolicy(SearchPromotion)
|
|
37
37
|
index_url_name = "wagtailsearchpromotions:index"
|
|
38
38
|
index_results_url_name = "wagtailsearchpromotions:index_results"
|
|
39
|
-
_show_breadcrumbs = True
|
|
40
39
|
search_fields = ["query_string"]
|
|
41
40
|
default_ordering = "query_string"
|
|
42
41
|
add_url_name = "wagtailsearchpromotions:add"
|
|
@@ -178,7 +177,11 @@ def add(request):
|
|
|
178
177
|
{
|
|
179
178
|
"query_form": query_form,
|
|
180
179
|
"searchpicks_formset": searchpicks_formset,
|
|
181
|
-
"
|
|
180
|
+
"media": query_form.media + searchpicks_formset.media,
|
|
181
|
+
# Remove these when this view is refactored to a generic.CreateView subclass.
|
|
182
|
+
# Avoid defining new translatable strings.
|
|
183
|
+
"submit_button_label": generic.CreateView.submit_button_label,
|
|
184
|
+
"submit_button_active_label": generic.CreateView.submit_button_active_label,
|
|
182
185
|
},
|
|
183
186
|
)
|
|
184
187
|
|
|
@@ -237,7 +240,16 @@ def edit(request, query_id):
|
|
|
237
240
|
"query_form": query_form,
|
|
238
241
|
"searchpicks_formset": searchpicks_formset,
|
|
239
242
|
"query": query,
|
|
240
|
-
"
|
|
243
|
+
"media": query_form.media + searchpicks_formset.media,
|
|
244
|
+
# Remove these when this view is refactored to a generic.CreateView subclass.
|
|
245
|
+
# Avoid defining new translatable strings.
|
|
246
|
+
"submit_button_label": generic.EditView.submit_button_label,
|
|
247
|
+
"submit_button_active_label": generic.EditView.submit_button_active_label,
|
|
248
|
+
"can_delete": request.user.has_perm(
|
|
249
|
+
"wagtailsearchpromotions.delete_searchpromotion"
|
|
250
|
+
),
|
|
251
|
+
"delete_url": reverse("wagtailsearchpromotions:delete", args=(query.id,)),
|
|
252
|
+
"delete_item_label": generic.EditView.delete_item_label,
|
|
241
253
|
},
|
|
242
254
|
)
|
|
243
255
|
|
|
Binary file
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
# Translators:
|
|
6
6
|
# Adam Hughes <adamhughes31@gmail.com>, 2017,2020
|
|
7
7
|
# Matt Westcott <matthew@torchbox.com>, 2017
|
|
8
|
+
# Philip Lindsay-Crisp, 2024
|
|
8
9
|
msgid ""
|
|
9
10
|
msgstr ""
|
|
10
11
|
"Project-Id-Version: Wagtail\n"
|
|
11
12
|
"Report-Msgid-Bugs-To: \n"
|
|
12
13
|
"POT-Creation-Date: 2024-08-07 10:06+0100\n"
|
|
13
14
|
"PO-Revision-Date: 2016-03-01 19:20+0000\n"
|
|
14
|
-
"Last-Translator:
|
|
15
|
+
"Last-Translator: Philip Lindsay-Crisp, 2024\n"
|
|
15
16
|
"Language-Team: Welsh (http://app.transifex.com/torchbox/wagtail/language/"
|
|
16
17
|
"cy/)\n"
|
|
17
18
|
"MIME-Version: 1.0\n"
|
|
@@ -24,6 +25,10 @@ msgstr ""
|
|
|
24
25
|
msgid "default"
|
|
25
26
|
msgstr "diofyn"
|
|
26
27
|
|
|
28
|
+
#, python-format
|
|
29
|
+
msgid "%(site_setting)s for %(site)s"
|
|
30
|
+
msgstr "%(site_setting)s i %(site)s"
|
|
31
|
+
|
|
27
32
|
msgid "Site"
|
|
28
33
|
msgstr "Safle"
|
|
29
34
|
|
|
@@ -8,7 +8,7 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: PACKAGE VERSION\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2024-
|
|
11
|
+
"POT-Creation-Date: 2024-10-21 17:53+0100\n"
|
|
12
12
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
@@ -27,18 +27,10 @@ msgstr ""
|
|
|
27
27
|
msgid "%(site_setting)s for %(site)s"
|
|
28
28
|
msgstr ""
|
|
29
29
|
|
|
30
|
-
#: templates/wagtailsettings/edit.html:
|
|
30
|
+
#: templates/wagtailsettings/edit.html:8
|
|
31
31
|
msgid "Site"
|
|
32
32
|
msgstr ""
|
|
33
33
|
|
|
34
|
-
#: templates/wagtailsettings/edit.html:31
|
|
35
|
-
msgid "Saving…"
|
|
36
|
-
msgstr ""
|
|
37
|
-
|
|
38
|
-
#: templates/wagtailsettings/edit.html:34
|
|
39
|
-
msgid "Save"
|
|
40
|
-
msgstr ""
|
|
41
|
-
|
|
42
34
|
#: templates/wagtailsettings/index.html:3
|
|
43
35
|
#: templates/wagtailsettings/index.html:7
|
|
44
36
|
msgid "Settings"
|
|
@@ -1,50 +1,17 @@
|
|
|
1
|
-
{% extends "wagtailadmin/generic/
|
|
1
|
+
{% extends "wagtailadmin/generic/edit.html" %}
|
|
2
2
|
{% load i18n wagtailadmin_tags %}
|
|
3
3
|
|
|
4
|
-
{% block
|
|
5
|
-
{%
|
|
6
|
-
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
{% endif %}
|
|
14
|
-
{% endfragment %}
|
|
15
|
-
{% include "wagtailadmin/shared/header.html" with title=page_title icon=header_icon subtitle=page_subtitle merged=1 extra_actions=editing_actions only %}
|
|
16
|
-
|
|
17
|
-
<form action="{{ action_url }}" method="POST" novalidate{% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
|
|
18
|
-
{% csrf_token %}
|
|
19
|
-
|
|
20
|
-
<div class="nice-padding">
|
|
21
|
-
{{ edit_handler.render_form_content }}
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<footer class="footer">
|
|
25
|
-
<div class="actions footer__container w-flex">
|
|
26
|
-
<button
|
|
27
|
-
type="submit"
|
|
28
|
-
class="button button-longrunning w-flex-grow"
|
|
29
|
-
data-controller="w-progress"
|
|
30
|
-
data-action="w-progress#activate"
|
|
31
|
-
data-w-progress-active-value="{% trans 'Saving…' %}"
|
|
32
|
-
>
|
|
33
|
-
{% icon name="spinner" %}
|
|
34
|
-
<em data-w-progress-target="label">{% trans 'Save' %}</em>
|
|
35
|
-
</button>
|
|
36
|
-
</div>
|
|
37
|
-
</footer>
|
|
38
|
-
</form>
|
|
39
|
-
|
|
4
|
+
{% block before_form %}
|
|
5
|
+
{% if site_switcher %}
|
|
6
|
+
<form class="w-mb-8" method="get" id="settings-site-switch" novalidate>
|
|
7
|
+
<label for="{{ site_switcher.site.id_for_label }}">
|
|
8
|
+
{% trans "Site" %}:
|
|
9
|
+
</label>
|
|
10
|
+
{{ site_switcher.site }}
|
|
11
|
+
</form>
|
|
12
|
+
{% endif %}
|
|
40
13
|
{% endblock %}
|
|
41
14
|
|
|
42
|
-
{% block
|
|
43
|
-
{{
|
|
44
|
-
{{ media.css }}
|
|
45
|
-
{% endblock %}
|
|
46
|
-
{% block extra_js %}
|
|
47
|
-
{{ block.super }}
|
|
48
|
-
{% include "wagtailadmin/pages/_editor_js.html" %}
|
|
49
|
-
{{ media.js }}
|
|
15
|
+
{% block form_content %}
|
|
16
|
+
{{ edit_handler.render_form_content }}
|
|
50
17
|
{% endblock %}
|
|
Binary file
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
# Translators:
|
|
7
7
|
# Philip Crisp, 2022
|
|
8
8
|
# Loic Teixeira, 2022
|
|
9
|
+
# Philip Lindsay-Crisp, 2024
|
|
9
10
|
#
|
|
10
11
|
#, fuzzy
|
|
11
12
|
msgid ""
|
|
@@ -14,7 +15,7 @@ msgstr ""
|
|
|
14
15
|
"Report-Msgid-Bugs-To: \n"
|
|
15
16
|
"POT-Creation-Date: 2024-08-07 10:06+0100\n"
|
|
16
17
|
"PO-Revision-Date: 2021-04-21 08:38+0000\n"
|
|
17
|
-
"Last-Translator:
|
|
18
|
+
"Last-Translator: Philip Lindsay-Crisp, 2024\n"
|
|
18
19
|
"Language-Team: Welsh (https://app.transifex.com/torchbox/teams/8009/cy/)\n"
|
|
19
20
|
"MIME-Version: 1.0\n"
|
|
20
21
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
@@ -35,6 +36,14 @@ msgstr "Locales"
|
|
|
35
36
|
msgid "All child pages will be created."
|
|
36
37
|
msgstr "Bydd holl dudalennau plentyn yn cael eu creu."
|
|
37
38
|
|
|
39
|
+
#, python-format
|
|
40
|
+
msgid "Include subtree (%(descendant_count)s page)"
|
|
41
|
+
msgid_plural "Include subtree (%(descendant_count)s pages)"
|
|
42
|
+
msgstr[0] "Cynnwys is-goeden (%(descendant_count)s tudalen)"
|
|
43
|
+
msgstr[1] "Cynnwys is-goeden (%(descendant_count)s tudalennau)"
|
|
44
|
+
msgstr[2] "Cynnwys is-goeden (%(descendant_count)s tudalennau)"
|
|
45
|
+
msgstr[3] "Cynnwys is-goeden (%(descendant_count)s tudalennau)"
|
|
46
|
+
|
|
38
47
|
msgid "A locale is disabled because a parent page is not translated."
|
|
39
48
|
msgid_plural ""
|
|
40
49
|
"Some locales are disabled because some parent pages are not translated."
|
|
@@ -58,6 +67,9 @@ msgstr[1] "Cyfieithwch y tudalennau rhiant."
|
|
|
58
67
|
msgstr[2] "Cyfieithwch y tudalennau rhiant."
|
|
59
68
|
msgstr[3] "Cyfieithwch y tudalennau rhiant."
|
|
60
69
|
|
|
70
|
+
msgid "Can submit translations"
|
|
71
|
+
msgstr "Yn gallu cyflwyno cyfieithiadau"
|
|
72
|
+
|
|
61
73
|
msgid "Submit"
|
|
62
74
|
msgstr "Cyflwyno"
|
|
63
75
|
|
|
Binary file
|
|
@@ -50,6 +50,9 @@ msgid_plural "Translate the parent pages."
|
|
|
50
50
|
msgstr[0] "ބެލެނިވެރި ޞަފްޙާ ތަރުޖަމާ ކުރޭ"
|
|
51
51
|
msgstr[1] "ބެލެނިވެރި ޞަފްޙާތައް ތަރުޖަމާ ކުރޭ"
|
|
52
52
|
|
|
53
|
+
msgid "Can submit translations"
|
|
54
|
+
msgstr "ތަރުޖަމާތައް ހުށަހެޅޭނެ"
|
|
55
|
+
|
|
53
56
|
msgid "Submit"
|
|
54
57
|
msgstr "ހުށައަޅާ"
|
|
55
58
|
|
|
@@ -8,7 +8,7 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: PACKAGE VERSION\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2024-
|
|
11
|
+
"POT-Creation-Date: 2024-10-21 17:53+0100\n"
|
|
12
12
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
@@ -62,7 +62,7 @@ msgstr ""
|
|
|
62
62
|
msgid "Submit"
|
|
63
63
|
msgstr ""
|
|
64
64
|
|
|
65
|
-
#: views.py:22 wagtail_hooks.py:
|
|
65
|
+
#: views.py:22 wagtail_hooks.py:67 wagtail_hooks.py:85 wagtail_hooks.py:116
|
|
66
66
|
msgid "Translate"
|
|
67
67
|
msgstr ""
|
|
68
68
|
|
|
@@ -91,11 +91,11 @@ msgstr ""
|
|
|
91
91
|
msgid "Successfully created %(locales)s for %(model_name)s '%(object)s'"
|
|
92
92
|
msgstr ""
|
|
93
93
|
|
|
94
|
-
#: wagtail_hooks.py:
|
|
94
|
+
#: wagtail_hooks.py:89
|
|
95
95
|
msgid "Translate this page"
|
|
96
96
|
msgstr ""
|
|
97
97
|
|
|
98
|
-
#: wagtail_hooks.py:
|
|
98
|
+
#: wagtail_hooks.py:119
|
|
99
99
|
#, python-format
|
|
100
100
|
msgid "Translate '%(title)s'"
|
|
101
101
|
msgstr ""
|
|
Binary file
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# Translators:
|
|
7
7
|
# andrej55 <andrej.marsetic@gmail.com>, 2022
|
|
8
8
|
# Loic Teixeira, 2022
|
|
9
|
-
# Andrej Marsetič,
|
|
9
|
+
# Andrej Marsetič, 2024
|
|
10
10
|
#
|
|
11
11
|
#, fuzzy
|
|
12
12
|
msgid ""
|
|
@@ -15,7 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Report-Msgid-Bugs-To: \n"
|
|
16
16
|
"POT-Creation-Date: 2024-08-07 10:06+0100\n"
|
|
17
17
|
"PO-Revision-Date: 2021-04-21 08:38+0000\n"
|
|
18
|
-
"Last-Translator: Andrej Marsetič,
|
|
18
|
+
"Last-Translator: Andrej Marsetič, 2024\n"
|
|
19
19
|
"Language-Team: Slovenian (https://app.transifex.com/torchbox/teams/8009/"
|
|
20
20
|
"sl/)\n"
|
|
21
21
|
"MIME-Version: 1.0\n"
|
|
@@ -64,6 +64,9 @@ msgstr[1] "Prevedite nadrejeni strani."
|
|
|
64
64
|
msgstr[2] "Prevedite nadrejene strani."
|
|
65
65
|
msgstr[3] "Prevedite nadrejene strani."
|
|
66
66
|
|
|
67
|
+
msgid "Can submit translations"
|
|
68
|
+
msgstr "Lahko predloži prevode"
|
|
69
|
+
|
|
67
70
|
msgid "Submit"
|
|
68
71
|
msgstr "Pošlji"
|
|
69
72
|
|