decidim-core 0.28.1 → 0.29.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/cells/decidim/activities_cell.rb +0 -1
- data/app/cells/decidim/activity_cell.rb +5 -7
- data/app/cells/decidim/address_cell.rb +3 -5
- data/app/cells/decidim/amendable/amend_button_card_cell.rb +0 -2
- data/app/cells/decidim/amendable/amendments_cell.rb +0 -2
- data/app/cells/decidim/amendable/announcement_cell.rb +10 -14
- data/app/cells/decidim/amendable/emendation_actions_cell.rb +0 -2
- data/app/cells/decidim/amendable/promote_button_card_cell.rb +0 -2
- data/app/cells/decidim/amendable/wizard_step_form_cell.rb +6 -19
- data/app/cells/decidim/announcement/show.erb +3 -3
- data/app/cells/decidim/announcement_cell.rb +6 -2
- data/app/cells/decidim/attachments_file_tab/show.erb +3 -0
- data/app/cells/decidim/attachments_file_tab_cell.rb +11 -0
- data/app/cells/decidim/attachments_link_tab/show.erb +12 -0
- data/app/cells/decidim/attachments_link_tab_cell.rb +21 -0
- data/app/cells/decidim/author/flag.erb +2 -2
- data/app/cells/decidim/author/show.erb +5 -5
- data/app/cells/decidim/author_cell.rb +0 -2
- data/app/cells/decidim/authorization_modal_cell.rb +0 -3
- data/app/cells/decidim/badge_cell.rb +0 -4
- data/app/cells/decidim/badges_cell.rb +0 -2
- data/app/cells/decidim/button_cell.rb +0 -3
- data/app/cells/decidim/card/show.erb +1 -1
- data/app/cells/decidim/card_cell.rb +1 -5
- data/app/cells/decidim/card_g_cell.rb +2 -2
- data/app/cells/decidim/card_l/space.erb +1 -1
- data/app/cells/decidim/card_l_cell.rb +1 -3
- data/app/cells/decidim/card_metadata/show.erb +2 -2
- data/app/cells/decidim/card_metadata_cell.rb +1 -5
- data/app/cells/decidim/card_s_cell.rb +1 -4
- data/app/cells/decidim/coauthorships_cell.rb +0 -2
- data/app/cells/decidim/comments_button_cell.rb +0 -2
- data/app/cells/decidim/content_blocks/footer_sub_hero/show.erb +1 -1
- data/app/cells/decidim/content_blocks/footer_sub_hero_cell.rb +0 -3
- data/app/cells/decidim/content_blocks/hero/show.erb +1 -1
- data/app/cells/decidim/content_blocks/hero_cell.rb +0 -1
- data/app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb +0 -2
- data/app/cells/decidim/content_blocks/how_to_participate/show.erb +1 -1
- data/app/cells/decidim/content_blocks/how_to_participate_cell.rb +0 -1
- data/app/cells/decidim/content_blocks/participatory_space_documents/content.erb +1 -1
- data/app/cells/decidim/content_blocks/participatory_space_documents_cell.rb +17 -1
- data/app/cells/decidim/content_blocks/participatory_space_hero_cell.rb +0 -2
- data/app/cells/decidim/content_blocks/participatory_space_last_activity_cell.rb +1 -3
- data/app/cells/decidim/content_blocks/stats/show.erb +1 -1
- data/app/cells/decidim/content_blocks/sub_hero_cell.rb +0 -3
- data/app/cells/decidim/data_consent/category.erb +1 -1
- data/app/cells/decidim/date_range/show.erb +10 -10
- data/app/cells/decidim/date_range_cell.rb +0 -2
- data/app/cells/decidim/diff_cell.rb +0 -1
- data/app/cells/decidim/documents_panel/show.erb +4 -0
- data/app/cells/decidim/documents_panel_cell.rb +9 -1
- data/app/cells/decidim/endorsement_buttons_cell.rb +5 -13
- data/app/cells/decidim/flag_modal/flag_user.erb +3 -3
- data/app/cells/decidim/followers_cell.rb +0 -1
- data/app/cells/decidim/following_cell.rb +0 -1
- data/app/cells/decidim/footer_topics/show.erb +8 -0
- data/app/cells/decidim/footer_topics_cell.rb +39 -0
- data/app/cells/decidim/groups_cell.rb +0 -3
- data/app/cells/decidim/linked_resources_for_cell.rb +0 -3
- data/app/cells/decidim/members_cell.rb +0 -1
- data/app/cells/decidim/nav_links/show.erb +2 -2
- data/app/cells/decidim/navbar_admin_link_cell.rb +0 -2
- data/app/cells/decidim/newsletter_templates/base_cell.rb +0 -1
- data/app/cells/decidim/newsletter_templates/basic_only_text/show.erb +2 -2
- data/app/cells/decidim/newsletter_templates/image_text_cta/show.erb +2 -2
- data/app/cells/decidim/notification/moderated.erb +12 -0
- data/app/cells/decidim/notification/show.erb +5 -0
- data/app/cells/decidim/notification_actions/base_cell.rb +13 -0
- data/app/cells/decidim/notification_actions/buttons/show.erb +5 -0
- data/app/cells/decidim/notification_actions/buttons_cell.rb +41 -0
- data/app/cells/decidim/notification_cell.rb +14 -4
- data/app/cells/decidim/notifications_cell.rb +0 -1
- data/app/cells/decidim/pad_iframe/show.erb +2 -2
- data/app/cells/decidim/pad_iframe_cell.rb +0 -1
- data/app/cells/decidim/participatory_space_dropdown_metadata_cell.rb +1 -2
- data/app/cells/decidim/photo_cell.rb +1 -5
- data/app/cells/decidim/photos_list_cell.rb +0 -2
- data/app/cells/decidim/profile/details.erb +1 -1
- data/app/cells/decidim/profile_cell.rb +0 -2
- data/app/cells/decidim/profile_sidebar/show.erb +20 -20
- data/app/cells/decidim/profile_sidebar_cell.rb +1 -10
- data/app/cells/decidim/progress_bar/show.erb +8 -6
- data/app/cells/decidim/progress_bar_cell.rb +2 -0
- data/app/cells/decidim/public_participation/show.erb +1 -1
- data/app/cells/decidim/report_button/flag_modal.erb +6 -2
- data/app/cells/decidim/resource_types_filter/show.erb +3 -3
- data/app/cells/decidim/resource_types_filter_cell.rb +0 -2
- data/app/cells/decidim/scopes_picker/show.erb +1 -1
- data/app/cells/decidim/scopes_picker_cell.rb +0 -1
- data/app/cells/decidim/search_results_cell.rb +1 -1
- data/app/cells/decidim/statistic/show.erb +2 -2
- data/app/cells/decidim/statistic_cell.rb +0 -2
- data/app/cells/decidim/tab_panels/show.erb +1 -1
- data/app/cells/decidim/tab_panels_cell.rb +12 -2
- data/app/cells/decidim/tags_cell.rb +0 -2
- data/app/cells/decidim/tos_page_cell.rb +0 -3
- data/app/cells/decidim/translation_bar/show.erb +1 -1
- data/app/cells/decidim/translation_bar_cell.rb +0 -2
- data/app/cells/decidim/upload_modal/files.erb +1 -1
- data/app/cells/decidim/upload_modal/modal.erb +3 -4
- data/app/cells/decidim/upload_modal_cell.rb +1 -3
- data/app/cells/decidim/user_conversation/new.erb +1 -1
- data/app/cells/decidim/user_conversation/show.erb +1 -1
- data/app/cells/decidim/user_conversation_cell.rb +0 -1
- data/app/cells/decidim/user_conversations/show.erb +1 -1
- data/app/cells/decidim/user_conversations_cell.rb +0 -1
- data/app/cells/decidim/user_group_pending_invitations_list_cell.rb +0 -1
- data/app/cells/decidim/user_group_pending_requests_list_cell.rb +0 -1
- data/app/cells/decidim/user_timeline/show.erb +1 -1
- data/app/cells/decidim/version_cell.rb +3 -5
- data/app/cells/decidim/versions_list_cell.rb +1 -3
- data/app/cells/decidim/versions_list_item_cell.rb +2 -4
- data/app/cells/decidim/wizard_step_form/wizard_aside.erb +2 -2
- data/app/cells/decidim/wizard_step_form/wizard_header.erb +2 -3
- data/app/cells/decidim/wizard_step_form_cell.rb +0 -8
- data/app/commands/decidim/amendable/create_draft.rb +4 -3
- data/app/commands/decidim/amendable/promote.rb +3 -2
- data/app/commands/decidim/amendable/publish_draft.rb +3 -2
- data/app/commands/decidim/amendable/update_draft.rb +4 -3
- data/app/commands/decidim/amendable/withdraw.rb +1 -1
- data/app/commands/decidim/create_follow.rb +4 -4
- data/app/commands/decidim/create_report.rb +3 -3
- data/app/commands/decidim/create_user_report.rb +5 -5
- data/app/commands/decidim/delete_follow.rb +4 -4
- data/app/commands/decidim/demote_membership.rb +2 -2
- data/app/commands/decidim/destroy_account.rb +21 -19
- data/app/commands/decidim/endorse_resource.rb +1 -1
- data/app/commands/decidim/invite_user_to_group.rb +5 -4
- data/app/commands/decidim/update_account.rb +24 -22
- data/app/commands/decidim/update_notifications_settings.rb +13 -11
- data/app/commands/decidim/update_password.rb +7 -7
- data/app/commands/decidim/update_user_interests.rb +9 -7
- data/app/controllers/concerns/decidim/devise_controllers.rb +2 -0
- data/app/controllers/concerns/decidim/filter_resource.rb +1 -1
- data/app/controllers/concerns/decidim/force_authentication.rb +1 -1
- data/app/controllers/concerns/decidim/needs_rtl_direction.rb +23 -0
- data/app/controllers/concerns/decidim/participatory_space_context.rb +1 -23
- data/app/controllers/concerns/decidim/payload_info.rb +2 -1
- data/app/controllers/concerns/decidim/registers_permissions.rb +4 -4
- data/app/controllers/concerns/decidim/use_organization_time_zone.rb +2 -2
- data/app/controllers/concerns/decidim/withdrawable.rb +1 -1
- data/app/controllers/decidim/account_controller.rb +2 -2
- data/app/controllers/{concerns/decidim → decidim}/amendments_controller.rb +3 -16
- data/app/controllers/decidim/application_controller.rb +1 -0
- data/app/controllers/decidim/components/base_controller.rb +1 -1
- data/app/controllers/decidim/devise/invitations_controller.rb +1 -1
- data/app/controllers/decidim/devise/passwords_controller.rb +2 -2
- data/app/controllers/decidim/endorsements_controller.rb +1 -1
- data/app/controllers/decidim/favicon_controller.rb +1 -1
- data/app/controllers/decidim/follows_controller.rb +2 -2
- data/app/controllers/decidim/gamification/badges_controller.rb +2 -0
- data/app/controllers/decidim/group_invites_controller.rb +36 -9
- data/app/controllers/decidim/links_controller.rb +15 -2
- data/app/controllers/decidim/newsletters_opt_in_controller.rb +1 -1
- data/app/controllers/decidim/notifications_settings_controller.rb +1 -1
- data/app/controllers/decidim/report_users_controller.rb +1 -1
- data/app/controllers/decidim/reports_controller.rb +1 -1
- data/app/controllers/decidim/user_interests_controller.rb +1 -1
- data/app/events/decidim/change_nickname_event.rb +0 -1
- data/app/events/decidim/invited_to_group_event.rb +29 -0
- data/app/events/decidim/welcome_notification_event.rb +2 -4
- data/app/forms/decidim/form.rb +4 -0
- data/app/forms/decidim/omniauth_registration_form.rb +1 -1
- data/app/forms/decidim/upload_validation_form.rb +1 -1
- data/app/helpers/concerns/decidim/flash_helper_extensions.rb +3 -3
- data/app/helpers/decidim/amendments_helper.rb +4 -14
- data/app/helpers/decidim/application_helper.rb +8 -0
- data/app/helpers/decidim/authorization_form_helper.rb +2 -2
- data/app/helpers/decidim/breadcrumb_helper.rb +1 -1
- data/app/helpers/decidim/cells_helper.rb +1 -1
- data/app/helpers/decidim/check_boxes_tree_helper.rb +2 -3
- data/app/helpers/decidim/datalist_select_helper.rb +1 -1
- data/app/helpers/decidim/decidim_form_helper.rb +3 -3
- data/app/helpers/decidim/filters_helper.rb +1 -1
- data/app/helpers/decidim/layout_helper.rb +1 -36
- data/app/helpers/decidim/localized_locales_helper.rb +1 -1
- data/app/helpers/decidim/menu_helper.rb +8 -0
- data/app/helpers/decidim/meta_tags_helper.rb +26 -23
- data/app/helpers/decidim/modal_helper.rb +1 -1
- data/app/helpers/decidim/orders_helper.rb +1 -1
- data/app/helpers/decidim/organization_helper.rb +55 -0
- data/app/helpers/decidim/paginate_helper.rb +1 -1
- data/app/helpers/decidim/resource_helper.rb +0 -7
- data/app/helpers/decidim/scopes_helper.rb +4 -2
- data/app/helpers/decidim/searches_helper.rb +1 -1
- data/app/helpers/decidim/short_link_helper.rb +2 -2
- data/app/helpers/decidim/translations_helper.rb +2 -2
- data/app/helpers/decidim/twitter_search_helper.rb +1 -1
- data/app/helpers/decidim/user_profile_helper.rb +0 -1
- data/app/jobs/decidim/email_notifications_digest_generator_job.rb +2 -2
- data/app/mailers/decidim/application_mailer.rb +44 -6
- data/app/mailers/decidim/block_user_mailer.rb +1 -1
- data/app/mailers/decidim/decidim_devise_mailer.rb +7 -1
- data/app/mailers/decidim/newsletter_mailer.rb +1 -4
- data/app/mailers/decidim/newsletters_opt_in_mailer.rb +2 -2
- data/app/mailers/decidim/notification_mailer.rb +0 -1
- data/app/mailers/decidim/notifications_digest_mailer.rb +0 -1
- data/app/mailers/decidim/reported_mailer.rb +6 -3
- data/app/mailers/decidim/user_report_mailer.rb +1 -1
- data/app/models/decidim/action_log.rb +1 -1
- data/app/models/decidim/area_type.rb +1 -1
- data/app/models/decidim/attachment.rb +26 -2
- data/app/models/decidim/authorization.rb +1 -1
- data/app/models/decidim/authorization_transfer.rb +1 -0
- data/app/models/decidim/component.rb +2 -2
- data/app/models/decidim/content_block.rb +1 -1
- data/app/models/decidim/messaging/message.rb +2 -2
- data/app/models/decidim/newsletter.rb +9 -9
- data/app/models/decidim/notification.rb +2 -2
- data/app/models/decidim/organization.rb +23 -2
- data/app/models/decidim/push_notification_message.rb +1 -1
- data/app/models/decidim/resource_link.rb +1 -1
- data/app/models/decidim/user.rb +2 -2
- data/app/models/decidim/user_group.rb +2 -2
- data/app/packs/src/decidim/a11y.js +60 -0
- data/app/packs/src/decidim/abide_form_validator_fixer.js +44 -0
- data/app/packs/src/decidim/attachments/file_or_link_tabs.js +55 -0
- data/app/packs/src/decidim/attachments/index.js +1 -0
- data/app/packs/src/decidim/back_to_list.js +1 -1
- data/app/packs/src/decidim/check_boxes_tree.js +1 -1
- data/app/packs/src/decidim/data_consent/consent_manager.js +1 -1
- data/app/packs/src/decidim/data_consent/consent_manager.test.js +6 -6
- data/app/packs/src/decidim/data_consent/index.js +1 -1
- data/app/packs/src/decidim/datepicker/datepicker_functions.js +243 -0
- data/app/packs/src/decidim/datepicker/datepicker_listeners.js +78 -0
- data/app/packs/src/decidim/datepicker/form_datepicker.js +91 -0
- data/app/packs/src/decidim/datepicker/generate_datepicker.js +148 -0
- data/app/packs/src/decidim/datepicker/generate_timepicker.js +298 -0
- data/app/packs/src/decidim/datepicker/test/date.test.js +118 -0
- data/app/packs/src/decidim/datepicker/test/time.test.js +227 -0
- data/app/packs/src/decidim/direct_uploads/upload_modal.js +2 -6
- data/app/packs/src/decidim/editor/extensions/indent/index.js +1 -1
- data/app/packs/src/decidim/editor/extensions/video_embed/index.js +4 -4
- data/app/packs/src/decidim/editor/test/extensions/decidim_kit.test.js +0 -15
- data/app/packs/src/decidim/editor/test/extensions/indent.test.js +1 -1
- data/app/packs/src/decidim/editor/test/fixtures/upload_templates.js +1 -1
- data/app/packs/src/decidim/editor/test/helpers.js +1 -14
- data/app/packs/src/decidim/editor/utilities/paste_transform.js +2 -2
- data/app/packs/src/decidim/external_domain_warning.js +2 -2
- data/app/packs/src/decidim/external_domain_warning.test.js +4 -4
- data/app/packs/src/decidim/form_filter.js +4 -4
- data/app/packs/src/decidim/impersonation.js +1 -1
- data/app/packs/src/decidim/index.js +40 -6
- data/app/packs/src/decidim/input_character_counter.js +1 -1
- data/app/packs/src/decidim/input_emoji.js +171 -72
- data/app/packs/src/decidim/input_hashtags.js +1 -1
- data/app/packs/src/decidim/input_mentions.js +1 -1
- data/app/packs/src/decidim/notifications_actions.js +40 -0
- data/app/packs/src/decidim/sticky_header.js +87 -0
- data/app/packs/src/decidim/sw/sw.js +8 -6
- data/app/packs/src/decidim/tooltips.js +1 -1
- data/app/packs/stylesheets/decidim/_accordion.scss +2 -2
- data/app/packs/stylesheets/decidim/_cards.scss +2 -2
- data/app/packs/stylesheets/decidim/_datepicker.scss +193 -0
- data/app/packs/stylesheets/decidim/_dropdown.scss +36 -0
- data/app/packs/stylesheets/decidim/_emoji.scss +36 -0
- data/app/packs/stylesheets/decidim/_filters.scss +4 -2
- data/app/packs/stylesheets/decidim/_flash.scss +2 -2
- data/app/packs/stylesheets/decidim/_footer.scss +1 -3
- data/app/packs/stylesheets/decidim/_forms.scss +9 -1
- data/app/packs/stylesheets/decidim/_header.scss +70 -50
- data/app/packs/stylesheets/decidim/_home.scss +1 -1
- data/app/packs/stylesheets/decidim/_layout.scss +16 -3
- data/app/packs/stylesheets/decidim/_modal.scss +1 -1
- data/app/packs/stylesheets/decidim/_modal_update.scss +2 -4
- data/app/packs/stylesheets/decidim/_notifications.scss +4 -0
- data/app/packs/stylesheets/decidim/_tabs_x.scss +5 -1
- data/app/packs/stylesheets/decidim/application.scss +4 -0
- data/app/packs/stylesheets/decidim/legacy/leaflet.scss +1 -1
- data/app/packs/stylesheets/decidim/vendor/_datepicker_light.scss +228 -0
- data/app/permissions/decidim/default_permissions.rb +2 -2
- data/app/presenters/decidim/admin_log/organization_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/static_page_presenter.rb +1 -1
- data/app/presenters/decidim/authorization_transfer_presenter.rb +1 -1
- data/app/presenters/decidim/component_attachment_collection_presenter.rb +81 -0
- data/app/presenters/decidim/footer_menu_presenter.rb +1 -1
- data/app/presenters/decidim/home_stats_presenter.rb +1 -1
- data/app/presenters/decidim/log/resource_presenter.rb +7 -1
- data/app/presenters/decidim/organization_presenter.rb +1 -1
- data/app/queries/decidim/metric_measure.rb +1 -1
- data/app/queries/decidim/public_activities.rb +1 -1
- data/app/queries/decidim/user_groups/admin_memberships.rb +1 -1
- data/app/queries/decidim/user_groups/member_memberships.rb +1 -1
- data/app/services/decidim/action_logger.rb +3 -3
- data/app/services/decidim/log/diff_changeset_calculator.rb +3 -3
- data/app/services/decidim/notifications_digest_sending_decider.rb +1 -1
- data/app/uploaders/decidim/organization_favicon_uploader.rb +1 -1
- data/app/uploaders/decidim/record_image_uploader.rb +2 -2
- data/app/validators/organization_present_validator.rb +1 -1
- data/app/validators/passthru_validator.rb +1 -1
- data/app/validators/uploader_image_dimensions_validator.rb +2 -2
- data/app/views/decidim/account/show.html.erb +3 -3
- data/app/views/decidim/amendments/_wizard_header.html.erb +1 -2
- data/app/views/decidim/application/_collection.html.erb +3 -1
- data/app/views/decidim/application/_component_documents.html.erb +4 -0
- data/app/views/decidim/application/_document.html.erb +24 -10
- data/app/views/decidim/block_user_mailer/notify.html.erb +2 -2
- data/app/views/decidim/devise/invitations/edit.html.erb +2 -2
- data/app/views/decidim/devise/omniauth_registrations/new.html.erb +1 -1
- data/app/views/decidim/devise/registrations/new.html.erb +1 -1
- data/app/views/decidim/devise/shared/_login_boxes.html.erb +1 -1
- data/app/views/decidim/doorkeeper/authorizations/new.html.erb +1 -1
- data/app/views/decidim/endorsements/_identity.html.erb +1 -1
- data/app/views/decidim/endorsements/update_buttons_and_counters.js.erb +2 -1
- data/app/views/decidim/gamification/badges/index.html.erb +34 -33
- data/app/views/decidim/links/_modal.html.erb +1 -1
- data/app/views/decidim/links/new.html.erb +3 -1
- data/app/views/decidim/manifests/show.json.erb +1 -1
- data/app/views/decidim/messaging/conversations/_add_conversation_users.html.erb +2 -2
- data/app/views/decidim/messaging/conversations/_error_modal.html.erb +5 -5
- data/app/views/decidim/messaging/conversations/create.js.erb +1 -1
- data/app/views/decidim/newsletter_mailer/newsletter.html.erb +1 -1
- data/app/views/decidim/newsletters/show.html.erb +1 -1
- data/app/views/decidim/newsletters_opt_in_mailer/notify.html.erb +2 -2
- data/app/views/decidim/notifications_settings/show.html.erb +6 -6
- data/app/views/decidim/pages/_tabbed.html.erb +2 -2
- data/app/views/decidim/pages/index.html.erb +1 -2
- data/app/views/decidim/reported_mailer/report.html.erb +4 -2
- data/app/views/decidim/scopes/picker.html.erb +5 -5
- data/app/views/decidim/searches/_filters.html.erb +2 -2
- data/app/views/decidim/searches/_resources_filter_block.html.erb +6 -6
- data/app/views/decidim/shared/_extended_navigation_bar.html.erb +8 -8
- data/app/views/decidim/shared/_filters.html.erb +2 -2
- data/app/views/decidim/shared/_login_modal.html.erb +1 -1
- data/app/views/decidim/shared/_orders.html.erb +2 -2
- data/app/views/decidim/shared/filters/_collection.html.erb +5 -3
- data/app/views/decidim/shared/filters/_dropdown_label.html.erb +21 -19
- data/app/views/decidim/user_interests/_areas.html.erb +2 -2
- data/app/views/decidim/user_report_mailer/notify.html.erb +2 -2
- data/app/views/decidim/user_update_mailer/notify.html.erb +1 -1
- data/app/views/decidim/widgets/_data_picker.html.erb +1 -1
- data/app/views/devise/mailer/invitation_instructions.html.erb +1 -1
- data/app/views/devise/mailer/invitation_instructions.text.erb +1 -1
- data/app/views/devise/mailer/invite_admin.html.erb +2 -2
- data/app/views/devise/mailer/invite_admin.text.erb +2 -2
- data/app/views/devise/mailer/invite_collaborator.html.erb +2 -2
- data/app/views/devise/mailer/invite_collaborator.text.erb +2 -2
- data/app/views/devise/mailer/invite_private_user.html.erb +2 -2
- data/app/views/devise/mailer/invite_private_user.text.erb +2 -2
- data/app/views/devise/mailer/organization_admin_invitation_instructions.html.erb +1 -1
- data/app/views/devise/mailer/organization_admin_invitation_instructions.text.erb +1 -1
- data/app/views/layouts/decidim/_application.html.erb +3 -6
- data/app/views/layouts/decidim/_data_consent_warning.html.erb +2 -2
- data/app/views/layouts/decidim/_decidim_javascript.html.erb +1 -1
- data/app/views/layouts/decidim/_head_extra.html.erb +2 -2
- data/app/views/layouts/decidim/_impersonation_warning.html.erb +1 -1
- data/app/views/layouts/decidim/_js_configuration.html.erb +7 -2
- data/app/views/layouts/decidim/_logo.html.erb +2 -2
- data/app/views/layouts/decidim/_logo_mobile.html.erb +11 -0
- data/app/views/layouts/decidim/_mailer_logo.html.erb +2 -2
- data/app/views/layouts/decidim/_meta_tags_config.html.erb +1 -1
- data/app/views/layouts/decidim/_wrapper.html.erb +16 -9
- data/app/views/layouts/decidim/footer/_main.html.erb +2 -3
- data/app/views/layouts/decidim/footer/_main_intro.html.erb +2 -2
- data/app/views/layouts/decidim/footer/_main_legal.html.erb +2 -3
- data/app/views/layouts/decidim/footer/_main_links.html.erb +13 -9
- data/app/views/layouts/decidim/footer/_main_social_media_links.html.erb +8 -8
- data/app/views/layouts/decidim/header/_main.html.erb +9 -22
- data/app/views/layouts/decidim/header/_main_links_desktop.html.erb +7 -6
- data/app/views/layouts/decidim/header/_main_links_mobile_account.html.erb +10 -3
- data/app/views/layouts/decidim/header/_main_links_mobile_item_account.html.erb +24 -0
- data/app/views/layouts/decidim/header/_main_links_mobile_search.html.erb +0 -21
- data/app/views/layouts/decidim/header/_main_menu_mobile.html.erb +12 -0
- data/app/views/layouts/decidim/header/_menu_breadcrumb_desktop.html.erb +1 -1
- data/app/views/layouts/decidim/header/_menu_breadcrumb_items.html.erb +2 -0
- data/app/views/layouts/decidim/header/_menu_breadcrumb_main_dropdown_mobile.html.erb +17 -0
- data/app/views/layouts/decidim/header/_menu_breadcrumb_main_dropdown_top_left.html.erb +1 -1
- data/app/views/layouts/decidim/header/_menu_breadcrumb_mobile_tablet.html.erb +1 -1
- data/app/views/layouts/decidim/header/_menu_form_search_mobile.html.erb +16 -0
- data/app/views/layouts/decidim/header/_mobile_language_choose.html.erb +25 -0
- data/app/views/layouts/decidim/mailer.html.erb +2 -2
- data/app/views/layouts/decidim/shared/_layout_center.html.erb +1 -1
- data/app/views/layouts/decidim/shared/_layout_item.html.erb +0 -14
- data/app/views/layouts/decidim/shared/_layout_user_profile.html.erb +2 -2
- data/config/initializers/active_storage.rb +3 -0
- data/config/initializers/devise.rb +1 -1
- data/config/initializers/new_framework_defaults_7_0.rb +145 -0
- data/config/locales/ar.yml +3 -47
- data/config/locales/bg.yml +916 -41
- data/config/locales/ca.yml +67 -54
- data/config/locales/cs.yml +54 -56
- data/config/locales/de.yml +65 -52
- data/config/locales/el.yml +8 -30
- data/config/locales/en.yml +71 -58
- data/config/locales/es-MX.yml +73 -60
- data/config/locales/es-PY.yml +73 -60
- data/config/locales/es.yml +96 -83
- data/config/locales/eu.yml +71 -58
- data/config/locales/fi-plain.yml +69 -56
- data/config/locales/fi.yml +69 -56
- data/config/locales/fr-CA.yml +62 -55
- data/config/locales/fr.yml +57 -50
- data/config/locales/ga-IE.yml +7 -10
- data/config/locales/gl.yml +1 -18
- data/config/locales/hu.yml +37 -58
- data/config/locales/id-ID.yml +0 -14
- data/config/locales/is-IS.yml +0 -10
- data/config/locales/it.yml +7 -26
- data/config/locales/ja.yml +69 -56
- data/config/locales/kaa.yml +5 -0
- data/config/locales/lb.yml +7 -26
- data/config/locales/lt.yml +8 -50
- data/config/locales/lv.yml +8 -22
- data/config/locales/nl.yml +7 -25
- data/config/locales/no.yml +7 -26
- data/config/locales/pl.yml +99 -53
- data/config/locales/pt-BR.yml +4 -52
- data/config/locales/pt.yml +7 -26
- data/config/locales/ro-RO.yml +9 -28
- data/config/locales/ru.yml +8 -15
- data/config/locales/sk.yml +8 -22
- data/config/locales/sl.yml +8 -8
- data/config/locales/sv.yml +8 -34
- data/config/locales/tr-TR.yml +22 -28
- data/config/locales/uk.yml +10 -10
- data/config/locales/zh-CN.yml +0 -23
- data/config/locales/zh-TW.yml +8 -48
- data/config/routes.rb +0 -1
- data/db/migrate/20170128112958_change_user_groups_verified_to_timestamp.rb +1 -1
- data/db/migrate/20240110150230_rename_external_domain_whitelist_to_external_domain_allowlist.rb +7 -0
- data/db/migrate/20240326104215_remove_show_in_footer_in_static_pages.rb +7 -0
- data/db/migrate/20240401192628_change_name_on_decidim_organizations.rb +31 -0
- data/db/seeds/avatars/001.jpg +0 -0
- data/db/seeds/avatars/002.jpg +0 -0
- data/db/seeds/avatars/003.jpg +0 -0
- data/db/seeds/avatars/004.jpg +0 -0
- data/db/seeds/avatars/005.jpg +0 -0
- data/db/seeds/avatars/006.jpg +0 -0
- data/db/seeds/avatars/007.jpg +0 -0
- data/db/seeds/avatars/008.jpg +0 -0
- data/db/seeds/avatars/009.jpg +0 -0
- data/db/seeds/avatars/010.jpg +0 -0
- data/db/seeds/avatars/011.jpg +0 -0
- data/db/seeds/avatars/012.jpg +0 -0
- data/db/seeds/avatars/013.jpg +0 -0
- data/db/seeds/avatars/014.jpg +0 -0
- data/db/seeds/avatars/015.jpg +0 -0
- data/db/seeds/avatars/016.jpg +0 -0
- data/db/seeds/avatars/017.jpg +0 -0
- data/db/seeds/avatars/018.jpg +0 -0
- data/db/seeds/avatars/019.jpg +0 -0
- data/db/seeds/avatars/020.jpg +0 -0
- data/db/seeds/avatars/021.jpg +0 -0
- data/db/seeds/avatars/022.jpg +0 -0
- data/db/seeds/avatars/023.jpg +0 -0
- data/db/seeds/avatars/024.jpg +0 -0
- data/db/seeds/avatars/025.jpg +0 -0
- data/db/seeds/avatars/026.jpg +0 -0
- data/db/seeds/avatars/027.jpg +0 -0
- data/db/seeds/avatars/028.jpg +0 -0
- data/db/seeds/avatars/029.jpg +0 -0
- data/db/seeds/avatars/030.jpg +0 -0
- data/db/seeds/avatars/031.jpg +0 -0
- data/db/seeds/avatars/032.jpg +0 -0
- data/db/seeds/avatars/033.jpg +0 -0
- data/db/seeds/avatars/034.jpg +0 -0
- data/db/seeds/avatars/035.jpg +0 -0
- data/db/seeds/avatars/036.jpg +0 -0
- data/db/seeds/avatars/037.jpg +0 -0
- data/db/seeds/avatars/038.jpg +0 -0
- data/db/seeds/avatars/039.jpg +0 -0
- data/db/seeds/avatars/040.jpg +0 -0
- data/db/seeds/avatars/041.jpg +0 -0
- data/db/seeds/avatars/042.jpg +0 -0
- data/db/seeds/avatars/043.jpg +0 -0
- data/db/seeds/avatars/044.jpg +0 -0
- data/db/seeds/avatars/045.jpg +0 -0
- data/db/seeds/avatars/046.jpg +0 -0
- data/db/seeds/avatars/047.jpg +0 -0
- data/db/seeds/avatars/048.jpg +0 -0
- data/db/seeds/avatars/049.jpg +0 -0
- data/db/seeds/avatars/050.jpg +0 -0
- data/db/seeds/avatars/051.jpg +0 -0
- data/db/seeds/avatars/052.jpg +0 -0
- data/db/seeds/avatars/053.jpg +0 -0
- data/db/seeds/avatars/054.jpg +0 -0
- data/db/seeds/avatars/055.jpg +0 -0
- data/db/seeds/avatars/056.jpg +0 -0
- data/db/seeds/avatars/057.jpg +0 -0
- data/db/seeds/avatars/058.jpg +0 -0
- data/db/seeds/avatars/059.jpg +0 -0
- data/db/seeds/avatars/060.jpg +0 -0
- data/db/seeds/avatars/061.jpg +0 -0
- data/db/seeds/avatars/062.jpg +0 -0
- data/db/seeds/avatars/063.jpg +0 -0
- data/db/seeds/avatars/064.jpg +0 -0
- data/db/seeds/avatars/065.jpg +0 -0
- data/db/seeds/avatars/066.jpg +0 -0
- data/db/seeds/avatars/067.jpg +0 -0
- data/db/seeds/avatars/068.jpg +0 -0
- data/db/seeds/avatars/069.jpg +0 -0
- data/db/seeds/avatars/070.jpg +0 -0
- data/db/seeds/avatars/071.jpg +0 -0
- data/db/seeds/avatars/072.jpg +0 -0
- data/db/seeds/avatars/073.jpg +0 -0
- data/db/seeds/avatars/074.jpg +0 -0
- data/db/seeds/avatars/075.jpg +0 -0
- data/db/seeds/avatars/076.jpg +0 -0
- data/db/seeds/avatars/077.jpg +0 -0
- data/db/seeds/avatars/078.jpg +0 -0
- data/db/seeds/avatars/079.jpg +0 -0
- data/db/seeds/avatars/080.jpg +0 -0
- data/db/seeds/avatars/081.jpg +0 -0
- data/db/seeds/avatars/082.jpg +0 -0
- data/db/seeds/avatars/083.jpg +0 -0
- data/db/seeds/avatars/084.jpg +0 -0
- data/db/seeds/avatars/085.jpg +0 -0
- data/db/seeds/avatars/086.jpg +0 -0
- data/db/seeds/avatars/087.jpg +0 -0
- data/db/seeds/avatars/088.jpg +0 -0
- data/db/seeds/avatars/089.jpg +0 -0
- data/db/seeds/avatars/090.jpg +0 -0
- data/db/seeds/avatars/091.jpg +0 -0
- data/db/seeds/avatars/092.jpg +0 -0
- data/db/seeds/avatars/093.jpg +0 -0
- data/db/seeds/avatars/094.jpg +0 -0
- data/db/seeds/avatars/095.jpg +0 -0
- data/db/seeds/avatars/096.jpg +0 -0
- data/db/seeds/avatars/097.jpg +0 -0
- data/db/seeds/avatars/098.jpg +0 -0
- data/db/seeds/avatars/099.jpg +0 -0
- data/db/seeds/avatars/100.jpg +0 -0
- data/db/seeds/avatars/CREDITS.md +114 -0
- data/db/seeds/avatars/README.md +25 -0
- data/decidim-core.gemspec +6 -5
- data/lib/decidim/acts_as_author.rb +1 -1
- data/lib/decidim/admin_filter.rb +44 -0
- data/lib/decidim/admin_filters_registry.rb +55 -0
- data/lib/decidim/amendable.rb +1 -2
- data/lib/decidim/api/functions/component_finder_base.rb +1 -1
- data/lib/decidim/api/functions/needs_api_filter_and_order.rb +3 -3
- data/lib/decidim/api/functions/participatory_space_finder_base.rb +1 -1
- data/lib/decidim/api/functions/participatory_space_list_base.rb +1 -1
- data/lib/decidim/api/input_filters/user_entity_input_filter.rb +3 -3
- data/lib/decidim/api/interfaces/author_interface.rb +1 -1
- data/lib/decidim/api/types/organization_type.rb +1 -1
- data/lib/decidim/api/types/user_group_type.rb +1 -1
- data/lib/decidim/api/types/user_type.rb +1 -1
- data/lib/decidim/asset_router/pipeline.rb +2 -2
- data/lib/decidim/assets/tailwind/instance.rb +1 -1
- data/lib/decidim/assets/tailwind/tailwind.config.js.erb +8 -3
- data/lib/decidim/attribute_object/model.rb +2 -2
- data/lib/decidim/attribute_object/type_resolver.rb +1 -3
- data/lib/decidim/attribute_object.rb +2 -2
- data/lib/decidim/attributes.rb +0 -4
- data/lib/decidim/authorable.rb +5 -0
- data/lib/decidim/command.rb +2 -2
- data/lib/decidim/commands/create_resource.rb +63 -0
- data/lib/decidim/commands/destroy_resource.rb +74 -0
- data/lib/decidim/commands/hook_error.rb +8 -0
- data/lib/decidim/commands/resource_handler.rb +85 -0
- data/lib/decidim/commands/update_resource.rb +64 -0
- data/lib/decidim/component_manifest.rb +3 -1
- data/lib/decidim/component_validator.rb +1 -1
- data/lib/decidim/content_blocks/has_related_components.rb +1 -1
- data/lib/decidim/content_parsers/resource_parser.rb +2 -2
- data/lib/decidim/content_processor.rb +1 -1
- data/lib/decidim/content_security_policy.rb +1 -1
- data/lib/decidim/core/engine.rb +12 -15
- data/lib/decidim/core/menu.rb +13 -3
- data/lib/decidim/core/seeds.rb +121 -148
- data/lib/decidim/core/test/factories.rb +24 -3
- data/lib/decidim/core/test/shared_examples/acts_as_author_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/amendable/withdraw_amendment_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/announcements_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/assembly_announcements_examples.rb +4 -4
- data/lib/decidim/core/test/shared_examples/comments_examples.rb +157 -81
- data/lib/decidim/core/test/shared_examples/comments_reports_examples.rb +4 -4
- data/lib/decidim/core/test/shared_examples/digest_mail_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/edit_link_shared_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/editor_shared_examples.rb +7 -7
- data/lib/decidim/core/test/shared_examples/fingerprint_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/follows_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/has_attachment_collections.rb +4 -2
- data/lib/decidim/core/test/shared_examples/has_attachments.rb +3 -2
- data/lib/decidim/core/test/shared_examples/has_contextual_help.rb +4 -4
- data/lib/decidim/core/test/shared_examples/has_reference.rb +1 -1
- data/lib/decidim/core/test/shared_examples/logo_email.rb +2 -2
- data/lib/decidim/core/test/shared_examples/manage_component_share_tokens.rb +9 -9
- data/lib/decidim/core/test/shared_examples/map_examples.rb +5 -5
- data/lib/decidim/core/test/shared_examples/paginated_resource_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/participatory_space_dropdown_metadata_cell_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/preview_component_with_share_token_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/process_announcements_examples.rb +4 -4
- data/lib/decidim/core/test/shared_examples/reports_examples.rb +5 -5
- data/lib/decidim/core/test/shared_examples/rich_text_editor_examples.rb +10 -10
- data/lib/decidim/core/test/shared_examples/searchable_participatory_space_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/searchable_results_examples.rb +8 -8
- data/lib/decidim/core/test/shared_examples/share_link_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/simple_event.rb +1 -1
- data/lib/decidim/core/test/shared_examples/space_cell_changes_button_text_cta.rb +3 -3
- data/lib/decidim/core/test/shared_examples/system_endorse_resource_examples.rb +11 -11
- data/lib/decidim/core/test/shared_examples/translated_event_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/with_endorsable_permissions_examples.rb +1 -1
- data/lib/decidim/core/version.rb +1 -1
- data/lib/decidim/core.rb +30 -7
- data/lib/decidim/dependency_resolver.rb +3 -3
- data/lib/decidim/diffy_extension.rb +1 -1
- data/lib/decidim/download_your_data_serializers/download_your_data_user_serializer.rb +2 -1
- data/lib/decidim/engine_router.rb +2 -2
- data/lib/decidim/events/base_event.rb +23 -0
- data/lib/decidim/events/simple_event.rb +1 -0
- data/lib/decidim/exporters/export_manifest.rb +1 -1
- data/lib/decidim/faker/localized.rb +3 -3
- data/lib/decidim/form_builder.rb +4 -4
- data/lib/decidim/hashtag.rb +1 -1
- data/lib/decidim/jsonb_attributes.rb +4 -4
- data/lib/decidim/manifest_messages.rb +2 -2
- data/lib/decidim/organization_settings.rb +15 -7
- data/lib/decidim/paddable.rb +1 -1
- data/lib/decidim/participable.rb +1 -1
- data/lib/decidim/participatory_space_manifest.rb +1 -1
- data/lib/decidim/resourceable.rb +1 -1
- data/lib/decidim/search_resource_fields_mapper.rb +2 -2
- data/lib/decidim/searchable.rb +3 -3
- data/lib/decidim/seeds.rb +62 -0
- data/lib/decidim/stats_registry.rb +2 -2
- data/lib/decidim/translatable_attributes.rb +3 -3
- data/lib/decidim/translatable_resource.rb +1 -1
- data/lib/decidim/view_hooks.rb +1 -1
- data/lib/decidim/view_model.rb +4 -0
- data/lib/decidim/webpacker/esbuild.config.js +14 -0
- data/lib/decidim/webpacker/shakapacker.yml +2 -2
- data/lib/decidim/webpacker/tsconfig.json +11 -0
- data/lib/decidim/webpacker/webpack/custom.js +13 -35
- data/lib/devise/models/decidim_newsletterable.rb +1 -1
- data/lib/tasks/decidim_download_your_data_tasks.rake +2 -2
- data/lib/tasks/decidim_locales_tasks.rake +1 -1
- data/lib/tasks/decidim_mailers_tasks.rake +2 -2
- data/lib/tasks/decidim_metrics_tasks.rake +6 -6
- data/lib/tasks/decidim_procfile.rake +9 -3
- data/lib/tasks/decidim_tasks.rake +5 -4
- data/lib/tasks/decidim_webpacker_tasks.rake +126 -117
- data/lib/tasks/upgrade/decidim_active_storage_migration_tasks.rake +80 -0
- data/lib/tasks/upgrade/decidim_content_blocks_tasks.rake +50 -0
- data/lib/tasks/upgrade/decidim_deduplicate_endorsements.rake +1 -1
- data/lib/tasks/upgrade/decidim_fix_categorization.rake +1 -1
- data/lib/tasks/upgrade/decidim_fix_nickname_uniqueness.rake +1 -1
- data/lib/tasks/upgrade/decidim_fix_short_url_resolver.rake +1 -1
- data/lib/tasks/upgrade/decidim_moderation_tasks.rake +1 -1
- data/lib/tasks/upgrade/decidim_user_moderation.rake +1 -1
- metadata +208 -79
- data/app/cells/decidim/content_blocks/cta/show.erb +0 -12
- data/app/cells/decidim/content_blocks/cta_cell.rb +0 -31
- data/app/cells/decidim/footer_pages/pages.erb +0 -3
- data/app/cells/decidim/footer_pages/topics.erb +0 -12
- data/app/cells/decidim/footer_pages_cell.rb +0 -68
- data/app/packs/src/decidim/vendor/modernizr.js +0 -5
- data/app/queries/decidim/similar_emendations.rb +0 -56
- data/app/uploaders/decidim/cw/application_uploader.rb +0 -77
- data/app/uploaders/decidim/cw/attachment_uploader.rb +0 -56
- data/app/uploaders/decidim/cw/avatar_uploader.rb +0 -24
- data/app/uploaders/decidim/cw/banner_image_uploader.rb +0 -7
- data/app/uploaders/decidim/cw/download_your_data_uploader.rb +0 -15
- data/app/uploaders/decidim/cw/downloader.rb +0 -9
- data/app/uploaders/decidim/cw/hero_image_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/homepage_image_uploader.rb +0 -14
- data/app/uploaders/decidim/cw/image_uploader.rb +0 -78
- data/app/uploaders/decidim/cw/newsletter_template_image_uploader.rb +0 -38
- data/app/uploaders/decidim/cw/oauth_application_logo_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/official_image_footer_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/official_image_header_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/open_data_uploader.rb +0 -23
- data/app/uploaders/decidim/cw/organization_favicon_uploader.rb +0 -18
- data/app/uploaders/decidim/cw/organization_logo_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/record_image_uploader.rb +0 -15
- data/app/uploaders/decidim/downloader.rb +0 -9
- data/app/views/decidim/amendments/compare_draft.html.erb +0 -18
- data/app/views/layouts/decidim/_edit_link.html.erb +0 -0
- data/app/views/layouts/decidim/header/_main_links_mobile.html.erb +0 -36
- data/config/initializers/carrierwave.rb +0 -15
- data/lib/decidim/carrier_wave_migrator_service.rb +0 -287
- data/lib/tasks/decidim_active_storage_migration_tasks.rake +0 -114
- data/lib/tasks/decidim_content_blocks_tasks.rake +0 -48
- /data/app/views/layouts/decidim/header/{_menu_breadcrumb_main_dropdown.html.erb → _menu_breadcrumb_main_dropdown_desktop.html.erb} +0 -0
@@ -20,8 +20,26 @@ header {
|
|
20
20
|
}
|
21
21
|
}
|
22
22
|
|
23
|
+
#flash-messages-container {
|
24
|
+
@apply mt-28 md:mt-0;
|
25
|
+
}
|
26
|
+
|
27
|
+
&.with-admin-bar {
|
28
|
+
#flash-messages-container {
|
29
|
+
@apply mt-40 md:mt-0;
|
30
|
+
}
|
31
|
+
|
32
|
+
#menu-bar-container {
|
33
|
+
@apply mt-[140px] md:mt-0;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
#sticky-header-container {
|
38
|
+
@apply fixed w-full top-0 shadow-lg z-40 bg-white md:relative transition-top duration-300;
|
39
|
+
}
|
40
|
+
|
23
41
|
.main-bar {
|
24
|
-
@apply container grid grid-cols-4 md:grid-cols-8 lg:grid-cols-12 gap-4 items-center py-5;
|
42
|
+
@apply container grid grid-cols-4 md:grid-cols-8 lg:grid-cols-12 gap-4 items-center py-5 h-24;
|
25
43
|
|
26
44
|
&__container {
|
27
45
|
@apply relative w-full;
|
@@ -31,6 +49,14 @@ header {
|
|
31
49
|
@apply col-span-3 xl:col-span-2 prose prose-img:max-h-16 prose-img:my-0;
|
32
50
|
}
|
33
51
|
|
52
|
+
&__logo-desktop {
|
53
|
+
@apply hidden lg:block;
|
54
|
+
}
|
55
|
+
|
56
|
+
&__logo-mobile {
|
57
|
+
@apply lg:hidden;
|
58
|
+
}
|
59
|
+
|
34
60
|
&__search {
|
35
61
|
@apply hidden md:block col-span-2 col-start-5 xl:col-start-4;
|
36
62
|
|
@@ -43,10 +69,14 @@ header {
|
|
43
69
|
}
|
44
70
|
|
45
71
|
button[type="submit"] {
|
46
|
-
@apply absolute right-2 inset-y-2 text-secondary;
|
72
|
+
@apply absolute ltr:right-2 rtl:left-2 inset-y-2 text-secondary;
|
47
73
|
}
|
48
74
|
}
|
49
75
|
|
76
|
+
&__menu-mobile {
|
77
|
+
@apply lg:hidden flex flex-row-reverse items-center;
|
78
|
+
}
|
79
|
+
|
50
80
|
&__links-desktop,
|
51
81
|
> *:last-child {
|
52
82
|
@apply col-span-1 md:col-start-8 lg:col-start-8 lg:col-span-5 justify-self-end;
|
@@ -61,6 +91,10 @@ header {
|
|
61
91
|
&-wrapper {
|
62
92
|
@apply flex gap-x-4 xl:gap-x-6;
|
63
93
|
}
|
94
|
+
|
95
|
+
&-account {
|
96
|
+
@apply w-6 h-6 flex items-center justify-center bg-secondary text-white rounded-full text-xs font-bold mr-2;
|
97
|
+
}
|
64
98
|
}
|
65
99
|
|
66
100
|
/* overwrite default dropdown styles */
|
@@ -81,10 +115,10 @@ header {
|
|
81
115
|
@apply fixed bottom-0 left-0 z-40 bg-white w-full px-4 py-3 flex justify-between text-secondary shadow-[0_-4px_6px_rgba(198,198,198,0.25)];
|
82
116
|
|
83
117
|
&__trigger {
|
84
|
-
@apply flex flex-col items-center text-secondary cursor-pointer
|
118
|
+
@apply flex flex-col items-center text-secondary cursor-pointer pl-4 border-l border-gray-3;
|
85
119
|
|
86
120
|
svg {
|
87
|
-
@apply w-
|
121
|
+
@apply w-6 h-6 fill-current;
|
88
122
|
}
|
89
123
|
|
90
124
|
span {
|
@@ -96,6 +130,10 @@ header {
|
|
96
130
|
@apply absolute top-full left-0 z-30 bg-white;
|
97
131
|
}
|
98
132
|
|
133
|
+
&__dropdown-before {
|
134
|
+
@apply before:block before:absolute before:-top-10 before:right-12 before:content-[""] before:bg-white before:w-24 before:h-12 before:-mt-8;
|
135
|
+
}
|
136
|
+
|
99
137
|
&__account {
|
100
138
|
@apply fixed top-0 left-0 w-full h-full z-30 bg-white;
|
101
139
|
|
@@ -118,46 +156,33 @@ header {
|
|
118
156
|
.main-bar__avatar {
|
119
157
|
@apply w-12 h-12;
|
120
158
|
}
|
121
|
-
}
|
122
|
-
|
123
|
-
&__search {
|
124
|
-
@apply fixed top-0 left-0 w-full h-full z-30 bg-white;
|
125
159
|
|
126
|
-
|
127
|
-
@apply
|
160
|
+
.main-bar__avatar-name {
|
161
|
+
@apply w-12 h-12 text-2xl;
|
128
162
|
}
|
129
163
|
|
130
|
-
.
|
131
|
-
@apply
|
164
|
+
.account-container {
|
165
|
+
@apply before:block before:absolute before:top-16 before:right-14 before:content-[""] before:bg-white before:w-2 before:h-12 before:-mt-8;
|
132
166
|
}
|
167
|
+
}
|
133
168
|
|
134
|
-
|
135
|
-
|
136
|
-
|
169
|
+
&__item {
|
170
|
+
@apply relative;
|
171
|
+
}
|
137
172
|
|
138
|
-
|
139
|
-
|
140
|
-
}
|
173
|
+
&__search {
|
174
|
+
@apply fixed top-0 left-0 w-full h-full z-30 bg-white;
|
141
175
|
}
|
142
176
|
|
143
|
-
&
|
144
|
-
@apply w-
|
177
|
+
&__login {
|
178
|
+
@apply w-20 h-full flex flex-row items-center relative text-secondary gap-1;
|
145
179
|
|
146
180
|
svg {
|
147
|
-
@apply w-8 h-
|
181
|
+
@apply w-8 h-6 fill-current;
|
148
182
|
}
|
149
183
|
|
150
184
|
svg + span {
|
151
|
-
@apply text-sm first-letter:uppercase;
|
152
|
-
}
|
153
|
-
|
154
|
-
/* overwrite default dropdown styles */
|
155
|
-
&[data-target*="dropdown"] {
|
156
|
-
@apply p-0 gap-0;
|
157
|
-
|
158
|
-
> span {
|
159
|
-
@apply block font-normal text-sm first-letter:uppercase;
|
160
|
-
}
|
185
|
+
@apply text-sm first-letter:uppercase pr-4 w-16;
|
161
186
|
}
|
162
187
|
}
|
163
188
|
}
|
@@ -179,11 +204,11 @@ header {
|
|
179
204
|
}
|
180
205
|
|
181
206
|
&__notification {
|
182
|
-
@apply w-2.5 h-2.5 rounded-full block absolute -top-0.5 right-
|
207
|
+
@apply w-2.5 h-2.5 rounded-full block absolute -top-0.5 right-1.5 bg-primary;
|
183
208
|
}
|
184
209
|
|
185
210
|
&__avatar {
|
186
|
-
@apply block w-
|
211
|
+
@apply block w-6 h-6 rounded-full border border-secondary overflow-hidden mr-2;
|
187
212
|
|
188
213
|
span {
|
189
214
|
@apply w-full h-full rounded-full overflow-hidden;
|
@@ -194,6 +219,10 @@ header {
|
|
194
219
|
}
|
195
220
|
}
|
196
221
|
|
222
|
+
&__avatar-name {
|
223
|
+
@apply w-6 h-6 flex items-center justify-center bg-secondary text-white rounded-full text-xs font-bold mr-2;
|
224
|
+
}
|
225
|
+
|
197
226
|
/* overwrite default dropdown styles */
|
198
227
|
[id*="dropdown-menu"] {
|
199
228
|
@apply py-0 mx-0 w-full;
|
@@ -202,14 +231,10 @@ header {
|
|
202
231
|
@apply md:hidden;
|
203
232
|
}
|
204
233
|
}
|
205
|
-
|
206
|
-
[data-target*="dropdown"] {
|
207
|
-
@apply last-of-type:[&>svg]:block;
|
208
|
-
}
|
209
234
|
}
|
210
235
|
|
211
236
|
.menu-bar {
|
212
|
-
@apply container h-full flex justify-between items-center lg:relative;
|
237
|
+
@apply container h-full flex justify-between items-center lg:relative last-of-type:[&>svg]:hidden;
|
213
238
|
|
214
239
|
&__container {
|
215
240
|
@apply bg-primary relative h-14;
|
@@ -235,10 +260,10 @@ header {
|
|
235
260
|
}
|
236
261
|
|
237
262
|
&__dropdown-content {
|
238
|
-
@apply absolute z-20 top-full
|
263
|
+
@apply absolute z-20 top-full cursor-auto;
|
239
264
|
|
240
265
|
&-secondary {
|
241
|
-
@apply absolute z-20 top-[calc(100%+12px)]
|
266
|
+
@apply absolute z-20 top-[calc(100%+12px)];
|
242
267
|
}
|
243
268
|
}
|
244
269
|
|
@@ -342,22 +367,17 @@ header {
|
|
342
367
|
}
|
343
368
|
}
|
344
369
|
|
370
|
+
&__language-chooser {
|
371
|
+
@apply absolute top-full left-0 bg-white rounded w-full bg-gray-5;
|
372
|
+
}
|
373
|
+
|
345
374
|
&__main-dropdown {
|
346
|
-
@apply bg-white divide-y divide-gray-3 rounded-b shadow-lg text-black w-full lg:w-[1280px];
|
375
|
+
@apply bg-white divide-y divide-gray-3 rounded-b shadow-lg text-black w-full lg:w-[1280px] h-screen md:h-auto;
|
347
376
|
|
348
377
|
&__bottom,
|
349
378
|
&__top {
|
350
379
|
@apply flex flex-col md:flex-row justify-between p-4 md:p-8 gap-x-8;
|
351
380
|
|
352
|
-
&-left {
|
353
|
-
@apply w-full md:w-1/2;
|
354
|
-
|
355
|
-
/* Overwrite default size */
|
356
|
-
.card__highlight-text {
|
357
|
-
@apply text-md;
|
358
|
-
}
|
359
|
-
}
|
360
|
-
|
361
381
|
&-right {
|
362
382
|
@apply hidden md:block md:w-1/2;
|
363
383
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
}
|
7
7
|
|
8
8
|
[data-content] {
|
9
|
-
@apply
|
9
|
+
@apply relative flex flex-col;
|
10
10
|
}
|
11
11
|
}
|
12
12
|
|
@@ -31,14 +31,14 @@
|
|
31
31
|
}
|
32
32
|
|
33
33
|
.layout-2col {
|
34
|
-
@apply md:grid grid-cols-12 container grow
|
34
|
+
@apply md:grid grid-cols-12 container grow auto-rows-max;
|
35
35
|
|
36
36
|
&__aside {
|
37
37
|
@apply col-span-4 lg:col-span-3 md:pr-16 py-6 md:py-12 gap-6 md:gap-12 flex flex-col justify-between items-start md:justify-start before:content-[''] before:absolute before:top-0 before:left-0 before:h-full before:w-1/2 before:-z-10 md:before:bg-background;
|
38
38
|
}
|
39
39
|
|
40
40
|
&__main {
|
41
|
-
@apply col-span-8 lg:col-span-9 bg-white md:pl-16 py-6 md:py-12;
|
41
|
+
@apply col-span-8 lg:col-span-9 bg-white md:pl-16 py-6 md:py-12 min-h-[60vh];
|
42
42
|
}
|
43
43
|
|
44
44
|
&__reverse &__aside {
|
@@ -105,3 +105,16 @@
|
|
105
105
|
.layout-main__buttons {
|
106
106
|
@apply flex gap-x-1 items-center;
|
107
107
|
}
|
108
|
+
|
109
|
+
.layout-aside__ctas-buttons {
|
110
|
+
@apply fixed md:relative inset-x-0 bottom-0 z-30 md:z-0 flex flex-row-reverse md:flex-col items-center md:items-stretch last:[&>button]:font-semibold first:[&>button]:text-lg justify-around bg-white md:bg-transparent gap-4 md:gap-0 p-4 md:p-0 shadow-inner md:shadow-none first:[&>*]:grow md:first:[&>*]:grow-0 last:[&>*]:w-1/2 md:last:[&>*]:w-auto h-20 md:h-fit first:[&>button]:py-3;
|
111
|
+
|
112
|
+
.meeting__aside-progress,
|
113
|
+
.proposals__aside-progress {
|
114
|
+
@apply flex flex-col-reverse md:flex-col md:w-auto;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
.survey-section-buttons {
|
119
|
+
@apply flex-row last:[&>button]:font-semibold md:[&>button]:font-normal last:[&>button]:text-lg md:last:[&>button]:text-sm md:first:[&>button]:text-sm last:[&>button]:py-3 md:last:[&>button]:py-1.5 md:first:[&>button]:py-1.5;
|
120
|
+
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
@apply invisible opacity-0 fixed z-50 inset-0 bg-[rgba(0,0,0,0.25)] transition duration-300;
|
3
3
|
|
4
4
|
& > * {
|
5
|
-
@apply absolute inset-1/2 -translate-x-1/2 -translate-y-1/2 w-[90%] lg:max-w-[900px] max-h-[95vh] h-fit overflow-y-auto p-6 bg-white z-50 rounded shadow-[0_4px_6px_rgba(211,211,211,0.25)];
|
5
|
+
@apply absolute inset-1/2 ltr:-translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 w-[90%] lg:max-w-[900px] max-h-[95vh] h-fit overflow-y-auto p-6 bg-white z-50 rounded shadow-[0_4px_6px_rgba(211,211,211,0.25)];
|
6
6
|
|
7
7
|
& > svg:only-child {
|
8
8
|
@apply w-8 h-8 mx-auto text-gray-2 fill-current animate-spin;
|
@@ -7,7 +7,7 @@
|
|
7
7
|
}
|
8
8
|
|
9
9
|
&-container {
|
10
|
-
@apply
|
10
|
+
@apply space-y-4;
|
11
11
|
}
|
12
12
|
|
13
13
|
&-placeholder {
|
@@ -28,9 +28,7 @@
|
|
28
28
|
@apply w-24 flex-none flex justify-center;
|
29
29
|
}
|
30
30
|
|
31
|
-
img
|
32
|
-
[src^="data:application/octet-stream"]
|
33
|
-
) {
|
31
|
+
img[src="data:,"] {
|
34
32
|
@apply hidden;
|
35
33
|
}
|
36
34
|
|
@@ -6,13 +6,17 @@
|
|
6
6
|
}
|
7
7
|
|
8
8
|
&[aria-expanded="true"],
|
9
|
-
&:hover {
|
9
|
+
&:hover[disabled="false"] {
|
10
10
|
@apply text-secondary border-secondary;
|
11
11
|
|
12
12
|
svg {
|
13
13
|
@apply text-secondary;
|
14
14
|
}
|
15
15
|
}
|
16
|
+
|
17
|
+
&[disabled] {
|
18
|
+
@apply opacity-50 cursor-not-allowed;
|
19
|
+
}
|
16
20
|
}
|
17
21
|
|
18
22
|
.tabs-1 {
|
@@ -57,8 +57,12 @@
|
|
57
57
|
@import "stylesheets/decidim/_toggle_switch.scss";
|
58
58
|
@import "stylesheets/decidim/_hero.scss";
|
59
59
|
@import "stylesheets/decidim/_actions.scss";
|
60
|
+
@import "stylesheets/decidim/_emoji.scss";
|
60
61
|
}
|
61
62
|
|
63
|
+
@import "stylesheets/decidim/vendor/datepicker_light.scss";
|
64
|
+
@import "stylesheets/decidim/datepicker.scss";
|
65
|
+
|
62
66
|
// On the other hand, the following styles match with specific routes
|
63
67
|
@import "stylesheets/decidim/_header.scss";
|
64
68
|
@import "stylesheets/decidim/_footer.scss";
|
@@ -43,7 +43,7 @@
|
|
43
43
|
display: block;
|
44
44
|
}
|
45
45
|
|
46
|
-
/* .leaflet-container svg: reset svg max-width
|
46
|
+
/* .leaflet-container svg: reset svg max-width declaration shipped in Joomla! (joomla.org) 3.x */
|
47
47
|
|
48
48
|
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
|
49
49
|
.leaflet-container .leaflet-overlay-pane svg {
|
@@ -0,0 +1,228 @@
|
|
1
|
+
// Extracted from wc-datepicker
|
2
|
+
// https://github.com/Sqrrl/wc-datepicker
|
3
|
+
// Copyright @Sqrrl (c) 2022 - MIT License
|
4
|
+
|
5
|
+
.sc-wc-datepicker-h,
|
6
|
+
.sc-wc-datepicker-h *,
|
7
|
+
.sc-wc-datepicker-h *::before,
|
8
|
+
.sc-wc-datepicker-h *::after {
|
9
|
+
margin: 0;
|
10
|
+
padding: 0;
|
11
|
+
box-sizing: border-box;
|
12
|
+
}
|
13
|
+
|
14
|
+
.sc-wc-datepicker-h {
|
15
|
+
display: inline-flex;
|
16
|
+
}
|
17
|
+
|
18
|
+
.wc-datepicker {
|
19
|
+
display: block;
|
20
|
+
width: min-content;
|
21
|
+
min-width: 17rem;
|
22
|
+
max-width: 24rem;
|
23
|
+
border: 0.0625rem solid #f2f3f5;
|
24
|
+
color: #111;
|
25
|
+
background-color: #fff;
|
26
|
+
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
|
27
|
+
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
|
28
|
+
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
29
|
+
font-size: 1rem;
|
30
|
+
font-weight: 400;
|
31
|
+
line-height: 1.5;
|
32
|
+
}
|
33
|
+
|
34
|
+
.wc-datepicker--disabled *:disabled {
|
35
|
+
opacity: 0.5;
|
36
|
+
cursor: default;
|
37
|
+
}
|
38
|
+
|
39
|
+
.wc-datepicker--disabled .wc-datepicker__weekday {
|
40
|
+
color: #767676;
|
41
|
+
}
|
42
|
+
|
43
|
+
.wc-datepicker--disabled .wc-datepicker__date:focus > * {
|
44
|
+
outline: none;
|
45
|
+
}
|
46
|
+
|
47
|
+
.wc-datepicker--disabled .wc-datepicker__date {
|
48
|
+
cursor: default;
|
49
|
+
opacity: 0.5;
|
50
|
+
}
|
51
|
+
|
52
|
+
.wc-datepicker--disabled .wc-datepicker__date:hover > * {
|
53
|
+
background-color: transparent;
|
54
|
+
}
|
55
|
+
|
56
|
+
.wc-datepicker--disabled .wc-datepicker__date--in-range:hover > * {
|
57
|
+
background-color: #f2f3f5;
|
58
|
+
}
|
59
|
+
|
60
|
+
.wc-datepicker--disabled .wc-datepicker__date--selected:hover > * {
|
61
|
+
color: #fff;
|
62
|
+
background-color: #00f;
|
63
|
+
}
|
64
|
+
|
65
|
+
.wc-datepicker__header {
|
66
|
+
display: flex;
|
67
|
+
padding: 0.75rem;
|
68
|
+
align-items: center;
|
69
|
+
gap: 0.5rem;
|
70
|
+
}
|
71
|
+
|
72
|
+
.wc-datepicker__current-month {
|
73
|
+
display: flex;
|
74
|
+
flex-grow: 1;
|
75
|
+
gap: 0.5rem;
|
76
|
+
}
|
77
|
+
|
78
|
+
.wc-datepicker__month-select,
|
79
|
+
.wc-datepicker__year-select {
|
80
|
+
display: flex;
|
81
|
+
height: 2rem;
|
82
|
+
padding-right: 0.5rem;
|
83
|
+
padding-left: 0.5rem;
|
84
|
+
align-items: center;
|
85
|
+
border: none;
|
86
|
+
border-radius: 0.25rem;
|
87
|
+
color: #111;
|
88
|
+
background: #f2f3f5;
|
89
|
+
font: inherit;
|
90
|
+
line-height: 1.125;
|
91
|
+
}
|
92
|
+
|
93
|
+
.wc-datepicker__month-select {
|
94
|
+
flex-grow: 1;
|
95
|
+
cursor: pointer;
|
96
|
+
appearance: none;
|
97
|
+
}
|
98
|
+
|
99
|
+
.wc-datepicker__year-select {
|
100
|
+
max-width: 5rem;
|
101
|
+
}
|
102
|
+
|
103
|
+
.wc-datepicker__previous-month-button,
|
104
|
+
.wc-datepicker__next-month-button,
|
105
|
+
.wc-datepicker__previous-year-button,
|
106
|
+
.wc-datepicker__next-year-button {
|
107
|
+
display: inline-flex;
|
108
|
+
width: 2rem;
|
109
|
+
height: 2rem;
|
110
|
+
padding: 0.375rem;
|
111
|
+
flex-shrink: 0;
|
112
|
+
justify-content: center;
|
113
|
+
align-items: center;
|
114
|
+
border: none;
|
115
|
+
border-radius: 0.25rem;
|
116
|
+
color: #111;
|
117
|
+
background-color: transparent;
|
118
|
+
background-color: #f2f3f5;
|
119
|
+
cursor: pointer;
|
120
|
+
}
|
121
|
+
|
122
|
+
.wc-datepicker__body {
|
123
|
+
padding-right: 0.75rem;
|
124
|
+
padding-bottom: 0.75rem;
|
125
|
+
padding-left: 0.75rem;
|
126
|
+
}
|
127
|
+
|
128
|
+
.wc-datepicker__calendar {
|
129
|
+
width: 100%;
|
130
|
+
table-layout: fixed;
|
131
|
+
border-collapse: collapse;
|
132
|
+
}
|
133
|
+
|
134
|
+
.wc-datepicker__weekday > span {
|
135
|
+
display: flex;
|
136
|
+
padding: 0.125rem;
|
137
|
+
justify-content: center;
|
138
|
+
align-items: center;
|
139
|
+
font-weight: 600;
|
140
|
+
aspect-ratio: 1;
|
141
|
+
}
|
142
|
+
|
143
|
+
.wc-datepicker__date {
|
144
|
+
padding: 0.125rem;
|
145
|
+
text-align: center;
|
146
|
+
cursor: pointer;
|
147
|
+
}
|
148
|
+
|
149
|
+
.wc-datepicker__date:focus {
|
150
|
+
outline: none;
|
151
|
+
}
|
152
|
+
|
153
|
+
.wc-datepicker__date:focus > * {
|
154
|
+
outline: 0.125rem solid #00f;
|
155
|
+
}
|
156
|
+
|
157
|
+
.wc-datepicker__date:hover > * {
|
158
|
+
background-color: #f2f3f5;
|
159
|
+
}
|
160
|
+
|
161
|
+
.wc-datepicker__date > * {
|
162
|
+
display: flex;
|
163
|
+
justify-content: center;
|
164
|
+
align-items: center;
|
165
|
+
border-radius: 0.25rem;
|
166
|
+
aspect-ratio: 1;
|
167
|
+
}
|
168
|
+
|
169
|
+
.wc-datepicker__date--today > * {
|
170
|
+
font-weight: 700;
|
171
|
+
font-style: normal;
|
172
|
+
}
|
173
|
+
|
174
|
+
.wc-datepicker__date--in-range > * {
|
175
|
+
background-color: #f2f3f5;
|
176
|
+
}
|
177
|
+
|
178
|
+
.wc-datepicker__date--selected > *,
|
179
|
+
.wc-datepicker__date--selected:hover > * {
|
180
|
+
color: #fff;
|
181
|
+
background-color: #00f;
|
182
|
+
font-weight: 500;
|
183
|
+
}
|
184
|
+
|
185
|
+
.wc-datepicker__date--disabled {
|
186
|
+
color: #767676;
|
187
|
+
cursor: default;
|
188
|
+
}
|
189
|
+
|
190
|
+
.wc-datepicker__date--disabled:not(.wc-datepicker__date--selected):not(
|
191
|
+
.wc-datepicker__date--in-range
|
192
|
+
):hover
|
193
|
+
> * {
|
194
|
+
background-color: transparent;
|
195
|
+
}
|
196
|
+
|
197
|
+
.wc-datepicker__date--disabled.wc-datepicker__date--in-range:not(
|
198
|
+
.wc-datepicker__date--selected
|
199
|
+
):not(.wc-datepicker__date--in-range)
|
200
|
+
> * {
|
201
|
+
background-color: transparent;
|
202
|
+
}
|
203
|
+
|
204
|
+
.wc-datepicker__footer {
|
205
|
+
display: flex;
|
206
|
+
padding-right: 0.75rem;
|
207
|
+
padding-bottom: 0.75rem;
|
208
|
+
padding-left: 0.75rem;
|
209
|
+
align-items: center;
|
210
|
+
gap: 0.5rem;
|
211
|
+
}
|
212
|
+
|
213
|
+
.wc-datepicker__clear-button,
|
214
|
+
.wc-datepicker__today-button {
|
215
|
+
display: inline-flex;
|
216
|
+
height: 2rem;
|
217
|
+
padding-right: 0.5rem;
|
218
|
+
padding-left: 0.5rem;
|
219
|
+
justify-content: center;
|
220
|
+
align-items: center;
|
221
|
+
border: none;
|
222
|
+
border-radius: 0.25rem;
|
223
|
+
color: #111;
|
224
|
+
background-color: #f2f3f5;
|
225
|
+
font: inherit;
|
226
|
+
line-height: 1;
|
227
|
+
cursor: pointer;
|
228
|
+
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Decidim
|
4
|
-
# Default permissions class for all components and spaces. It
|
4
|
+
# Default permissions class for all components and spaces. It deauthorizes all
|
5
5
|
# actions by any kind of user. Also works as a default implementation so other
|
6
|
-
# components can inherit from it and get some
|
6
|
+
# components can inherit from it and get some convenience methods.
|
7
7
|
class DefaultPermissions
|
8
8
|
def initialize(user, permission_action, context = {})
|
9
9
|
@user = user
|
@@ -15,7 +15,7 @@ module Decidim
|
|
15
15
|
private
|
16
16
|
|
17
17
|
def diff_fields_mapping
|
18
|
-
return {
|
18
|
+
return { external_domain_allowlist: :string } if action == "update_external_domain"
|
19
19
|
|
20
20
|
settings_attributes_mapping
|
21
21
|
.merge(omnipresent_banner_attributes_mapping)
|
@@ -26,7 +26,7 @@ module Decidim
|
|
26
26
|
|
27
27
|
def settings_attributes_mapping
|
28
28
|
{
|
29
|
-
name: :
|
29
|
+
name: :i18n,
|
30
30
|
default_locale: :locale,
|
31
31
|
reference_prefix: :string,
|
32
32
|
twitter_handler: :string,
|
@@ -24,7 +24,7 @@ module Decidim
|
|
24
24
|
|
25
25
|
# Private: Caches the object that will be responsible of presenting the static page.
|
26
26
|
# Overwrites the method so that we can use a custom presenter to show the correct
|
27
|
-
# path for
|
27
|
+
# path for their page.
|
28
28
|
#
|
29
29
|
# Returns an object that responds to `present`.
|
30
30
|
def resource_presenter
|
@@ -37,7 +37,7 @@ module Decidim
|
|
37
37
|
# Returns an array of the translated record counts containing only the
|
38
38
|
# texts to be displayed for the user.
|
39
39
|
#
|
40
|
-
# @return [Array<String>] The translated records names with their
|
40
|
+
# @return [Array<String>] The translated records names with their counts.
|
41
41
|
def translated_record_texts
|
42
42
|
translated_record_counts.values
|
43
43
|
end
|