decidim-core 0.27.5 → 0.28.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/app/cells/decidim/activities/show.erb +5 -3
- data/app/cells/decidim/activities_cell.rb +5 -5
- data/app/cells/decidim/activity/show.erb +23 -22
- data/app/cells/decidim/activity_cell.rb +26 -6
- data/app/cells/decidim/address/online.erb +9 -0
- data/app/cells/decidim/address/show.erb +13 -13
- data/app/cells/decidim/address_cell.rb +3 -7
- data/app/cells/decidim/amendable/amend_button_card/show.erb +4 -9
- data/app/cells/decidim/amendable/amend_button_card_cell.rb +0 -17
- data/app/cells/decidim/amendable/amenders_list/show.erb +0 -12
- data/app/cells/decidim/amendable/amendments/show.erb +12 -0
- data/app/cells/decidim/amendable/amendments_cell.rb +25 -0
- data/app/cells/decidim/amendable/announcement_cell.rb +1 -1
- data/app/cells/decidim/amendable/emendation_actions/show.erb +12 -10
- data/app/cells/decidim/amendable/emendation_actions_cell.rb +0 -26
- data/app/cells/decidim/amendable/promote_button_card/show.erb +9 -9
- data/app/cells/decidim/amendable/promote_button_card_cell.rb +1 -5
- data/app/cells/decidim/amendable/wizard_step_form_cell.rb +5 -5
- data/app/cells/decidim/announcement/show.erb +10 -10
- data/app/cells/decidim/announcement_cell.rb +14 -4
- data/app/cells/decidim/author/avatar.erb +9 -0
- data/app/cells/decidim/author/avatar_image.erb +1 -0
- data/app/cells/decidim/author/cancelled_on.erb +4 -0
- data/app/cells/decidim/author/comments.erb +3 -5
- data/app/cells/decidim/author/date.erb +4 -5
- data/app/cells/decidim/author/endorsements.erb +3 -5
- data/app/cells/decidim/author/flag.erb +6 -8
- data/app/cells/decidim/author/flag_user.erb +10 -6
- data/app/cells/decidim/author/name.erb +5 -0
- data/app/cells/decidim/author/profile_minicard.erb +24 -19
- data/app/cells/decidim/author/show.erb +22 -14
- data/app/cells/decidim/author/withdraw.erb +3 -5
- data/app/cells/decidim/author_cell.rb +50 -32
- data/app/cells/decidim/authorization_modal/show.erb +28 -0
- data/app/cells/decidim/authorization_modal_cell.rb +92 -0
- data/app/cells/decidim/badge/show.erb +9 -31
- data/app/cells/decidim/badge/small.erb +3 -3
- data/app/cells/decidim/badges/show.erb +13 -6
- data/app/cells/decidim/badges_cell.rb +1 -0
- data/app/cells/decidim/button/button.erb +9 -0
- data/app/cells/decidim/button/content.erb +2 -0
- data/app/cells/decidim/button/link.erb +10 -0
- data/app/cells/decidim/button/show.erb +5 -0
- data/app/cells/decidim/button_cell.rb +48 -0
- data/app/cells/decidim/card/show.erb +8 -16
- data/app/cells/decidim/card/title.erb +1 -0
- data/app/cells/decidim/card_cell.rb +63 -6
- data/app/cells/decidim/card_g/show.erb +19 -0
- data/app/cells/decidim/card_g_cell.rb +102 -0
- data/app/cells/decidim/card_l/author.erb +3 -0
- data/app/cells/decidim/card_l/content.erb +10 -0
- data/app/cells/decidim/card_l/description.erb +3 -0
- data/app/cells/decidim/card_l/image.erb +11 -0
- data/app/cells/decidim/card_l/metadata.erb +3 -0
- data/app/cells/decidim/card_l/show.erb +13 -0
- data/app/cells/decidim/card_l/space.erb +1 -0
- data/app/cells/decidim/card_l/title_and_details.erb +5 -0
- data/app/cells/decidim/card_l_cell.rb +139 -0
- data/app/cells/decidim/card_metadata/show.erb +22 -0
- data/app/cells/decidim/card_metadata_cell.rb +218 -0
- data/app/cells/decidim/card_s/show.erb +10 -0
- data/app/cells/decidim/card_s_cell.rb +34 -0
- data/app/cells/decidim/coauthorships_cell.rb +2 -27
- data/app/cells/decidim/collapsible_authors/show.erb +17 -16
- data/app/cells/decidim/collapsible_authors/stack.erb +9 -0
- data/app/cells/decidim/collapsible_authors_cell.rb +13 -22
- data/app/cells/decidim/comments_button_cell.rb +31 -0
- data/app/cells/decidim/content_blocks/base/show.erb +3 -0
- data/app/cells/decidim/content_blocks/base_cell.rb +49 -0
- data/app/cells/decidim/content_blocks/cta/show.erb +10 -12
- data/app/cells/decidim/content_blocks/cta_cell.rb +0 -4
- data/app/cells/decidim/content_blocks/footer_sub_hero/show.erb +14 -12
- data/app/cells/decidim/content_blocks/global_menu/show.erb +11 -0
- data/app/cells/decidim/content_blocks/global_menu_cell.rb +35 -0
- data/app/cells/decidim/content_blocks/hero/cta_button.erb +4 -0
- data/app/cells/decidim/content_blocks/hero/show.erb +11 -18
- data/app/cells/decidim/content_blocks/hero_cell.rb +1 -1
- data/app/cells/decidim/content_blocks/highlighted_content_banner/show.erb +16 -20
- data/app/cells/decidim/content_blocks/highlighted_elements_cell.rb +7 -31
- data/app/cells/decidim/content_blocks/highlighted_elements_for_component_settings_form/show.erb +4 -0
- data/app/cells/decidim/content_blocks/highlighted_elements_for_component_settings_form_cell.rb +31 -0
- data/app/cells/decidim/content_blocks/highlighted_elements_settings_form/show.erb +1 -1
- data/app/cells/decidim/content_blocks/highlighted_elements_with_cell_for_list/content.erb +1 -0
- data/app/cells/decidim/content_blocks/highlighted_elements_with_cell_for_list_cell.rb +29 -0
- data/app/cells/decidim/content_blocks/highlighted_participatory_spaces/content.erb +16 -0
- data/app/cells/decidim/content_blocks/highlighted_participatory_spaces_cell.rb +39 -0
- data/app/cells/decidim/content_blocks/how_to_participate/show.erb +37 -41
- data/app/cells/decidim/content_blocks/html/show.erb +1 -1
- data/app/cells/decidim/content_blocks/html_cell.rb +4 -0
- data/app/cells/decidim/content_blocks/html_settings_form/show.erb +1 -1
- data/app/cells/decidim/content_blocks/last_activity/show.erb +11 -14
- data/app/cells/decidim/content_blocks/last_activity_cell.rb +2 -2
- data/app/cells/decidim/content_blocks/last_activity_settings_form/show.erb +3 -0
- data/app/cells/decidim/content_blocks/last_activity_settings_form_cell.rb +13 -0
- data/app/cells/decidim/content_blocks/menu_breadcrumb_last_activity/show.erb +10 -0
- data/app/cells/decidim/content_blocks/menu_breadcrumb_last_activity_cell.rb +43 -0
- data/app/cells/decidim/content_blocks/organization_metrics_cell.rb +21 -0
- data/app/cells/decidim/content_blocks/participatory_space_announcement/content.erb +1 -0
- data/app/cells/decidim/content_blocks/participatory_space_announcement_cell.rb +19 -0
- data/app/cells/decidim/content_blocks/participatory_space_documents/content.erb +5 -0
- data/app/cells/decidim/content_blocks/participatory_space_documents_cell.rb +7 -0
- data/app/cells/decidim/content_blocks/participatory_space_extra_data/content.erb +5 -0
- data/app/cells/decidim/content_blocks/participatory_space_extra_data/extra_data.erb +13 -0
- data/app/cells/decidim/content_blocks/participatory_space_extra_data/recent_users.erb +5 -0
- data/app/cells/decidim/content_blocks/participatory_space_extra_data_cell.rb +13 -0
- data/app/cells/decidim/content_blocks/participatory_space_hero/show.erb +20 -0
- data/app/cells/decidim/content_blocks/participatory_space_hero_cell.rb +41 -0
- data/app/cells/decidim/content_blocks/participatory_space_images/content.erb +5 -0
- data/app/cells/decidim/content_blocks/participatory_space_images_cell.rb +7 -0
- data/app/cells/decidim/content_blocks/participatory_space_last_activity/content.erb +11 -0
- data/app/cells/decidim/content_blocks/participatory_space_last_activity/recent_avatars.erb +5 -0
- data/app/cells/decidim/content_blocks/participatory_space_last_activity_cell.rb +45 -0
- data/app/cells/decidim/content_blocks/participatory_space_main_data/content.erb +7 -0
- data/app/cells/decidim/content_blocks/participatory_space_main_data/title.erb +32 -0
- data/app/cells/decidim/content_blocks/participatory_space_main_data_cell.rb +23 -0
- data/app/cells/decidim/content_blocks/participatory_space_metadata/content.erb +10 -0
- data/app/cells/decidim/content_blocks/participatory_space_metadata_cell.rb +40 -0
- data/app/cells/decidim/content_blocks/participatory_space_metrics/content.erb +18 -0
- data/app/cells/decidim/content_blocks/participatory_space_metrics_cell.rb +43 -0
- data/app/cells/decidim/content_blocks/participatory_space_social_networks/content.erb +10 -0
- data/app/cells/decidim/content_blocks/participatory_space_social_networks_cell.rb +31 -0
- data/app/cells/decidim/content_blocks/participatory_space_stats/content.erb +1 -0
- data/app/cells/decidim/content_blocks/participatory_space_stats_cell.rb +21 -0
- data/app/cells/decidim/content_blocks/static_page/section/show.erb +1 -0
- data/app/cells/decidim/content_blocks/static_page/section_cell.rb +13 -0
- data/app/cells/decidim/content_blocks/static_page/section_settings_form/show.erb +3 -0
- data/app/cells/decidim/content_blocks/static_page/section_settings_form_cell.rb +19 -0
- data/app/cells/decidim/content_blocks/static_page/summary/show.erb +1 -0
- data/app/cells/decidim/content_blocks/static_page/summary_cell.rb +13 -0
- data/app/cells/decidim/content_blocks/static_page/summary_settings_form/show.erb +3 -0
- data/app/cells/decidim/content_blocks/static_page/summary_settings_form_cell.rb +19 -0
- data/app/cells/decidim/content_blocks/static_page/two_pane_section/show.erb +8 -0
- data/app/cells/decidim/content_blocks/static_page/two_pane_section_cell.rb +17 -0
- data/app/cells/decidim/content_blocks/static_page/two_pane_section_settings_form/show.erb +4 -0
- data/app/cells/decidim/content_blocks/static_page/two_pane_section_settings_form_cell.rb +23 -0
- data/app/cells/decidim/content_blocks/stats/show.erb +5 -18
- data/app/cells/decidim/content_blocks/sub_hero/show.erb +11 -13
- data/app/cells/decidim/data_consent/category.erb +49 -45
- data/app/cells/decidim/data_consent/dialog.erb +20 -24
- data/app/cells/decidim/data_consent/modal.erb +32 -36
- data/app/cells/decidim/date_range/show.erb +4 -4
- data/app/cells/decidim/diff/attribute.erb +5 -25
- data/app/cells/decidim/diff/diff_mode_dropdown.erb +5 -33
- data/app/cells/decidim/diff/diff_mode_html.erb +5 -33
- data/app/cells/decidim/diff/diff_split.erb +2 -11
- data/app/cells/decidim/diff/diff_split_full.erb +8 -0
- data/app/cells/decidim/diff/diff_unified.erb +1 -7
- data/app/cells/decidim/diff/show.erb +10 -3
- data/app/cells/decidim/diff_cell.rb +35 -4
- data/app/cells/decidim/documents_panel/show.erb +1 -0
- data/app/cells/decidim/documents_panel_cell.rb +34 -0
- data/app/cells/decidim/endorsement_block/show.erb +4 -0
- data/app/cells/decidim/endorsement_block_cell.rb +7 -0
- data/app/cells/decidim/endorsement_buttons/button_content.erb +2 -0
- data/app/cells/decidim/endorsement_buttons/disabled_endorsements.erb +3 -0
- data/app/cells/decidim/endorsement_buttons/select_identity_button.erb +5 -7
- data/app/cells/decidim/endorsement_buttons/show.erb +16 -3
- data/app/cells/decidim/endorsement_buttons/verification_modal.erb +5 -0
- data/app/cells/decidim/endorsement_buttons_cell.rb +25 -138
- data/app/cells/decidim/endorsers_list/full.erb +6 -0
- data/app/cells/decidim/endorsers_list/full_endorsers_list.erb +3 -0
- data/app/cells/decidim/endorsers_list/show.erb +11 -16
- data/app/cells/decidim/endorsers_list_button/content.erb +1 -0
- data/app/cells/decidim/endorsers_list_button_cell.rb +15 -0
- data/app/cells/decidim/endorsers_list_cell.rb +25 -5
- data/app/cells/decidim/flag_modal/flag_user.erb +12 -2
- data/app/cells/decidim/flag_modal/show.erb +51 -26
- data/app/cells/decidim/flag_modal_cell.rb +22 -1
- data/app/cells/decidim/follow_button/content.erb +2 -0
- data/app/cells/decidim/follow_button/show.erb +24 -53
- data/app/cells/decidim/follow_button_cell.rb +23 -34
- data/app/cells/decidim/followers/show.erb +11 -8
- data/app/cells/decidim/followers_cell.rb +4 -0
- data/app/cells/decidim/following/show.erb +6 -11
- data/app/cells/decidim/following_cell.rb +9 -2
- data/app/cells/decidim/footer_pages/pages.erb +3 -0
- data/app/cells/decidim/footer_pages/topics.erb +12 -0
- data/app/cells/decidim/footer_pages_cell.rb +68 -0
- data/app/cells/decidim/group_admins/show.erb +32 -0
- data/app/cells/decidim/group_admins_cell.rb +8 -0
- data/app/cells/decidim/group_members/show.erb +42 -0
- data/app/cells/decidim/group_members_cell.rb +8 -0
- data/app/cells/decidim/groups/show.erb +12 -8
- data/app/cells/decidim/groups_cell.rb +6 -0
- data/app/cells/decidim/highlighted_participatory_process/show.erb +1 -0
- data/app/cells/decidim/highlighted_participatory_process_cell.rb +15 -0
- data/app/cells/decidim/images_panel/show.erb +7 -0
- data/app/cells/decidim/images_panel_cell.rb +29 -0
- data/app/cells/decidim/linked_resources_for/show.erb +3 -0
- data/app/cells/decidim/linked_resources_for_cell.rb +52 -0
- data/app/cells/decidim/members/show.erb +11 -8
- data/app/cells/decidim/members_cell.rb +9 -7
- data/app/cells/decidim/nav_links/show.erb +17 -0
- data/app/cells/decidim/nav_links_cell.rb +10 -0
- data/app/cells/decidim/navbar_admin_link/show.erb +4 -6
- data/app/cells/decidim/navbar_admin_link_cell.rb +2 -8
- data/app/cells/decidim/newsletter_templates/basic_only_text/show.erb +1 -12
- data/app/cells/decidim/newsletter_templates/image_text_cta/show.erb +1 -12
- data/app/cells/decidim/newsletter_templates/image_text_cta_settings_form/show.erb +1 -1
- data/app/cells/decidim/notification/show.erb +14 -30
- data/app/cells/decidim/notification_cell.rb +11 -0
- data/app/cells/decidim/notifications/show.erb +5 -20
- data/app/cells/decidim/notifications/validations.erb +3 -0
- data/app/cells/decidim/notifications_cell.rb +13 -0
- data/app/cells/decidim/pad_iframe/show.erb +1 -1
- data/app/cells/decidim/participatory_space_dropdown_metadata/links.erb +9 -0
- data/app/cells/decidim/participatory_space_dropdown_metadata/metadata.erb +9 -0
- data/app/cells/decidim/participatory_space_dropdown_metadata/show.erb +9 -0
- data/app/cells/decidim/participatory_space_dropdown_metadata_cell.rb +35 -0
- data/app/cells/decidim/photo/show.erb +19 -0
- data/app/cells/decidim/photo_cell.rb +44 -0
- data/app/cells/decidim/photos_list/show.erb +5 -0
- data/app/cells/decidim/photos_list_cell.rb +16 -0
- data/app/cells/decidim/profile/avatar.erb +7 -0
- data/app/cells/decidim/profile/badge.erb +4 -0
- data/app/cells/decidim/profile/details.erb +22 -0
- data/app/cells/decidim/profile/inaccessible.erb +1 -9
- data/app/cells/decidim/profile/invalid.erb +1 -9
- data/app/cells/decidim/profile/show.erb +24 -14
- data/app/cells/decidim/profile/tabs.erb +13 -0
- data/app/cells/decidim/profile_actions/dropdown_actions.erb +21 -0
- data/app/cells/decidim/profile_actions/profile_actions.erb +7 -0
- data/app/cells/decidim/profile_actions/show.erb +12 -0
- data/app/cells/decidim/profile_actions_cell.rb +144 -0
- data/app/cells/decidim/profile_cell.rb +77 -11
- data/app/cells/decidim/profile_sidebar/show.erb +11 -11
- data/app/cells/decidim/progress_bar/show.erb +9 -19
- data/app/cells/decidim/progress_bar_cell.rb +1 -30
- data/app/cells/decidim/public_participation/show.erb +1 -1
- data/app/cells/decidim/report_button/already_reported_modal.erb +11 -0
- data/app/cells/decidim/report_button/flag_modal.erb +60 -0
- data/app/cells/decidim/report_button/show.erb +2 -0
- data/app/cells/decidim/report_button_cell.rb +82 -0
- data/app/cells/decidim/represent_user_group/show.erb +5 -5
- data/app/cells/decidim/resource_types_filter/show.erb +22 -0
- data/app/cells/decidim/resource_types_filter_cell.rb +56 -0
- data/app/cells/decidim/search_results/show.erb +1 -2
- data/app/cells/decidim/search_results_section/show.erb +20 -20
- data/app/cells/decidim/search_results_section_cell.rb +0 -4
- data/app/cells/decidim/share_button_cell.rb +23 -0
- data/app/cells/decidim/statistic/show.erb +4 -5
- data/app/cells/decidim/statistics/show.erb +7 -19
- data/app/cells/decidim/statistics_cell.rb +0 -20
- data/app/cells/decidim/tab_panels/show.erb +19 -0
- data/app/cells/decidim/tab_panels_cell.rb +40 -0
- data/app/cells/decidim/tags/show.erb +3 -4
- data/app/cells/decidim/tags_cell.rb +24 -5
- data/app/cells/decidim/tos_page/form.erb +9 -15
- data/app/cells/decidim/tos_page/refuse_btn_modal.erb +17 -27
- data/app/cells/decidim/tos_page_cell.rb +3 -3
- data/app/cells/decidim/upload_modal/files.erb +50 -35
- data/app/cells/decidim/upload_modal/modal.erb +62 -47
- data/app/cells/decidim/upload_modal/show.erb +1 -2
- data/app/cells/decidim/upload_modal_cell.rb +11 -26
- data/app/cells/decidim/user_activity/show.erb +9 -27
- data/app/cells/decidim/user_activity_cell.rb +4 -2
- data/app/cells/decidim/user_conversation/conversation_header.erb +12 -12
- data/app/cells/decidim/user_conversation/messages.erb +1 -15
- data/app/cells/decidim/user_conversation/new.erb +4 -13
- data/app/cells/decidim/user_conversation/reply.erb +8 -16
- data/app/cells/decidim/user_conversation/show.erb +15 -18
- data/app/cells/decidim/user_conversation/start.erb +12 -0
- data/app/cells/decidim/user_conversation_cell.rb +7 -32
- data/app/cells/decidim/user_conversations/new_conversation_button.erb +20 -0
- data/app/cells/decidim/user_conversations/show.erb +11 -55
- data/app/cells/decidim/user_conversations_cell.rb +2 -21
- data/app/cells/decidim/user_group_pending_invitations_list/show.erb +22 -17
- data/app/cells/decidim/user_group_pending_requests_list/show.erb +21 -17
- data/app/cells/decidim/user_profile/badge.erb +4 -0
- data/app/cells/decidim/user_profile/role_badge.erb +3 -0
- data/app/cells/decidim/user_profile/show.erb +15 -0
- data/app/cells/decidim/user_profile_cell.rb +19 -24
- data/app/cells/decidim/user_timeline/show.erb +1 -3
- data/app/cells/decidim/version/show.erb +5 -30
- data/app/cells/decidim/version_author_cell.rb +13 -10
- data/app/cells/decidim/version_cell.rb +7 -22
- data/app/cells/decidim/versions_list/show.erb +3 -32
- data/app/cells/decidim/versions_list_cell.rb +11 -23
- data/app/cells/decidim/versions_list_item/show.erb +4 -20
- data/app/cells/decidim/versions_list_item_cell.rb +10 -3
- data/app/cells/decidim/wizard_step_form/wizard_aside.erb +1 -1
- data/app/cells/decidim/wizard_step_form/wizard_header.erb +2 -2
- data/app/cells/decidim/wizard_step_form_cell.rb +3 -3
- data/app/commands/decidim/accept_group_invitation.rb +2 -2
- data/app/commands/decidim/accept_user_group_join_request.rb +1 -1
- data/app/commands/decidim/amendable/accept.rb +1 -1
- data/app/commands/decidim/amendable/create_draft.rb +2 -2
- data/app/commands/decidim/amendable/publish_draft.rb +1 -1
- data/app/commands/decidim/amendable/reject.rb +1 -1
- data/app/commands/decidim/amendable/update_draft.rb +1 -1
- data/app/commands/decidim/attachment_methods.rb +1 -5
- data/app/commands/decidim/create_editor_image.rb +1 -1
- data/app/commands/decidim/create_follow.rb +1 -1
- data/app/commands/decidim/create_omniauth_registration.rb +4 -5
- data/app/commands/decidim/create_registration.rb +1 -2
- data/app/commands/decidim/create_report.rb +15 -24
- data/app/commands/decidim/create_user_group.rb +1 -1
- data/app/commands/decidim/create_user_report.rb +1 -1
- data/app/commands/decidim/delete_follow.rb +1 -1
- data/app/commands/decidim/demote_membership.rb +2 -2
- data/app/commands/decidim/endorse_resource.rb +1 -1
- data/app/commands/decidim/gallery_methods.rb +1 -1
- data/app/commands/decidim/invite_user_to_group.rb +3 -3
- data/app/commands/decidim/join_user_group.rb +3 -3
- data/app/commands/decidim/leave_user_group.rb +4 -4
- data/app/commands/decidim/messaging/reply_to_conversation.rb +2 -2
- data/app/commands/decidim/messaging/start_conversation.rb +2 -2
- data/app/commands/decidim/multiple_attachments_methods.rb +5 -3
- data/app/commands/decidim/promote_membership.rb +1 -1
- data/app/commands/decidim/reject_group_invitation.rb +2 -2
- data/app/commands/decidim/reject_user_group_join_request.rb +1 -1
- data/app/commands/decidim/remove_user_from_group.rb +1 -1
- data/app/commands/decidim/search.rb +3 -11
- data/app/commands/decidim/unendorse_resource.rb +1 -1
- data/app/commands/decidim/update_account.rb +21 -5
- data/app/commands/decidim/update_password.rb +0 -1
- data/app/commands/decidim/update_user_group.rb +1 -1
- data/app/constraints/decidim/current_component.rb +1 -1
- data/app/controllers/concerns/decidim/amendments_controller.rb +9 -1
- data/app/controllers/concerns/decidim/devise_controllers.rb +3 -0
- data/app/controllers/concerns/decidim/disable_redirection_to_external_host.rb +1 -1
- data/app/controllers/concerns/decidim/filter_resource.rb +9 -15
- data/app/controllers/concerns/decidim/force_authentication.rb +1 -1
- data/app/controllers/concerns/decidim/has_account_breadcrumb.rb +24 -0
- data/app/controllers/concerns/decidim/has_participatory_space_content_blocks.rb +31 -0
- data/app/controllers/concerns/decidim/has_profile_breadcrumb.rb +24 -0
- data/app/controllers/concerns/decidim/has_specific_breadcrumb.rb +23 -0
- data/app/controllers/concerns/decidim/has_stored_path.rb +2 -2
- data/app/controllers/concerns/decidim/headers/content_security_policy.rb +25 -0
- data/app/controllers/concerns/decidim/headers/http_caching_disabler.rb +23 -0
- data/app/controllers/concerns/decidim/html_safe_flash.rb +40 -0
- data/app/controllers/concerns/decidim/linked_resource_reference.rb +30 -0
- data/app/controllers/concerns/decidim/locale_switcher.rb +2 -2
- data/app/controllers/concerns/decidim/needs_permission.rb +1 -1
- data/app/controllers/concerns/decidim/needs_tos_accepted.rb +12 -5
- data/app/controllers/concerns/decidim/paginable.rb +1 -1
- data/app/controllers/concerns/decidim/participatory_space_context.rb +30 -1
- data/app/controllers/concerns/decidim/safe_redirect.rb +1 -1
- data/app/controllers/concerns/decidim/skip_timeoutable.rb +1 -1
- data/app/controllers/concerns/decidim/use_organization_time_zone.rb +2 -2
- data/app/controllers/concerns/decidim/user_profile.rb +2 -1
- data/app/controllers/decidim/account_controller.rb +13 -8
- data/app/controllers/decidim/application_controller.rb +8 -3
- data/app/controllers/decidim/authorization_modals_controller.rb +5 -5
- data/app/controllers/decidim/components/base_controller.rb +15 -4
- data/app/controllers/decidim/devise/confirmations_controller.rb +3 -1
- data/app/controllers/decidim/devise/invitations_controller.rb +1 -1
- data/app/controllers/decidim/devise/omniauth_registrations_controller.rb +1 -1
- data/app/controllers/decidim/devise/passwords_controller.rb +1 -1
- data/app/controllers/decidim/devise/registrations_controller.rb +1 -1
- data/app/controllers/decidim/devise/sessions_controller.rb +1 -1
- data/app/controllers/decidim/devise/unlocks_controller.rb +1 -1
- data/app/controllers/decidim/doorkeeper/authorizations_controller.rb +9 -0
- data/app/controllers/decidim/download_your_data_controller.rb +3 -3
- data/app/controllers/decidim/endorsements_controller.rb +3 -3
- data/app/controllers/decidim/errors_controller.rb +8 -0
- data/app/controllers/decidim/favicon_controller.rb +56 -0
- data/app/controllers/decidim/follows_controller.rb +13 -3
- data/app/controllers/decidim/free_resource_authorization_modals_controller.rb +4 -4
- data/app/controllers/decidim/gamification/badges_controller.rb +10 -0
- data/app/controllers/decidim/group_email_confirmations_controller.rb +1 -1
- data/app/controllers/decidim/group_invites_controller.rb +2 -2
- data/app/controllers/decidim/group_members_controller.rb +23 -10
- data/app/controllers/decidim/groups_controller.rb +5 -4
- data/app/controllers/decidim/homepage_controller.rb +0 -1
- data/app/controllers/decidim/last_activities_controller.rb +14 -12
- data/app/controllers/decidim/links_controller.rb +5 -4
- data/app/controllers/decidim/locales_controller.rb +1 -1
- data/app/controllers/decidim/messaging/conversations_controller.rb +26 -8
- data/app/controllers/decidim/newsletters_opt_in_controller.rb +1 -1
- data/app/controllers/decidim/notifications_controller.rb +11 -1
- data/app/controllers/decidim/notifications_settings_controller.rb +2 -2
- data/app/controllers/decidim/offline_controller.rb +9 -0
- data/app/controllers/decidim/pages_controller.rb +15 -2
- data/app/controllers/decidim/profiles_controller.rb +31 -2
- data/app/controllers/decidim/report_users_controller.rb +5 -1
- data/app/controllers/decidim/reports_controller.rb +1 -1
- data/app/controllers/decidim/scopes_controller.rb +7 -7
- data/app/controllers/decidim/searches_controller.rb +17 -4
- data/app/controllers/decidim/tos_controller.rb +3 -3
- data/app/controllers/decidim/user_activities_controller.rb +8 -4
- data/app/controllers/decidim/user_conversations_controller.rb +4 -3
- data/app/controllers/decidim/user_group_join_requests_controller.rb +7 -7
- data/app/controllers/decidim/user_interests_controller.rb +2 -2
- data/app/events/decidim/amendable/amendment_accepted_event.rb +1 -1
- data/app/events/decidim/amendable/amendment_base_event.rb +1 -1
- data/app/events/decidim/amendable/amendment_created_event.rb +1 -1
- data/app/events/decidim/amendable/amendment_rejected_event.rb +1 -1
- data/app/events/decidim/amendable/emendation_promoted_event.rb +1 -1
- data/app/events/decidim/change_nickname_event.rb +1 -1
- data/app/events/decidim/demoted_membership_event.rb +3 -3
- data/app/events/decidim/invited_to_group_event.rb +1 -1
- data/app/events/decidim/join_request_accepted_event.rb +1 -1
- data/app/events/decidim/join_request_created_event.rb +3 -3
- data/app/events/decidim/join_request_rejected_event.rb +1 -1
- data/app/events/decidim/profile_updated_event.rb +1 -1
- data/app/events/decidim/promoted_to_admin_event.rb +3 -3
- data/app/events/decidim/removed_from_group_event.rb +3 -3
- data/app/events/decidim/resource_endorsed_event.rb +1 -1
- data/app/events/decidim/user_group_admin_event.rb +1 -1
- data/app/events/decidim/user_group_created_event.rb +1 -1
- data/app/events/decidim/user_group_updated_event.rb +1 -1
- data/app/forms/decidim/account_form.rb +13 -8
- data/app/forms/decidim/amendable/form.rb +2 -2
- data/app/forms/decidim/follow_form.rb +1 -1
- data/app/forms/decidim/invite_user_form.rb +1 -1
- data/app/forms/decidim/password_form.rb +1 -2
- data/app/forms/decidim/registration_form.rb +8 -12
- data/app/forms/decidim/report_form.rb +2 -0
- data/app/forms/decidim/user_group_form.rb +7 -7
- data/app/forms/decidim/user_interest_scope_form.rb +1 -1
- data/app/forms/decidim/user_interests_form.rb +1 -7
- data/app/helpers/concerns/decidim/flash_helper_extensions.rb +80 -12
- data/app/helpers/decidim/account_helper.rb +9 -0
- data/app/helpers/decidim/action_authorization_helper.rb +11 -11
- data/app/helpers/decidim/amendments_helper.rb +45 -27
- data/app/helpers/decidim/application_helper.rb +11 -11
- data/app/helpers/decidim/aria_selected_link_to_helper.rb +1 -1
- data/app/helpers/decidim/attachments_helper.rb +26 -3
- data/app/helpers/decidim/authorization_form_helper.rb +2 -2
- data/app/helpers/decidim/breadcrumb_helper.rb +60 -0
- data/app/helpers/decidim/cache_helper.rb +2 -2
- data/app/helpers/decidim/cells_paginate_helper.rb +1 -1
- data/app/helpers/decidim/check_boxes_tree_helper.rb +82 -17
- data/app/helpers/decidim/component_path_helper.rb +1 -1
- data/app/helpers/decidim/contextual_help_helper.rb +2 -2
- data/app/helpers/decidim/cta_button_helper.rb +5 -3
- data/app/helpers/decidim/date_range_helper.rb +19 -0
- data/app/helpers/decidim/decidim_form_helper.rb +24 -10
- data/app/helpers/decidim/endorsable_helper.rb +3 -3
- data/app/helpers/decidim/filters_helper.rb +16 -17
- data/app/helpers/decidim/followable_helper.rb +5 -2
- data/app/helpers/decidim/icon_helper.rb +20 -3
- data/app/helpers/decidim/layout_helper.rb +52 -39
- data/app/helpers/decidim/map_helper.rb +20 -46
- data/app/helpers/decidim/menu_helper.rb +47 -0
- data/app/helpers/decidim/messaging/conversation_helper.rb +34 -16
- data/app/helpers/decidim/meta_tags_helper.rb +3 -3
- data/app/helpers/decidim/modal_helper.rb +38 -0
- data/app/helpers/decidim/omniauth_helper.rb +5 -2
- data/app/helpers/decidim/orders_helper.rb +3 -3
- data/app/helpers/decidim/paginate_helper.rb +12 -1
- data/app/helpers/decidim/participatory_space_helpers.rb +4 -5
- data/app/helpers/decidim/passwords_helper.rb +19 -4
- data/app/helpers/decidim/resource_helper.rb +2 -26
- data/app/helpers/decidim/resource_reference_helper.rb +3 -3
- data/app/helpers/decidim/resource_versions_helper.rb +6 -4
- data/app/helpers/decidim/rich_text_editor_helper.rb +1 -0
- data/app/helpers/decidim/sanitize_helper.rb +8 -6
- data/app/helpers/decidim/scopes_helper.rb +23 -13
- data/app/helpers/decidim/searches_helper.rb +2 -2
- data/app/helpers/decidim/social_share_button_helper.rb +53 -0
- data/app/helpers/decidim/tooltip_helper.rb +4 -3
- data/app/helpers/decidim/traceability_helper.rb +3 -1
- data/app/helpers/decidim/twitter_search_helper.rb +1 -1
- data/app/helpers/decidim/view_hooks_helper.rb +1 -4
- data/app/jobs/decidim/email_notifications_digest_generator_job.rb +2 -2
- data/app/jobs/decidim/event_publisher_job.rb +2 -2
- data/app/jobs/decidim/export_job.rb +4 -1
- data/app/jobs/decidim/find_and_update_descendants_job.rb +1 -1
- data/app/jobs/decidim/hide_all_created_by_author_job.rb +31 -0
- data/app/jobs/decidim/machine_translation_fields_job.rb +1 -1
- data/app/jobs/decidim/machine_translation_resource_job.rb +1 -1
- data/app/jobs/decidim/machine_translation_save_job.rb +2 -2
- data/app/jobs/decidim/open_data_job.rb +1 -1
- data/app/mailers/decidim/block_user_mailer.rb +1 -1
- data/app/mailers/decidim/decidim_devise_mailer.rb +1 -1
- data/app/mailers/decidim/messaging/conversation_mailer.rb +7 -7
- data/app/mailers/decidim/notification_mailer.rb +2 -2
- data/app/mailers/decidim/reported_mailer.rb +3 -3
- data/app/mailers/decidim/user_update_mailer.rb +28 -0
- data/app/models/decidim/action_log.rb +41 -9
- data/app/models/decidim/amendment.rb +8 -11
- data/app/models/decidim/authorization.rb +14 -4
- data/app/models/decidim/authorization_transfer.rb +257 -0
- data/app/models/decidim/authorization_transfer_record.rb +31 -0
- data/app/models/decidim/coauthorship.rb +7 -0
- data/app/models/decidim/component.rb +2 -2
- data/app/models/decidim/content_block.rb +5 -5
- data/app/models/decidim/contextual_help_section.rb +3 -3
- data/app/models/decidim/follow.rb +1 -3
- data/app/models/decidim/messaging/conversation.rb +7 -7
- data/app/models/decidim/messaging/message.rb +1 -1
- data/app/models/decidim/messaging/receipt.rb +1 -1
- data/app/models/decidim/newsletter.rb +2 -2
- data/app/models/decidim/notification.rb +5 -5
- data/app/models/decidim/organization.rb +16 -10
- data/app/models/decidim/participatory_space_private_user.rb +2 -23
- data/app/models/decidim/permission_action.rb +1 -1
- data/app/models/decidim/reminder_record.rb +3 -20
- data/app/models/decidim/report.rb +1 -1
- data/app/models/decidim/share_token.rb +2 -2
- data/app/models/decidim/short_link.rb +6 -6
- data/app/models/decidim/static_page.rb +5 -5
- data/app/models/decidim/user.rb +7 -6
- data/app/models/decidim/user_base_entity.rb +16 -2
- data/app/models/decidim/user_group.rb +4 -4
- data/app/packs/entrypoints/decidim_conference_diploma.scss +3 -1
- data/app/packs/entrypoints/decidim_core.js +4 -66
- data/app/packs/entrypoints/decidim_core.scss +2 -0
- data/app/packs/entrypoints/decidim_editor.js +7 -0
- data/app/packs/entrypoints/decidim_email.js +2 -1
- data/app/packs/entrypoints/decidim_map.scss +2 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-600.eot +0 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-600.svg +337 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-600.ttf +0 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-600.woff +0 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-600.woff2 +0 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-700.eot +0 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-700.svg +337 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-700.ttf +0 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-700.woff +0 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-700.woff2 +0 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-regular.eot +0 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-regular.svg +337 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-regular.ttf +0 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-regular.woff +0 -0
- data/app/packs/fonts/decidim/source-sans-pro-v21-cyrillic_cyrillic-ext_greek_greek-ext_latin_latin-ext_vietnamese-regular.woff2 +0 -0
- data/app/packs/images/decidim/gamification/badges/decidim_gamification_badges_followers.svg +52 -1
- data/app/packs/images/decidim/placeholder-card-g.svg +8 -0
- data/app/packs/images/decidim/placeholder-card-l.svg +7 -0
- data/app/packs/images/decidim/remixicon.symbol.svg +11 -0
- data/app/packs/images/decidim/vendor/social-share-button/x.svg +2 -5
- data/app/packs/src/decidim/a11y.js +186 -0
- data/app/packs/src/decidim/account_form.js +49 -30
- data/app/packs/src/decidim/append_redirect_url_to_modals.js +1 -1
- data/app/packs/src/decidim/autocomplete.js +15 -2
- data/app/packs/src/decidim/back_to_list.js +1 -1
- data/app/packs/src/decidim/change_report_form_behavior.js +45 -0
- data/app/packs/src/decidim/check_boxes_tree.js +31 -89
- data/app/packs/src/decidim/clipboard.js +2 -2
- data/app/packs/src/decidim/confirm.js +8 -25
- data/app/packs/src/decidim/data_consent/consent_manager.js +2 -1
- data/app/packs/src/decidim/data_consent/consent_manager.test.js +8 -8
- data/app/packs/src/decidim/data_consent/index.js +7 -23
- data/app/packs/src/decidim/direct_uploads/upload_field.js +110 -96
- data/app/packs/src/decidim/direct_uploads/upload_modal.js +195 -186
- data/app/packs/src/decidim/direct_uploads/upload_utility.js +0 -40
- data/app/packs/src/decidim/direct_uploads/uploader.js +19 -45
- data/app/packs/src/decidim/editor/common/bubble_menu.js +163 -0
- data/app/packs/src/decidim/editor/common/helpers.js +3 -0
- data/app/packs/src/decidim/editor/common/input_dialog.js +156 -0
- data/app/packs/src/decidim/editor/common/suggestion.js +179 -0
- data/app/packs/src/decidim/editor/common/upload_dialog.js +225 -0
- data/app/packs/src/decidim/editor/extensions/bold/index.js +34 -0
- data/app/packs/src/decidim/editor/extensions/character_count/index.js +35 -0
- data/app/packs/src/decidim/editor/extensions/decidim_kit/index.js +84 -0
- data/app/packs/src/decidim/editor/extensions/dialog/index.js +34 -0
- data/app/packs/src/decidim/editor/extensions/emoji/index.js +16 -0
- data/app/packs/src/decidim/editor/extensions/hashtag/index.js +66 -0
- data/app/packs/src/decidim/editor/extensions/heading/index.js +33 -0
- data/app/packs/src/decidim/editor/extensions/image/index.js +215 -0
- data/app/packs/src/decidim/editor/extensions/image/node_view.js +216 -0
- data/app/packs/src/decidim/editor/extensions/indent/index.js +188 -0
- data/app/packs/src/decidim/editor/extensions/link/bubble_menu.js +50 -0
- data/app/packs/src/decidim/editor/extensions/link/index.js +128 -0
- data/app/packs/src/decidim/editor/extensions/mention/index.js +66 -0
- data/app/packs/src/decidim/editor/extensions/ordered_list/index.js +188 -0
- data/app/packs/src/decidim/editor/extensions/video_embed/index.js +242 -0
- data/app/packs/src/decidim/editor/index.js +86 -0
- data/app/packs/src/decidim/editor/test/editor/create.test.js +38 -0
- data/app/packs/src/decidim/editor/test/extensions/bold.test.js +69 -0
- data/app/packs/src/decidim/editor/test/extensions/character_count.test.js +41 -0
- data/app/packs/src/decidim/editor/test/extensions/decidim_kit.test.js +110 -0
- data/app/packs/src/decidim/editor/test/extensions/dialog.test.js +32 -0
- data/app/packs/src/decidim/editor/test/extensions/emoji.test.js +35 -0
- data/app/packs/src/decidim/editor/test/extensions/hashtag.test.js +105 -0
- data/app/packs/src/decidim/editor/test/extensions/heading.test.js +56 -0
- data/app/packs/src/decidim/editor/test/extensions/image.test.js +294 -0
- data/app/packs/src/decidim/editor/test/extensions/indent.test.js +154 -0
- data/app/packs/src/decidim/editor/test/extensions/link.test.js +103 -0
- data/app/packs/src/decidim/editor/test/extensions/mention.test.js +129 -0
- data/app/packs/src/decidim/editor/test/extensions/ordered_list.test.js +219 -0
- data/app/packs/src/decidim/editor/test/extensions/video_embed.test.js +183 -0
- data/app/packs/src/decidim/editor/test/fixtures/editor_messages.js +57 -0
- data/app/packs/src/decidim/editor/test/fixtures/logo.png +0 -0
- data/app/packs/src/decidim/editor/test/fixtures/upload_templates.js +50 -0
- data/app/packs/src/decidim/editor/test/helpers.js +255 -0
- data/app/packs/src/decidim/editor/test/toolbar/basic.test.js +36 -0
- data/app/packs/src/decidim/editor/test/toolbar/content.test.js +37 -0
- data/app/packs/src/decidim/editor/test/toolbar/full.test.js +245 -0
- data/app/packs/src/decidim/editor/test/toolbar/shared/behaves_like_basic.js +23 -0
- data/app/packs/src/decidim/editor/test/toolbar/shared/behaves_like_basic_block.js +45 -0
- data/app/packs/src/decidim/editor/test/toolbar/shared/behaves_like_basic_formatting.js +17 -0
- data/app/packs/src/decidim/editor/test/toolbar/shared/behaves_like_basic_indent.js +61 -0
- data/app/packs/src/decidim/editor/test/toolbar/shared/behaves_like_basic_link.js +33 -0
- data/app/packs/src/decidim/editor/test/toolbar/shared/behaves_like_basic_list.js +47 -0
- data/app/packs/src/decidim/editor/test/toolbar/shared/behaves_like_basic_styling.js +95 -0
- data/app/packs/src/decidim/editor/test/toolbar/shared/behaves_like_content.js +25 -0
- data/app/packs/src/decidim/editor/test/toolbar/shared/behaves_like_content_styling.js +40 -0
- data/app/packs/src/decidim/editor/test/toolbar/shared/context.js +18 -0
- data/app/packs/src/decidim/editor/test/utilities/paste_transform.test.js +272 -0
- data/app/packs/src/decidim/editor/toolbar.js +263 -0
- data/app/packs/src/decidim/editor/utilities/file.js +3 -0
- data/app/packs/src/decidim/editor/utilities/html.js +53 -0
- data/app/packs/src/decidim/editor/utilities/paste_transform.js +251 -0
- data/app/packs/src/decidim/external_domain_warning.js +16 -23
- data/app/packs/src/decidim/external_domain_warning.test.js +59 -0
- data/app/packs/src/decidim/external_link.js +24 -56
- data/app/packs/src/decidim/external_link.test.js +8 -29
- data/app/packs/src/decidim/focus_guard.js +3 -1
- data/app/packs/src/decidim/form_filter.component_for_testing.js +1 -1
- data/app/packs/src/decidim/form_filter.js +12 -53
- data/app/packs/src/decidim/form_validator.js +1 -1
- data/app/packs/src/decidim/i18n.js +52 -0
- data/app/packs/src/decidim/i18n.test.js +64 -0
- data/app/packs/src/decidim/icon.js +13 -19
- data/app/packs/src/decidim/identity_selector_dialog.js +24 -51
- data/app/packs/src/decidim/index.js +159 -63
- data/app/packs/src/decidim/input_autojump.js +1 -1
- data/app/packs/src/decidim/input_character_counter.js +34 -38
- data/app/packs/src/decidim/input_emoji.js +130 -52
- data/app/packs/src/decidim/input_hashtags.js +6 -53
- data/app/packs/src/decidim/input_mentions.js +14 -59
- data/app/packs/src/decidim/input_multiple_mentions.js +10 -10
- data/app/packs/src/decidim/input_tags.js +12 -8
- data/app/packs/src/decidim/map/controller/markers.js +3 -3
- data/app/packs/src/decidim/map/controller.js +7 -4
- data/app/packs/src/decidim/map/factory.js +1 -3
- data/app/packs/src/decidim/map/legacy.js +1 -1
- data/app/packs/src/decidim/notifications.js +42 -30
- data/app/packs/src/decidim/password_toggler.js +104 -0
- data/app/packs/src/decidim/remote_modal.js +54 -0
- data/app/packs/src/decidim/scroll_to_last_child.js +14 -0
- data/app/packs/src/decidim/session_timeouter.js +3 -4
- data/app/packs/src/decidim/sw/loader.js +1 -1
- data/app/packs/src/decidim/sw/sw.js +1 -1
- data/app/packs/src/decidim/toggle.js +37 -0
- data/app/packs/src/decidim/tooltips.js +132 -0
- data/app/packs/src/decidim/user_registrations.js +10 -3
- data/app/packs/src/decidim/vendor/jquery-tmpl.js +1 -1
- data/app/packs/src/decidim/vendor/leaflet-tilelayer-here.js +1 -1
- data/app/packs/src/decidim/vendor/tribute.js +3 -3
- data/app/packs/src/decidim/vizzs/areachart.js +7 -8
- data/app/packs/stylesheets/decidim/_accordion.scss +13 -0
- data/app/packs/stylesheets/decidim/_actions.scss +7 -0
- data/app/packs/stylesheets/decidim/_activity.scss +49 -0
- data/app/packs/stylesheets/decidim/_address.scss +25 -0
- data/app/packs/stylesheets/decidim/_author.scss +74 -0
- data/app/packs/stylesheets/decidim/_buttons.scss +100 -0
- data/app/packs/stylesheets/decidim/_callout.scss +55 -0
- data/app/packs/stylesheets/decidim/_cards.scss +186 -0
- data/app/packs/stylesheets/decidim/_content_blocks.scss +39 -0
- data/app/packs/stylesheets/decidim/_conversations.scss +122 -0
- data/app/packs/stylesheets/decidim/_cookies.scss +117 -0
- data/app/packs/stylesheets/decidim/_documents.scss +60 -0
- data/app/packs/stylesheets/decidim/_dropdown.scss +69 -0
- data/app/packs/stylesheets/decidim/_endorsers_list.scss +45 -0
- data/app/packs/stylesheets/decidim/_filters.scss +137 -0
- data/app/packs/stylesheets/decidim/_flash.scss +57 -0
- data/app/packs/stylesheets/decidim/_floating_help.scss +7 -0
- data/app/packs/stylesheets/decidim/_fonts.scss +70 -0
- data/app/packs/stylesheets/decidim/_footer.scss +59 -0
- data/app/packs/stylesheets/decidim/_forms.scss +199 -0
- data/app/packs/stylesheets/decidim/_header.scss +444 -0
- data/app/packs/stylesheets/decidim/_hero.scss +20 -0
- data/app/packs/stylesheets/decidim/_home.scss +105 -0
- data/app/packs/stylesheets/decidim/_labels.scss +26 -0
- data/app/packs/stylesheets/decidim/_layout.scss +107 -0
- data/app/packs/stylesheets/decidim/_login.scss +59 -0
- data/app/packs/stylesheets/decidim/_login_box.scss +31 -0
- data/app/packs/stylesheets/decidim/_metadata.scss +18 -0
- data/app/packs/stylesheets/decidim/_metrics.scss +70 -0
- data/app/packs/stylesheets/decidim/_modal.scss +45 -0
- data/app/packs/stylesheets/decidim/_modal_authorization.scss +21 -0
- data/app/packs/stylesheets/decidim/_modal_fingerprint.scss +17 -0
- data/app/packs/stylesheets/decidim/_modal_flag.scss +39 -0
- data/app/packs/stylesheets/decidim/_modal_identities.scss +23 -0
- data/app/packs/stylesheets/decidim/_modal_share.scss +28 -0
- data/app/packs/stylesheets/decidim/_modal_tos_refuse.scss +6 -0
- data/app/packs/stylesheets/decidim/_modal_update.scss +137 -0
- data/app/packs/stylesheets/decidim/_notifications.scss +35 -0
- data/app/packs/stylesheets/decidim/_omnipresent_banner.scss +7 -0
- data/app/packs/stylesheets/decidim/_order-by.scss +15 -0
- data/app/packs/stylesheets/decidim/_pages.scss +49 -0
- data/app/packs/stylesheets/decidim/_participatory_spaces.scss +201 -0
- data/app/packs/stylesheets/decidim/_photos.scss +53 -0
- data/app/packs/stylesheets/decidim/_profile.scss +258 -0
- data/app/packs/stylesheets/decidim/_progress-bar.scss +42 -0
- data/app/packs/stylesheets/decidim/_rich_text.scss +96 -0
- data/app/packs/stylesheets/decidim/_search.scss +17 -0
- data/app/packs/stylesheets/decidim/_spinner.scss +11 -0
- data/app/packs/stylesheets/decidim/_static-map.scss +15 -0
- data/app/packs/stylesheets/decidim/_statistics.scss +15 -0
- data/app/packs/stylesheets/decidim/_tabs_x.scss +20 -0
- data/app/packs/stylesheets/decidim/_tags.scss +11 -0
- data/app/packs/stylesheets/decidim/_toggle_switch.scss +77 -0
- data/app/packs/stylesheets/decidim/_tooltip.scss +69 -0
- data/app/packs/stylesheets/decidim/_tos.scss +7 -0
- data/app/packs/stylesheets/decidim/_typography.scss +80 -0
- data/app/packs/stylesheets/decidim/_versions.scss +63 -0
- data/app/packs/stylesheets/decidim/_vertical_tabs.scss +49 -0
- data/app/packs/stylesheets/decidim/_wizard_steps.scss +15 -0
- data/app/packs/stylesheets/decidim/application.scss +77 -3
- data/app/packs/stylesheets/decidim/decidim_application.scss +0 -2
- data/app/packs/stylesheets/decidim/editor.scss +204 -0
- data/app/packs/stylesheets/decidim/legacy/MarkerCluster.Default.scss +67 -0
- data/app/packs/stylesheets/decidim/legacy/MarkerCluster.scss +18 -0
- data/app/packs/stylesheets/decidim/{_variables.scss → legacy/_variables.scss} +7 -7
- data/app/packs/stylesheets/decidim/{conference-diploma.scss → legacy/conference-diploma.scss} +11 -11
- data/app/packs/stylesheets/decidim/{email.scss → legacy/email.scss} +312 -312
- data/app/packs/stylesheets/decidim/{plugins → legacy}/leaflet.scss +164 -140
- data/app/packs/stylesheets/decidim/map.scss +65 -3
- data/app/permissions/decidim/permissions.rb +2 -2
- data/app/presenters/decidim/admin_log/area_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/area_type_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/attachment_collection_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/attachment_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/category_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/component_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/contextual_help_section_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/impersonation_log_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/moderation_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/newsletter_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/oauth_application_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/organization_presenter.rb +2 -3
- data/app/presenters/decidim/admin_log/participatory_space_private_user_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/scope_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/scope_type_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/static_page_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/user_group_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/user_moderation_presenter.rb +2 -2
- data/app/presenters/decidim/admin_log/user_presenter.rb +2 -2
- data/app/presenters/decidim/area_presenter.rb +6 -0
- data/app/presenters/decidim/authorization_transfer_presenter.rb +57 -0
- data/app/presenters/decidim/breadcrumb_root_menu_item_presenter.rb +25 -0
- data/app/presenters/decidim/breadcrumb_root_menu_presenter.rb +18 -0
- data/app/presenters/decidim/footer_menu_presenter.rb +12 -0
- data/app/presenters/decidim/hashtag_presenter.rb +1 -1
- data/app/presenters/decidim/log/base_presenter.rb +13 -6
- data/app/presenters/decidim/log/diff_presenter.rb +9 -8
- data/app/presenters/decidim/log/resource_presenter.rb +1 -1
- data/app/presenters/decidim/log/space_presenter.rb +1 -1
- data/app/presenters/decidim/log/user_presenter.rb +3 -7
- data/app/presenters/decidim/log/value_types/default_presenter.rb +2 -2
- data/app/presenters/decidim/menu_item_presenter.rb +11 -3
- data/app/presenters/decidim/menu_presenter.rb +11 -3
- data/app/presenters/decidim/metric_charts_presenter.rb +25 -46
- data/app/presenters/decidim/nil_presenter.rb +4 -2
- data/app/presenters/decidim/notification_presenter.rb +1 -1
- data/app/presenters/decidim/notification_to_mailer_presenter.rb +5 -5
- data/app/presenters/decidim/notifications_digest_presenter.rb +1 -1
- data/app/presenters/decidim/official_author_presenter.rb +4 -0
- data/app/presenters/decidim/participatory_space_manifest_presenter.rb +24 -0
- data/app/presenters/decidim/resource_presenter.rb +18 -1
- data/app/presenters/decidim/stats_presenter.rb +54 -0
- data/app/presenters/decidim/user_group_presenter.rb +4 -0
- data/app/presenters/decidim/user_presenter.rb +4 -2
- data/app/queries/decidim/last_activity.rb +1 -1
- data/app/queries/decidim/metric_manage.rb +1 -1
- data/app/queries/decidim/participatory_processes_with_user_role.rb +2 -2
- data/app/queries/decidim/participatory_space_last_activity.rb +18 -0
- data/app/queries/decidim/public_activities.rb +1 -1
- data/app/queries/decidim/public_components.rb +2 -2
- data/app/queries/decidim/similar_emendations.rb +1 -1
- data/app/resolvers/decidim/core/metric_resolver.rb +1 -1
- data/app/scrubbers/decidim/admin_input_scrubber.rb +1 -1
- data/app/scrubbers/decidim/newsletter_scrubber.rb +1 -1
- data/app/serializers/decidim/exporters/serializer.rb +2 -2
- data/app/services/decidim/action_authorizer.rb +3 -3
- data/app/services/decidim/action_logger.rb +11 -11
- data/app/services/decidim/base_diff_renderer.rb +5 -5
- data/app/services/decidim/content_blocks_creator.rb +89 -0
- data/app/services/decidim/email_notification_generator.rb +3 -3
- data/app/services/decidim/engine_resolver.rb +2 -2
- data/app/services/decidim/events_manager.rb +6 -6
- data/app/services/decidim/log/diff_changeset_calculator.rb +2 -2
- data/app/services/decidim/log_reference_generator.rb +31 -0
- data/app/services/decidim/notification_generator.rb +3 -3
- data/app/services/decidim/notification_generator_for_recipient.rb +2 -2
- data/app/services/decidim/open_data_exporter.rb +3 -3
- data/app/services/decidim/send_push_notification.rb +5 -5
- data/app/services/decidim/static_map_generator.rb +4 -4
- data/app/uploaders/decidim/application_uploader.rb +1 -1
- data/app/uploaders/decidim/avatar_uploader.rb +2 -2
- data/app/uploaders/decidim/cw/application_uploader.rb +1 -1
- data/app/uploaders/decidim/image_uploader.rb +1 -1
- data/app/uploaders/decidim/organization_favicon_uploader.rb +15 -2
- data/app/validators/etiquette_validator.rb +1 -1
- data/app/validators/geocoding_validator.rb +1 -1
- data/app/validators/password_validator.rb +16 -12
- data/app/validators/uploader_image_dimensions_validator.rb +3 -3
- data/app/views/decidim/account/_account_notification.js.erb +4 -18
- data/app/views/decidim/account/_delete_modal.html.erb +17 -0
- data/app/views/decidim/account/_old_password_field.html.erb +15 -0
- data/app/views/decidim/account/_password_fields.html.erb +13 -2
- data/app/views/decidim/account/cancel_email_change.js.erb +1 -1
- data/app/views/decidim/account/delete.html.erb +23 -30
- data/app/views/decidim/account/show.html.erb +48 -33
- data/app/views/decidim/amendments/_edit_form_fields.html.erb +1 -3
- data/app/views/decidim/amendments/_wizard_header.html.erb +17 -0
- data/app/views/decidim/amendments/compare_draft.html.erb +14 -17
- data/app/views/decidim/amendments/edit_draft.html.erb +23 -25
- data/app/views/decidim/amendments/new.html.erb +21 -24
- data/app/views/decidim/amendments/preview_draft.html.erb +24 -25
- data/app/views/decidim/amendments/review.html.erb +26 -37
- data/app/views/decidim/application/_collection.html.erb +18 -15
- data/app/views/decidim/application/_document.html.erb +23 -0
- data/app/views/decidim/application/_documents.html.erb +13 -0
- data/app/views/decidim/authorization_modals/show.html.erb +1 -5
- data/app/views/decidim/devise/confirmations/new.html.erb +19 -25
- data/app/views/decidim/devise/invitations/edit.html.erb +42 -69
- data/app/views/decidim/devise/omniauth_registrations/new.html.erb +34 -45
- data/app/views/decidim/devise/passwords/edit.html.erb +23 -32
- data/app/views/decidim/devise/passwords/new.html.erb +20 -24
- data/app/views/decidim/devise/registrations/new.html.erb +59 -83
- data/app/views/decidim/devise/sessions/new.html.erb +52 -53
- data/app/views/decidim/devise/shared/_links.html.erb +5 -15
- data/app/views/decidim/devise/shared/_login_boxes.html.erb +28 -0
- data/app/views/decidim/devise/shared/_newsletter_modal.html.erb +15 -23
- data/app/views/decidim/devise/shared/_omniauth_buttons.html.erb +13 -19
- data/app/views/decidim/devise/unlocks/new.html.erb +20 -26
- data/app/views/decidim/doorkeeper/authorizations/new.html.erb +53 -57
- data/app/views/decidim/download_your_data/show.html.erb +15 -7
- data/app/views/decidim/endorsements/_identity.html.erb +4 -9
- data/app/views/decidim/endorsements/identities.html.erb +16 -10
- data/app/views/decidim/endorsements/update_buttons_and_counters.js.erb +24 -17
- data/app/views/decidim/errors/internal_server_error.html.erb +32 -8
- data/app/views/decidim/errors/not_found.html.erb +15 -11
- data/app/views/decidim/follows/update_button.js.erb +8 -1
- data/app/views/decidim/gamification/badges/index.html.erb +5 -7
- data/app/views/decidim/group_invites/index.html.erb +20 -24
- data/app/views/decidim/groups/_form.html.erb +15 -24
- data/app/views/decidim/groups/edit.html.erb +13 -22
- data/app/views/decidim/groups/new.html.erb +16 -24
- data/app/views/decidim/homepage/show.html.erb +6 -4
- data/app/views/decidim/last_activities/_activities.html.erb +4 -11
- data/app/views/decidim/last_activities/index.html.erb +8 -13
- data/app/views/decidim/last_activities/index.js.erb +7 -2
- data/app/views/decidim/links/_modal.html.erb +18 -19
- data/app/views/decidim/links/new.html.erb +17 -21
- data/app/views/decidim/links/new.js.erb +22 -6
- data/app/views/decidim/manifests/show.json.erb +2 -2
- data/app/views/decidim/messaging/conversations/_add_conversation_users.html.erb +18 -22
- data/app/views/decidim/messaging/conversations/_conversation.html.erb +39 -53
- data/app/views/decidim/messaging/conversations/_messages.html.erb +15 -19
- data/app/views/decidim/messaging/conversations/_new_conversation_button.html.erb +20 -32
- data/app/views/decidim/messaging/conversations/_reply.html.erb +7 -10
- data/app/views/decidim/messaging/conversations/_reply_form.html.erb +9 -0
- data/app/views/decidim/messaging/conversations/_show.html.erb +29 -35
- data/app/views/decidim/messaging/conversations/_start.html.erb +9 -14
- data/app/views/decidim/messaging/conversations/create.js.erb +1 -1
- data/app/views/decidim/messaging/conversations/error.js.erb +1 -1
- data/app/views/decidim/messaging/conversations/index.html.erb +17 -51
- data/app/views/decidim/messaging/conversations/new.html.erb +1 -2
- data/app/views/decidim/messaging/conversations/show.html.erb +3 -9
- data/app/views/decidim/newsletters/show.html.erb +1 -1
- data/app/views/decidim/newsletters_opt_in_mailer/notify.html.erb +1 -1
- data/app/views/decidim/notifications/index.html.erb +15 -4
- data/app/views/decidim/notifications_digest_mailer/digest_mail.erb +2 -2
- data/app/views/decidim/notifications_settings/show.html.erb +169 -70
- data/app/views/decidim/own_user_groups/index.html.erb +9 -29
- data/app/views/decidim/pages/_standalone.html.erb +17 -15
- data/app/views/decidim/pages/_tabbed.html.erb +38 -38
- data/app/views/decidim/pages/index.html.erb +48 -64
- data/app/views/decidim/pages/show.html.erb +9 -9
- data/app/views/decidim/profiles/show.html.erb +9 -1
- data/app/views/decidim/reported_mailer/report.html.erb +1 -1
- data/app/views/decidim/scopes/_scopes_picker_input.html.erb +1 -1
- data/app/views/decidim/scopes/picker.html.erb +7 -4
- data/app/views/decidim/searches/_count.html.erb +19 -28
- data/app/views/decidim/searches/_filters.html.erb +41 -27
- data/app/views/decidim/searches/_resources_filter_block.html.erb +3 -3
- data/app/views/decidim/searches/index.html.erb +18 -12
- data/app/views/decidim/searches/index.js.erb +1 -7
- data/app/views/decidim/shared/_authorization_modal.html.erb +1 -1
- data/app/views/decidim/shared/_component_announcement.html.erb +5 -4
- data/app/views/decidim/shared/_confirm_modal.html.erb +15 -16
- data/app/views/decidim/shared/_extended_navigation_bar.html.erb +2 -2
- data/app/views/decidim/shared/_filters.html.erb +42 -0
- data/app/views/decidim/shared/_floating_help.html.erb +13 -27
- data/app/views/decidim/shared/_follow_button.html.erb +2 -1
- data/app/views/decidim/shared/_login_modal.html.erb +46 -50
- data/app/views/decidim/shared/_orders.html.erb +12 -26
- data/app/views/decidim/shared/_results_per_page.html.erb +24 -26
- data/app/views/decidim/shared/_share_modal.html.erb +21 -44
- data/app/views/decidim/shared/_static_map.html.erb +4 -17
- data/app/views/decidim/shared/_tags.html.erb +1 -1
- data/app/views/decidim/shared/filters/_check_boxes_tree.html.erb +12 -0
- data/app/views/decidim/shared/filters/_collection.html.erb +18 -0
- data/app/views/decidim/shared/filters/_dropdown_label.html.erb +46 -0
- data/app/views/decidim/user_activities/index.html.erb +15 -7
- data/app/views/decidim/user_activities/index.js.erb +1 -3
- data/app/views/decidim/user_conversations/index.html.erb +3 -3
- data/app/views/decidim/user_conversations/show.html.erb +3 -3
- data/app/views/decidim/user_interests/_scopes.html.erb +21 -16
- data/app/views/decidim/user_interests/show.html.erb +20 -13
- data/app/views/decidim/user_update_mailer/notify.html.erb +9 -0
- data/app/views/kaminari/decidim/_gap.html.erb +1 -1
- data/app/views/kaminari/decidim/_next_page.html.erb +8 -7
- data/app/views/kaminari/decidim/_page.html.erb +2 -2
- data/app/views/kaminari/decidim/_paginator.html.erb +3 -3
- data/app/views/kaminari/decidim/_prev_page.html.erb +8 -7
- data/app/views/layouts/decidim/_admin_links.html.erb +11 -2
- data/app/views/layouts/decidim/_application.html.erb +6 -1
- data/app/views/layouts/decidim/_cors.html.erb +8 -4
- data/app/views/layouts/decidim/_data_consent_warning.html.erb +2 -2
- data/app/views/layouts/decidim/_decidim_javascript.html.erb +6 -3
- data/app/views/layouts/decidim/_head.html.erb +7 -3
- data/app/views/layouts/decidim/_impersonation_warning.html.erb +7 -5
- data/app/views/layouts/decidim/_js_configuration.html.erb +7 -7
- data/app/views/layouts/decidim/_meta_tags_config.html.erb +6 -6
- data/app/views/layouts/decidim/_offline_banner.html.erb +3 -3
- data/app/views/layouts/decidim/_omnipresent_banner.html.erb +10 -12
- data/app/views/layouts/decidim/_organization_colors.html.erb +2 -3
- data/app/views/layouts/decidim/_timeout_modal.html.erb +26 -18
- data/app/views/layouts/decidim/_user_menu.html.erb +1 -1
- data/app/views/layouts/decidim/_wrapper.html.erb +19 -102
- data/app/views/layouts/decidim/footer/_main.html.erb +20 -0
- data/app/views/layouts/decidim/footer/_main_intro.html.erb +9 -0
- data/app/views/layouts/decidim/footer/_main_language_chooser.html.erb +26 -0
- data/app/views/layouts/decidim/footer/_main_legal.html.erb +9 -0
- data/app/views/layouts/decidim/footer/_main_links.html.erb +27 -0
- data/app/views/layouts/decidim/footer/_main_social_media_links.html.erb +42 -0
- data/app/views/layouts/decidim/footer/_mini.html.erb +18 -0
- data/app/views/layouts/decidim/header/_follow_space_menu_bar_button.html.erb +7 -0
- data/app/views/layouts/decidim/header/_main.html.erb +35 -0
- data/app/views/layouts/decidim/header/_main_links_desktop.html.erb +54 -0
- data/app/views/layouts/decidim/header/_main_links_dropdown.html.erb +45 -0
- data/app/views/layouts/decidim/header/_main_links_mobile.html.erb +36 -0
- data/app/views/layouts/decidim/header/_main_links_mobile_account.html.erb +32 -0
- data/app/views/layouts/decidim/header/_main_links_mobile_search.html.erb +34 -0
- data/app/views/layouts/decidim/header/_main_search.html.erb +15 -0
- data/app/views/layouts/decidim/header/_menu.html.erb +20 -0
- data/app/views/layouts/decidim/header/_menu_breadcrumb_desktop.html.erb +14 -0
- data/app/views/layouts/decidim/header/_menu_breadcrumb_items.html.erb +30 -0
- data/app/views/layouts/decidim/header/_menu_breadcrumb_main_dropdown.html.erb +16 -0
- data/app/views/layouts/decidim/header/_menu_breadcrumb_main_dropdown_top_left.html.erb +2 -0
- data/app/views/layouts/decidim/header/_menu_breadcrumb_mobile_tablet.html.erb +33 -0
- data/app/views/layouts/decidim/mailer.html.erb +16 -12
- data/app/views/layouts/decidim/newsletter_base.html.erb +2 -2
- data/app/views/layouts/decidim/shared/_layout_center.html.erb +15 -0
- data/app/views/layouts/decidim/shared/_layout_item.html.erb +35 -0
- data/app/views/layouts/decidim/shared/_layout_two_col.html.erb +12 -0
- data/app/views/layouts/decidim/shared/_layout_user_profile.html.erb +27 -0
- data/app/views/layouts/decidim/shared/_linked_resource.html.erb +6 -0
- data/app/views/layouts/decidim/user_profile.html.erb +1 -32
- data/config/assets.rb +1 -0
- data/config/brakeman.ignore +4 -116
- data/config/initializers/devise.rb +10 -10
- data/config/locales/ar.yml +95 -329
- data/config/locales/bg.yml +1 -264
- data/config/locales/ca.yml +410 -263
- data/config/locales/cs.yml +416 -271
- data/config/locales/de.yml +411 -262
- data/config/locales/el.yml +104 -262
- data/config/locales/en.yml +440 -293
- data/config/locales/eo.yml +0 -15
- data/config/locales/es-MX.yml +413 -267
- data/config/locales/es-PY.yml +416 -270
- data/config/locales/es.yml +402 -255
- data/config/locales/eu.yml +420 -280
- data/config/locales/fi-plain.yml +388 -243
- data/config/locales/fi.yml +389 -244
- data/config/locales/fr-CA.yml +408 -256
- data/config/locales/fr.yml +412 -260
- data/config/locales/ga-IE.yml +1 -58
- data/config/locales/gl.yml +1 -238
- data/config/locales/hu.yml +130 -283
- data/config/locales/id-ID.yml +0 -222
- data/config/locales/is-IS.yml +0 -75
- data/config/locales/it.yml +1 -312
- data/config/locales/ja.yml +400 -265
- data/config/locales/kaa.yml +4 -5
- data/config/locales/lb.yml +1 -303
- data/config/locales/lt.yml +355 -259
- data/config/locales/lv.yml +1 -270
- data/config/locales/nl.yml +5 -308
- data/config/locales/no.yml +2 -317
- data/config/locales/pl.yml +1 -319
- data/config/locales/pt-BR.yml +33 -457
- data/config/locales/pt.yml +1 -303
- data/config/locales/ro-RO.yml +43 -306
- data/config/locales/ru.yml +0 -141
- data/config/locales/sk.yml +1 -239
- data/config/locales/sl.yml +1 -5
- data/config/locales/sr-CS.yml +0 -20
- data/config/locales/sv.yml +159 -312
- data/config/locales/tr-TR.yml +36 -298
- data/config/locales/uk.yml +0 -113
- data/config/locales/zh-CN.yml +1 -280
- data/config/locales/zh-TW.yml +161 -210
- data/config/routes.rb +6 -5
- data/db/migrate/20180508111640_add_tos_version_to_organization.rb +2 -2
- data/db/migrate/20180730071851_add_core_content_blocks.rb +1 -1
- data/db/migrate/20180810092428_move_organization_fields_to_hero_content_block.rb +1 -1
- data/db/migrate/20181001124950_move_users_groups_to_users_table.rb +1 -1
- data/db/migrate/20181022090732_add_columns_to_pages.rb +1 -1
- data/db/migrate/20190412131728_fix_user_names.rb +1 -1
- data/db/migrate/20201128130723_add_allow_public_access_to_static_pages.rb +1 -1
- data/db/migrate/20220629194812_create_decidim_authorization_transfers.rb +20 -0
- data/db/migrate/20230322101707_rename_terms_of_use.rb +23 -0
- data/db/migrate/20230409123300_add_content_policy_to_decidim_organizations.rb +7 -0
- data/db/migrate/20230427105700_change_states_on_amendments.rb +34 -0
- data/db/migrate/20230427105701_change_states_on_reminder_records.rb +33 -0
- data/db/migrate/20231123111229_remove_official_img_header.rb +11 -0
- data/db/seeds/Exampledocument.pdf +0 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/db/seeds/logo.png +0 -0
- data/db/seeds.rb +2 -223
- data/lib/decidim/acts_as_tree.rb +1 -1
- data/lib/decidim/amendable.rb +2 -2
- data/lib/decidim/api/functions/component_finder_base.rb +1 -1
- data/lib/decidim/api/functions/component_list.rb +1 -1
- data/lib/decidim/api/functions/component_list_base.rb +1 -1
- data/lib/decidim/api/functions/needs_api_default_order.rb +1 -1
- data/lib/decidim/api/functions/participatory_space_list_base.rb +10 -1
- data/lib/decidim/api/input_filters/category_input_filter.rb +1 -1
- data/lib/decidim/api/interfaces/categories_container_interface.rb +1 -1
- data/lib/decidim/api/interfaces/participatory_space_interface.rb +7 -1
- data/lib/decidim/api/types/attachment_type.rb +3 -1
- data/lib/decidim/api/types/participatory_space_manifest_type.rb +19 -0
- data/lib/decidim/api/types/quantifiable_translated_field_type.rb +12 -0
- data/lib/decidim/api/types/translated_field_type.rb +1 -1
- data/lib/decidim/asset_router/pipeline.rb +1 -1
- data/lib/decidim/asset_router/storage.rb +20 -1
- data/lib/decidim/assets/tailwind/instance.rb +57 -0
- data/lib/decidim/assets/tailwind/tailwind.config.js.erb +80 -0
- data/lib/decidim/assets/tailwind.rb +16 -0
- data/lib/decidim/assets.rb +7 -0
- data/lib/decidim/attribute_object/nested_validator.rb +1 -1
- data/lib/decidim/attribute_object/type_resolver.rb +4 -4
- data/lib/decidim/authorable.rb +2 -2
- data/lib/decidim/block_registry.rb +46 -0
- data/lib/decidim/carrier_wave_migrator_service.rb +28 -36
- data/lib/decidim/coauthorable.rb +4 -4
- data/lib/decidim/command.rb +23 -4
- data/lib/decidim/component_manifest.rb +7 -4
- data/lib/decidim/components/namer.rb +1 -1
- data/lib/decidim/content_block_manifest.rb +2 -1
- data/lib/decidim/content_block_registry.rb +5 -4
- data/lib/decidim/content_blocks/has_related_components.rb +51 -0
- data/lib/decidim/content_blocks.rb +7 -0
- data/lib/decidim/content_parsers/base_parser.rb +2 -0
- data/lib/decidim/content_parsers/hashtag_parser.rb +17 -17
- data/lib/decidim/content_parsers/inline_images_parser.rb +3 -3
- data/lib/decidim/content_parsers/resource_parser.rb +2 -2
- data/lib/decidim/content_parsers/tag_parser.rb +63 -0
- data/lib/decidim/content_parsers/user_group_parser.rb +4 -29
- data/lib/decidim/content_parsers/user_parser.rb +29 -20
- data/lib/decidim/content_parsers.rb +1 -0
- data/lib/decidim/content_processor.rb +26 -1
- data/lib/decidim/content_renderers/base_renderer.rb +2 -0
- data/lib/decidim/content_renderers/hashtag_renderer.rb +6 -3
- data/lib/decidim/content_renderers/link_renderer.rb +15 -5
- data/lib/decidim/content_renderers/user_group_renderer.rb +8 -9
- data/lib/decidim/content_renderers/user_renderer.rb +33 -5
- data/lib/decidim/content_security_policy.rb +132 -0
- data/lib/decidim/core/api.rb +2 -0
- data/lib/decidim/core/content_blocks/registry_manager.rb +188 -0
- data/lib/decidim/core/engine.rb +321 -199
- data/lib/decidim/core/menu.rb +68 -0
- data/lib/decidim/core/seeds.rb +247 -0
- data/lib/decidim/core/test/factories.rb +69 -32
- data/lib/decidim/core/test/shared_examples/active_support_examples.rb +14 -0
- data/lib/decidim/core/test/shared_examples/admin_log_presenter_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/amendable/amendment_event_examples.rb +20 -0
- data/lib/decidim/core/test/shared_examples/amendable/amendment_form_examples.rb +4 -4
- data/lib/decidim/core/test/shared_examples/amendable/amendment_rejected_event_examples.rb +6 -25
- data/lib/decidim/core/test/shared_examples/amendable/create_amendment_draft_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/announcements_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/assembly_announcements_examples.rb +8 -4
- data/lib/decidim/core/test/shared_examples/authorable.rb +2 -2
- data/lib/decidim/core/test/shared_examples/authorable_interface_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/authorization_shared_context.rb +34 -0
- data/lib/decidim/core/test/shared_examples/categorizable_interface_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/coauthorable.rb +2 -2
- data/lib/decidim/core/test/shared_examples/coauthorable_interface_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/comments_examples.rb +224 -151
- data/lib/decidim/core/test/shared_examples/comments_reports_examples.rb +11 -21
- data/lib/decidim/core/test/shared_examples/controller_render_views.rb +2 -2
- data/lib/decidim/core/test/shared_examples/conversations_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/counts_commentators_as_newsletter_participants.rb +1 -1
- data/lib/decidim/core/test/shared_examples/digest_mail_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/edit_link_shared_examples.rb +8 -8
- data/lib/decidim/core/test/shared_examples/editor_shared_examples.rb +13 -2
- data/lib/decidim/core/test/shared_examples/endorsable.rb +5 -5
- data/lib/decidim/core/test/shared_examples/endorsements_controller_shared_context.rb +1 -1
- data/lib/decidim/core/test/shared_examples/errors.rb +1 -1
- data/lib/decidim/core/test/shared_examples/fingerprint_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/follows_examples.rb +10 -7
- data/lib/decidim/core/test/shared_examples/form_builder_examples.rb +15 -0
- data/lib/decidim/core/test/shared_examples/has_attachment_collections.rb +15 -21
- data/lib/decidim/core/test/shared_examples/has_attachments.rb +59 -12
- data/lib/decidim/core/test/shared_examples/has_contextual_help.rb +11 -5
- data/lib/decidim/core/test/shared_examples/has_private_users.rb +1 -1
- data/lib/decidim/core/test/shared_examples/has_space_in_mcell_examples.rb +0 -1
- data/lib/decidim/core/test/shared_examples/hideable_resource_examples.rb +43 -0
- data/lib/decidim/core/test/shared_examples/localised_email.rb +2 -2
- data/lib/decidim/core/test/shared_examples/map_examples.rb +21 -15
- data/lib/decidim/core/test/shared_examples/paginated_resource_examples.rb +7 -7
- data/lib/decidim/core/test/shared_examples/participatory_space_dropdown_metadata_cell_examples.rb +99 -0
- data/lib/decidim/core/test/shared_examples/permissions.rb +8 -8
- 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 +12 -6
- data/lib/decidim/core/test/shared_examples/reportable.rb +4 -4
- data/lib/decidim/core/test/shared_examples/reports_examples.rb +114 -31
- data/lib/decidim/core/test/shared_examples/resource_endorsed_event_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/resource_search_examples.rb +17 -17
- data/lib/decidim/core/test/shared_examples/scopable_interface_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/scopable_resource_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/scope_helper_examples.rb +6 -6
- data/lib/decidim/core/test/shared_examples/searchable_participatory_space_examples.rb +9 -9
- data/lib/decidim/core/test/shared_examples/searchable_resources_shared_context.rb +2 -2
- data/lib/decidim/core/test/shared_examples/searchable_results_examples.rb +22 -21
- data/lib/decidim/core/test/shared_examples/share_link_examples.rb +8 -15
- data/lib/decidim/core/test/shared_examples/simple_event.rb +35 -6
- data/lib/decidim/core/test/shared_examples/static_pages_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/statistics_cell_examples.rb +13 -0
- data/lib/decidim/core/test/shared_examples/system_endorse_resource_examples.rb +24 -36
- data/lib/decidim/core/test/shared_examples/translated_event_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/with_endorsable_permissions_examples.rb +1 -1
- data/lib/decidim/core/test.rb +5 -4
- data/lib/decidim/core/version.rb +1 -1
- data/lib/decidim/core.rb +112 -28
- data/lib/decidim/dependency_resolver.rb +4 -4
- data/lib/decidim/download_your_data_serializers/download_your_data_conversation_serializer.rb +1 -1
- data/lib/decidim/endorsable.rb +1 -1
- data/lib/decidim/event_recorder.rb +1 -1
- data/lib/decidim/events/email_event.rb +4 -4
- data/lib/decidim/events/machine_translated_event.rb +1 -1
- data/lib/decidim/events/notification_event.rb +2 -2
- data/lib/decidim/events/simple_event.rb +8 -8
- data/lib/decidim/exporters/csv.rb +1 -1
- data/lib/decidim/exporters/pdf.rb +5 -5
- data/lib/decidim/faker/localized.rb +1 -1
- data/lib/decidim/filter_form_builder.rb +43 -76
- data/lib/decidim/fingerprintable.rb +1 -1
- data/lib/decidim/form_builder.rb +131 -87
- data/lib/decidim/gamification/badge.rb +4 -4
- data/lib/decidim/gamification/badge_earned_event.rb +1 -1
- data/lib/decidim/gamification/badge_registry.rb +3 -3
- data/lib/decidim/gamification/badge_scorer.rb +6 -6
- data/lib/decidim/gamification.rb +3 -3
- data/lib/decidim/geocodable.rb +3 -3
- data/lib/decidim/has_reference.rb +1 -1
- data/lib/decidim/icon_registry.rb +54 -0
- data/lib/decidim/importers/import_manifest.rb +3 -3
- data/lib/decidim/map/autocomplete.rb +1 -10
- data/lib/decidim/map/dynamic_map.rb +6 -9
- data/lib/decidim/map/frontend.rb +2 -12
- data/lib/decidim/map/provider/autocomplete/here.rb +3 -3
- data/lib/decidim/map/provider/autocomplete/osm.rb +3 -3
- data/lib/decidim/map/provider/dynamic_map/here.rb +5 -4
- data/lib/decidim/map/provider/static_map/here.rb +3 -3
- data/lib/decidim/map/provider/static_map/osm.rb +3 -3
- data/lib/decidim/map/static_map.rb +19 -16
- data/lib/decidim/menu.rb +2 -0
- data/lib/decidim/menu_registry.rb +2 -2
- data/lib/decidim/metric_manifest.rb +1 -1
- data/lib/decidim/metric_operation.rb +3 -3
- data/lib/decidim/metric_registry.rb +3 -3
- data/lib/decidim/middleware/current_organization.rb +1 -1
- data/lib/decidim/middleware/static_dispatcher.rb +31 -0
- data/lib/decidim/moderation_tools.rb +91 -0
- data/lib/decidim/nicknamizable.rb +2 -2
- data/lib/decidim/organization_settings.rb +5 -6
- data/lib/decidim/paddable.rb +1 -1
- data/lib/decidim/participable.rb +1 -1
- data/lib/decidim/participatory_space_manifest.rb +15 -7
- data/lib/decidim/participatory_space_resourceable.rb +2 -2
- data/lib/decidim/participatory_space_user.rb +50 -0
- data/lib/decidim/processes_file_locally.rb +1 -1
- data/lib/decidim/publicable.rb +1 -3
- data/lib/decidim/query.rb +2 -2
- data/lib/decidim/query_extensions.rb +7 -7
- data/lib/decidim/reminder_manifest.rb +3 -3
- data/lib/decidim/reminder_registry.rb +2 -2
- data/lib/decidim/reportable.rb +15 -1
- data/lib/decidim/resource_manifest.rb +6 -3
- data/lib/decidim/resourceable.rb +5 -5
- data/lib/decidim/scopable.rb +1 -1
- data/lib/decidim/searchable.rb +18 -5
- data/lib/decidim/seeds.rb +95 -0
- data/lib/decidim/settings_manifest.rb +9 -2
- data/lib/decidim/social_share_service_manifest.rb +77 -0
- data/lib/decidim/stats_registry.rb +2 -2
- data/lib/decidim/translatable_attributes.rb +2 -2
- data/lib/decidim/translatable_resource.rb +3 -3
- data/lib/decidim/upgrade/wysiwyg_migrator.rb +429 -0
- data/lib/decidim/upgrade.rb +7 -0
- data/lib/decidim/user_reportable.rb +1 -1
- data/lib/decidim/view_hooks.rb +2 -2
- data/lib/decidim/view_model.rb +28 -3
- data/lib/decidim/webpacker/configuration.rb +4 -3
- data/lib/decidim/webpacker/postcss.config.js +4 -2
- data/lib/decidim/webpacker/runner.rb +6 -1
- data/lib/decidim/webpacker/{webpacker.yml → shakapacker.yml} +26 -2
- data/lib/decidim/webpacker/webpack/custom.js +25 -9
- data/lib/decidim/webpacker/webpack/webpack.config.js +10 -0
- data/lib/decidim/webpacker.rb +1 -1
- data/lib/devise/models/decidim_validatable.rb +4 -5
- data/lib/gem_overrides/{webpacker → shakapacker}/runner.rb +2 -2
- data/lib/tasks/decidim_active_storage_migration_tasks.rake +18 -13
- data/lib/tasks/decidim_content_blocks_tasks.rake +48 -0
- data/lib/tasks/decidim_mailers_tasks.rake +1 -1
- data/lib/tasks/decidim_procfile.rake +36 -0
- data/lib/tasks/decidim_pwa_tasks.rake +2 -2
- data/lib/tasks/decidim_robots.rake +15 -0
- data/lib/tasks/decidim_tasks.rake +9 -1
- data/lib/tasks/decidim_webpacker_tasks.rake +49 -11
- data/lib/tasks/upgrade/decidim_migrate_wysiwyg_content.rake +89 -0
- metadata +502 -337
- data/app/cells/decidim/address/details.erb +0 -7
- data/app/cells/decidim/amendable/amenders_list_cell.rb +0 -33
- data/app/cells/decidim/author/profile.erb +0 -9
- data/app/cells/decidim/author/profile_inline.erb +0 -39
- data/app/cells/decidim/card_m/badge.erb +0 -1
- data/app/cells/decidim/card_m/comments_counter.erb +0 -3
- data/app/cells/decidim/card_m/header.erb +0 -17
- data/app/cells/decidim/card_m/image.erb +0 -5
- data/app/cells/decidim/card_m/label.erb +0 -3
- data/app/cells/decidim/card_m/show.erb +0 -23
- data/app/cells/decidim/card_m/status.erb +0 -9
- data/app/cells/decidim/card_m/tags.erb +0 -0
- data/app/cells/decidim/card_m/top.erb +0 -7
- data/app/cells/decidim/card_m_cell.rb +0 -156
- data/app/cells/decidim/collapsible_list/show.erb +0 -28
- data/app/cells/decidim/collapsible_list_cell.rb +0 -69
- data/app/cells/decidim/content_blocks/highlighted_elements/elements.erb +0 -0
- data/app/cells/decidim/content_blocks/highlighted_elements/heading.erb +0 -0
- data/app/cells/decidim/content_blocks/highlighted_elements/show.erb +0 -4
- data/app/cells/decidim/content_blocks/metrics/show.erb +0 -13
- data/app/cells/decidim/content_blocks/metrics_cell.rb +0 -11
- data/app/cells/decidim/fingerprint/show.erb +0 -22
- data/app/cells/decidim/fingerprint_cell.rb +0 -19
- data/app/cells/decidim/profile/user_group_tabs.erb +0 -10
- data/app/cells/decidim/profile/user_tabs.erb +0 -16
- data/app/cells/decidim/statistic/homepage.erb +0 -9
- data/app/cells/decidim/tags/category.erb +0 -1
- data/app/cells/decidim/tags/scope.erb +0 -1
- data/app/cells/decidim/user_conversations/add_conversation_users.erb +0 -26
- data/app/cells/decidim/user_conversations/conversation_item.erb +0 -38
- data/app/cells/decidim/user_group_admin_membership_profile/footer.erb +0 -29
- data/app/cells/decidim/user_group_admin_membership_profile_cell.rb +0 -14
- data/app/cells/decidim/user_group_membership_profile/tags.erb +0 -1
- data/app/cells/decidim/user_group_membership_profile_cell.rb +0 -8
- data/app/cells/decidim/user_profile/footer.erb +0 -5
- data/app/cells/decidim/user_profile/header.erb +0 -5
- data/app/cells/decidim/user_profile/unlinked_user_data.erb +0 -16
- data/app/cells/decidim/user_profile/user_data.erb +0 -16
- data/app/cells/decidim/version_author/show.erb +0 -18
- data/app/controllers/concerns/decidim/http_caching_disabler.rb +0 -21
- data/app/controllers/decidim/group_admins_controller.rb +0 -44
- data/app/controllers/decidim/user_timeline_controller.rb +0 -56
- data/app/controllers/decidim/widgets_controller.rb +0 -34
- data/app/helpers/decidim/widget_urls_helper.rb +0 -13
- data/app/jobs/decidim/block_user_job.rb +0 -11
- data/app/packs/entrypoints/decidim_email.scss +0 -1
- data/app/packs/fonts/decidim/Roboto-Regular.eot +0 -0
- data/app/packs/fonts/decidim/Roboto-Regular.svg +0 -1
- data/app/packs/fonts/decidim/Roboto-Regular.ttf +0 -0
- data/app/packs/fonts/decidim/Roboto-Regular.woff +0 -0
- data/app/packs/fonts/decidim/Roboto-Regular.woff2 +0 -0
- data/app/packs/fonts/decidim/Source_Sans_Pro_400.eot +0 -0
- data/app/packs/fonts/decidim/Source_Sans_Pro_400.svg +0 -1
- data/app/packs/fonts/decidim/Source_Sans_Pro_400.ttf +0 -0
- data/app/packs/fonts/decidim/Source_Sans_Pro_400.woff +0 -0
- data/app/packs/fonts/decidim/Source_Sans_Pro_400.woff2 +0 -0
- data/app/packs/fonts/decidim/Source_Sans_Pro_600.eot +0 -0
- data/app/packs/fonts/decidim/Source_Sans_Pro_600.svg +0 -1
- data/app/packs/fonts/decidim/Source_Sans_Pro_600.ttf +0 -0
- data/app/packs/fonts/decidim/Source_Sans_Pro_600.woff +0 -0
- data/app/packs/fonts/decidim/Source_Sans_Pro_600.woff2 +0 -0
- data/app/packs/fonts/decidim/Source_Sans_Pro_900.eot +0 -0
- data/app/packs/fonts/decidim/Source_Sans_Pro_900.svg +0 -1
- data/app/packs/fonts/decidim/Source_Sans_Pro_900.ttf +0 -0
- data/app/packs/fonts/decidim/Source_Sans_Pro_900.woff +0 -0
- data/app/packs/fonts/decidim/Source_Sans_Pro_900.woff2 +0 -0
- data/app/packs/images/decidim/vendor/social-share-button/delicious.svg +0 -13
- data/app/packs/images/decidim/vendor/social-share-button/google_plus.svg +0 -10
- data/app/packs/images/decidim/vendor/social-share-button/qq.svg +0 -8
- data/app/packs/images/decidim/vendor/social-share-button/weibo.svg +0 -10
- data/app/packs/src/decidim/ajax_modals.js +0 -20
- data/app/packs/src/decidim/conferences.js +0 -15
- data/app/packs/src/decidim/conversations.js +0 -17
- data/app/packs/src/decidim/data_picker.js +0 -273
- data/app/packs/src/decidim/dialog_mode.js +0 -55
- data/app/packs/src/decidim/dialog_mode.test.js +0 -181
- data/app/packs/src/decidim/diff_mode_dropdown.js +0 -49
- data/app/packs/src/decidim/dropdowns_menus.js +0 -30
- data/app/packs/src/decidim/editor/attribute_diff.js +0 -28
- data/app/packs/src/decidim/editor/clipboard_override.js +0 -147
- data/app/packs/src/decidim/editor/clipboard_utilities.js +0 -119
- data/app/packs/src/decidim/editor/history_override.js +0 -110
- data/app/packs/src/decidim/editor/linebreak_module.js +0 -175
- data/app/packs/src/decidim/editor/modified_backspace_offset1.js +0 -96
- data/app/packs/src/decidim/editor/modified_backspace_offset_any.js +0 -46
- data/app/packs/src/decidim/editor/modified_enter.js +0 -116
- data/app/packs/src/decidim/editor.js +0 -151
- data/app/packs/src/decidim/floating_help.js +0 -47
- data/app/packs/src/decidim/form_datepicker.js +0 -21
- data/app/packs/src/decidim/form_filter.component.test.js +0 -299
- data/app/packs/src/decidim/foundation-datepicker/js/locales/foundation-datepicker.lb.js +0 -13
- data/app/packs/src/decidim/foundation_datepicker_locales.js +0 -67
- data/app/packs/src/decidim/map/icon.js +0 -31
- data/app/packs/src/decidim/map/svg-icon.js +0 -248
- data/app/packs/src/decidim/represent_user_group.js +0 -18
- data/app/packs/src/decidim/start_conversation_dialog.js +0 -13
- data/app/packs/src/decidim/tooltip_keep_on_hover.js +0 -18
- data/app/packs/src/decidim/vendor/foundation-datepicker.js +0 -1431
- data/app/packs/src/decidim/vendor/image-resize.min.js +0 -3
- data/app/packs/src/decidim/vendor/image-upload.min.js +0 -8
- data/app/packs/src/decidim/vendor/social-share-button.js +0 -174
- data/app/packs/src/decidim/vizzs/linechart.js +0 -268
- data/app/packs/src/decidim/vizzs/rowchart.js +0 -328
- data/app/packs/stylesheets/decidim/_decidim-settings.scss +0 -7
- data/app/packs/stylesheets/decidim/_decidim.scss +0 -19
- data/app/packs/stylesheets/decidim/_editor.scss +0 -142
- data/app/packs/stylesheets/decidim/_properties.scss +0 -25
- data/app/packs/stylesheets/decidim/extras/_add_comments.scss +0 -9
- data/app/packs/stylesheets/decidim/extras/_announcement.scss +0 -3
- data/app/packs/stylesheets/decidim/extras/_collection-sort-controls.scss +0 -5
- data/app/packs/stylesheets/decidim/extras/_embed.scss +0 -33
- data/app/packs/stylesheets/decidim/extras/_external-links.scss +0 -44
- data/app/packs/stylesheets/decidim/extras/_extras.scss +0 -15
- data/app/packs/stylesheets/decidim/extras/_impersonation-bar.scss +0 -26
- data/app/packs/stylesheets/decidim/extras/_label-required.scss +0 -12
- data/app/packs/stylesheets/decidim/extras/_leaflet.scss +0 -17
- data/app/packs/stylesheets/decidim/extras/_meeting-registrations.scss +0 -25
- data/app/packs/stylesheets/decidim/extras/_proposal_form.scss +0 -9
- data/app/packs/stylesheets/decidim/extras/_quill.scss +0 -13
- data/app/packs/stylesheets/decidim/extras/_reference.scss +0 -3
- data/app/packs/stylesheets/decidim/extras/_results-per-page.scss +0 -74
- data/app/packs/stylesheets/decidim/extras/_social_share.scss +0 -39
- data/app/packs/stylesheets/decidim/extras/_status-labels.scss +0 -3
- data/app/packs/stylesheets/decidim/layouts/_highlighted_banner.scss +0 -34
- data/app/packs/stylesheets/decidim/layouts/_home.scss +0 -371
- data/app/packs/stylesheets/decidim/layouts/_layouts.scss +0 -5
- data/app/packs/stylesheets/decidim/layouts/_logo.scss +0 -26
- data/app/packs/stylesheets/decidim/layouts/_user.scss +0 -64
- data/app/packs/stylesheets/decidim/layouts/_view.scss +0 -21
- data/app/packs/stylesheets/decidim/modules/_address.scss +0 -31
- data/app/packs/stylesheets/decidim/modules/_author-avatar.scss +0 -171
- data/app/packs/stylesheets/decidim/modules/_autocomplete.scss +0 -99
- data/app/packs/stylesheets/decidim/modules/_badges.scss +0 -116
- data/app/packs/stylesheets/decidim/modules/_block-banner.scss +0 -39
- data/app/packs/stylesheets/decidim/modules/_buttons.scss +0 -531
- data/app/packs/stylesheets/decidim/modules/_callout.scss +0 -33
- data/app/packs/stylesheets/decidim/modules/_card-grid.scss +0 -25
- data/app/packs/stylesheets/decidim/modules/_cards.scss +0 -1124
- data/app/packs/stylesheets/decidim/modules/_collapsible-list.scss +0 -60
- data/app/packs/stylesheets/decidim/modules/_comments.scss +0 -307
- data/app/packs/stylesheets/decidim/modules/_conference-diploma.scss +0 -75
- data/app/packs/stylesheets/decidim/modules/_conference-media.scss +0 -46
- data/app/packs/stylesheets/decidim/modules/_conference-nav.scss +0 -31
- data/app/packs/stylesheets/decidim/modules/_conference-programme.scss +0 -109
- data/app/packs/stylesheets/decidim/modules/_conference-registration.scss +0 -34
- data/app/packs/stylesheets/decidim/modules/_conference-speaker.scss +0 -87
- data/app/packs/stylesheets/decidim/modules/_confirm.scss +0 -5
- data/app/packs/stylesheets/decidim/modules/_conversation.scss +0 -113
- data/app/packs/stylesheets/decidim/modules/_data-consent.scss +0 -115
- data/app/packs/stylesheets/decidim/modules/_data-picker.scss +0 -190
- data/app/packs/stylesheets/decidim/modules/_datepicker.scss +0 -224
- data/app/packs/stylesheets/decidim/modules/_definition-data.scss +0 -95
- data/app/packs/stylesheets/decidim/modules/_docs-manager.scss +0 -15
- data/app/packs/stylesheets/decidim/modules/_extra.scss +0 -50
- data/app/packs/stylesheets/decidim/modules/_filter-tags.scss +0 -27
- data/app/packs/stylesheets/decidim/modules/_filters.scss +0 -193
- data/app/packs/stylesheets/decidim/modules/_fingerprint.scss +0 -8
- data/app/packs/stylesheets/decidim/modules/_flag.scss +0 -10
- data/app/packs/stylesheets/decidim/modules/_floating-helper.scss +0 -118
- data/app/packs/stylesheets/decidim/modules/_footer.scss +0 -115
- data/app/packs/stylesheets/decidim/modules/_forms.scss +0 -157
- data/app/packs/stylesheets/decidim/modules/_help.scss +0 -58
- data/app/packs/stylesheets/decidim/modules/_horizontal-tabs.scss +0 -114
- data/app/packs/stylesheets/decidim/modules/_hover-section.scss +0 -29
- data/app/packs/stylesheets/decidim/modules/_icons.scss +0 -56
- data/app/packs/stylesheets/decidim/modules/_inline-filters.scss +0 -66
- data/app/packs/stylesheets/decidim/modules/_input-gallery.scss +0 -35
- data/app/packs/stylesheets/decidim/modules/_input-mentions.scss +0 -142
- data/app/packs/stylesheets/decidim/modules/_input-multiple-mentions.scss +0 -32
- data/app/packs/stylesheets/decidim/modules/_input-tags.scss +0 -55
- data/app/packs/stylesheets/decidim/modules/_layout.scss +0 -82
- data/app/packs/stylesheets/decidim/modules/_list-docs.scss +0 -33
- data/app/packs/stylesheets/decidim/modules/_list-request.scss +0 -16
- data/app/packs/stylesheets/decidim/modules/_loading-spinner.scss +0 -46
- data/app/packs/stylesheets/decidim/modules/_main-container.scss +0 -72
- data/app/packs/stylesheets/decidim/modules/_map.scss +0 -130
- data/app/packs/stylesheets/decidim/modules/_margins.scss +0 -60
- data/app/packs/stylesheets/decidim/modules/_messages.scss +0 -36
- data/app/packs/stylesheets/decidim/modules/_modules.scss +0 -94
- data/app/packs/stylesheets/decidim/modules/_navbar.scss +0 -592
- data/app/packs/stylesheets/decidim/modules/_notification.scss +0 -5
- data/app/packs/stylesheets/decidim/modules/_omnipresent_banner.scss +0 -26
- data/app/packs/stylesheets/decidim/modules/_opinion-toggle.scss +0 -55
- data/app/packs/stylesheets/decidim/modules/_order-by.scss +0 -82
- data/app/packs/stylesheets/decidim/modules/_pagination.scss +0 -6
- data/app/packs/stylesheets/decidim/modules/_process-header.scss +0 -95
- data/app/packs/stylesheets/decidim/modules/_process-info.scss +0 -52
- data/app/packs/stylesheets/decidim/modules/_process-nav.scss +0 -182
- data/app/packs/stylesheets/decidim/modules/_process-phase.scss +0 -173
- data/app/packs/stylesheets/decidim/modules/_progress-bar.scss +0 -73
- data/app/packs/stylesheets/decidim/modules/_reference.scss +0 -5
- data/app/packs/stylesheets/decidim/modules/_reveal.scss +0 -111
- data/app/packs/stylesheets/decidim/modules/_share.scss +0 -34
- data/app/packs/stylesheets/decidim/modules/_signup.scss +0 -119
- data/app/packs/stylesheets/decidim/modules/_space-stats.scss +0 -53
- data/app/packs/stylesheets/decidim/modules/_static-pages.scss +0 -51
- data/app/packs/stylesheets/decidim/modules/_statistics.scss +0 -53
- data/app/packs/stylesheets/decidim/modules/_status-labels.scss +0 -33
- data/app/packs/stylesheets/decidim/modules/_sticky.scss +0 -5
- data/app/packs/stylesheets/decidim/modules/_tags.scss +0 -41
- data/app/packs/stylesheets/decidim/modules/_timeline.scss +0 -181
- data/app/packs/stylesheets/decidim/modules/_title-action.scss +0 -29
- data/app/packs/stylesheets/decidim/modules/_toggle.scss +0 -9
- data/app/packs/stylesheets/decidim/modules/_typography.scss +0 -309
- data/app/packs/stylesheets/decidim/modules/_upload_modal.scss +0 -139
- data/app/packs/stylesheets/decidim/modules/_user-form.scss +0 -15
- data/app/packs/stylesheets/decidim/modules/_versions.scss +0 -74
- data/app/packs/stylesheets/decidim/modules/_video.scss +0 -18
- data/app/packs/stylesheets/decidim/modules/_wizard-steps.scss +0 -45
- data/app/packs/stylesheets/decidim/plugins/MarkerCluster.Default.scss +0 -67
- data/app/packs/stylesheets/decidim/plugins/MarkerCluster.scss +0 -15
- data/app/packs/stylesheets/decidim/utils/_fontface.scss +0 -32
- data/app/packs/stylesheets/decidim/utils/_helpers.scss +0 -159
- data/app/packs/stylesheets/decidim/utils/_keyframes.scss +0 -21
- data/app/packs/stylesheets/decidim/utils/_mixins.scss +0 -252
- data/app/packs/stylesheets/decidim/utils/_settings.scss +0 -890
- data/app/packs/stylesheets/decidim/utils/_toggle-expand.scss +0 -23
- data/app/packs/stylesheets/decidim/vendor/_social_share_button.scss +0 -139
- data/app/packs/stylesheets/decidim/vizzs/_areachart.scss +0 -66
- data/app/packs/stylesheets/decidim/vizzs/_chart-tooltip.scss +0 -42
- data/app/packs/stylesheets/decidim/vizzs/_linechart.scss +0 -114
- data/app/packs/stylesheets/decidim/vizzs/_orgchart.scss +0 -54
- data/app/packs/stylesheets/decidim/vizzs/_rowchart.scss +0 -76
- data/app/packs/stylesheets/decidim/vizzs/_vizzs.scss +0 -5
- data/app/packs/stylesheets/decidim/vizzs.scss +0 -8
- data/app/packs/stylesheets/foundation-overrides/components/_button-group.scss +0 -321
- data/app/uploaders/decidim/official_image_header_uploader.rb +0 -10
- data/app/views/decidim/amendments/_similar_emendation.html.erb +0 -24
- data/app/views/decidim/application/_attachments.erb +0 -12
- data/app/views/decidim/application/_document.erb +0 -19
- data/app/views/decidim/application/_documents.erb +0 -15
- data/app/views/decidim/application/_photos.erb +0 -16
- data/app/views/decidim/authorization_modals/_content.html.erb +0 -45
- data/app/views/decidim/devise/shared/_omniauth_buttons_mini.html.erb +0 -23
- data/app/views/decidim/group_admins/index.html.erb +0 -20
- data/app/views/decidim/group_members/index.html.erb +0 -21
- data/app/views/decidim/links/_invalid_url_modal.html.erb +0 -17
- data/app/views/decidim/links/_warning.html.erb +0 -4
- data/app/views/decidim/links/invalid_url.js.erb +0 -24
- data/app/views/decidim/profiles/_followers.html.erb +0 -5
- data/app/views/decidim/profiles/_following.html.erb +0 -5
- data/app/views/decidim/profiles/_notifications.html.erb +0 -0
- data/app/views/decidim/profiles/_user_follow.erb +0 -32
- data/app/views/decidim/searches/_filters_small_view.html.erb +0 -18
- data/app/views/decidim/shared/_address_details.html.erb +0 -7
- data/app/views/decidim/shared/_check_boxes_tree.html.erb +0 -56
- data/app/views/decidim/shared/_embed_modal.html.erb +0 -22
- data/app/views/decidim/shared/_filter_form_help.erb +0 -8
- data/app/views/decidim/shared/_private_participatory_space.html.erb +0 -5
- data/app/views/decidim/shared/participatory_space_filters/_filters.html.erb +0 -16
- data/app/views/decidim/shared/participatory_space_filters/_filters_small_view.html.erb +0 -19
- data/app/views/decidim/shared/participatory_space_filters/_show.html.erb +0 -9
- data/app/views/decidim/user_timeline/index.html.erb +0 -8
- data/app/views/decidim/user_timeline/index.js.erb +0 -14
- data/app/views/decidim/widgets/show.html.erb +0 -4
- data/app/views/decidim/widgets/show.js.erb +0 -32
- data/app/views/kaminari/decidim/_first_page.html.erb +0 -14
- data/app/views/kaminari/decidim/_last_page.html.erb +0 -14
- data/app/views/layouts/decidim/_language_chooser.html.erb +0 -26
- data/app/views/layouts/decidim/_main_footer.html.erb +0 -31
- data/app/views/layouts/decidim/_mini_footer.html.erb +0 -21
- data/app/views/layouts/decidim/_social_media_links.html.erb +0 -44
- data/app/views/layouts/decidim/_topbar_search.html.erb +0 -18
- data/app/views/layouts/decidim/widget.html.erb +0 -34
- data/config/environment.rb +0 -3
- data/lib/decidim/core/test/shared_examples/amendable/amendment_accepted_event_examples.rb +0 -42
- data/lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb +0 -17
- data/lib/decidim/core/test/shared_examples/embed_resource_examples.rb +0 -49
- data/lib/decidim/webpacker/thread_safe_compiler.rb +0 -30
- data/lib/decidim/webpacker/webpack/base.js +0 -6
- data/lib/decidim/webpacker/webpack/development.js +0 -7
- data/lib/decidim/webpacker/webpack/production.js +0 -7
- data/lib/decidim/webpacker/webpack/test.js +0 -7
- /data/app/cells/decidim/{card_m/data.erb → card_l/extra_data.erb} +0 -0
- /data/app/cells/decidim/{card_m/footer.erb → content_blocks/base/content.erb} +0 -0
- /data/app/{forms → validators}/translatable_presence_validator.rb +0 -0
- /data/app/{forms → validators}/url_validator.rb +0 -0
@@ -7,36 +7,17 @@ shared_examples "amendment rejected event" do
|
|
7
7
|
let(:event_name) { "decidim.events.amendments.amendment_rejected" }
|
8
8
|
|
9
9
|
it_behaves_like "a simple event"
|
10
|
+
it_behaves_like "a simple event email"
|
11
|
+
it_behaves_like "a simple event notification"
|
10
12
|
|
11
13
|
let(:emendation_author_nickname) { "@#{emendation.creator_author.nickname}" }
|
12
14
|
let(:emendation_path) { Decidim::ResourceLocatorPresenter.new(emendation).path }
|
13
15
|
let(:emendation_author_path) { Decidim::UserPresenter.new(emendation.creator_author).profile_path }
|
14
16
|
let(:amendable_path) { Decidim::ResourceLocatorPresenter.new(amendable).path }
|
15
17
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
20
|
-
end
|
18
|
+
let(:email_subject) { "Amendment rejected for #{amendable_title} from #{emendation_author_nickname}" }
|
19
|
+
let(:email_intro) { "An amendment has been rejected for #{amendable_title}. You can see it from this page:" }
|
20
|
+
let(:email_outro) { "You have received this notification because you are following #{amendable_title}. You can stop receiving notifications following the previous link." }
|
21
21
|
|
22
|
-
|
23
|
-
it "is generated correctly" do
|
24
|
-
expect(subject.email_intro)
|
25
|
-
.to eq("An amendment has been rejected for #{amendable_title}. You can see it from this page:")
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
describe "email_outro" do
|
30
|
-
it "is generated correctly" do
|
31
|
-
expect(subject.email_outro)
|
32
|
-
.to eq("You have received this notification because you are following #{amendable_title}. You can stop receiving notifications following the previous link.")
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
describe "notification_title" do
|
37
|
-
it "is generated correctly" do
|
38
|
-
expect(subject.notification_title)
|
39
|
-
.to eq("The <a href=\"#{emendation_path}\">amendment</a> created by <a href=\"#{emendation_author_path}\">#{emendation_author_nickname}</a> has been rejected for <a href=\"#{amendable_path}\">#{amendable_title}</a>.") # rubocop:disable Layout/LineLength
|
40
|
-
end
|
41
|
-
end
|
22
|
+
let(:notification_title) { "The <a href=\"#{emendation_path}\">amendment</a> created by <a href=\"#{emendation_author_path}\">#{emendation_author_nickname}</a> has been rejected for <a href=\"#{amendable_path}\">#{amendable_title}</a>." } # rubocop:disable Layout/LineLength
|
42
23
|
end
|
@@ -39,7 +39,7 @@ shared_examples "create amendment draft" do
|
|
39
39
|
expect { command.call }.to broadcast(:invalid)
|
40
40
|
end
|
41
41
|
|
42
|
-
it "
|
42
|
+
it "does not create an amendment and the emendation" do
|
43
43
|
expect { command.call }
|
44
44
|
.to change(Decidim::Amendment, :count)
|
45
45
|
.by(0)
|
@@ -16,7 +16,7 @@ shared_examples "manage announcements" do
|
|
16
16
|
|
17
17
|
visit main_component_path(current_component)
|
18
18
|
|
19
|
-
within
|
19
|
+
within page.find("[data-announcement]", match: :first) do
|
20
20
|
expect(page).to have_content("An important announcement")
|
21
21
|
end
|
22
22
|
end
|
@@ -50,8 +50,8 @@ shared_examples "manage announcements" do
|
|
50
50
|
|
51
51
|
visit main_component_path(current_component)
|
52
52
|
|
53
|
-
within
|
54
|
-
expect(page).
|
53
|
+
within page.find("[data-announcement]", match: :first) do
|
54
|
+
expect(page).not_to have_content("An important announcement")
|
55
55
|
expect(page).to have_content("An announcement for this step")
|
56
56
|
end
|
57
57
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
shared_examples "manage assemblies announcements" do
|
4
4
|
it "can customize a general announcement for the assembly" do
|
5
|
-
click_link
|
5
|
+
click_link "Configure"
|
6
6
|
|
7
7
|
fill_in_i18n_editor(
|
8
8
|
:assembly_announcement,
|
@@ -25,10 +25,14 @@ shared_examples "manage assemblies announcements" do
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
|
29
|
-
|
28
|
+
new_window = window_opened_by do
|
29
|
+
within "tr", text: translated(assembly.title) do
|
30
|
+
click_link "Preview"
|
31
|
+
end
|
30
32
|
end
|
31
33
|
|
32
|
-
|
34
|
+
page.within_window(new_window) do
|
35
|
+
expect(page).to have_content("An important announcement")
|
36
|
+
end
|
33
37
|
end
|
34
38
|
end
|
@@ -7,13 +7,13 @@ shared_examples_for "authorable" do
|
|
7
7
|
context "when the user group is not verified" do
|
8
8
|
it "is not valid" do
|
9
9
|
user_group = create(:user_group)
|
10
|
-
create(:user_group_membership, user: subject.author, user_group:
|
10
|
+
create(:user_group_membership, user: subject.author, user_group:)
|
11
11
|
subject.user_group = user_group
|
12
12
|
expect(subject).not_to be_valid
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
context "when the author
|
16
|
+
context "when the author does not have a membership of the user group" do
|
17
17
|
it "is not valid" do
|
18
18
|
user_group = create(:user_group, :verified)
|
19
19
|
subject.user_group = user_group
|
@@ -9,7 +9,7 @@ shared_examples_for "authorable interface" do
|
|
9
9
|
let(:query) { "{ author { name } }" }
|
10
10
|
|
11
11
|
before do
|
12
|
-
model.update(author:
|
12
|
+
model.update(author:)
|
13
13
|
end
|
14
14
|
|
15
15
|
it "does not include the author" do
|
@@ -22,7 +22,7 @@ shared_examples_for "authorable interface" do
|
|
22
22
|
let(:query) { "{ author { name } }" }
|
23
23
|
|
24
24
|
before do
|
25
|
-
model.update(author
|
25
|
+
model.update(author:, user_group: nil)
|
26
26
|
end
|
27
27
|
|
28
28
|
it "includes the user's name" do
|
@@ -35,7 +35,7 @@ shared_examples_for "authorable interface" do
|
|
35
35
|
let(:query) { "{ author { name } }" }
|
36
36
|
|
37
37
|
before do
|
38
|
-
model.update(user_group
|
38
|
+
model.update(user_group:, author: nil)
|
39
39
|
end
|
40
40
|
|
41
41
|
it "includes the user group's name" do
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
shared_context "authorization transfer" do
|
4
|
+
let(:organization) { create(:organization) }
|
5
|
+
let(:original_user) { create(:user, :confirmed, :deleted, organization:) }
|
6
|
+
let(:target_user) { create(:user, :confirmed, organization:) }
|
7
|
+
let(:authorization_document_number) { "12345678X" }
|
8
|
+
let(:authorization) { create(:authorization, :granted, user: original_user, unique_id: authorization_document_number) }
|
9
|
+
let(:authorization_handler) do
|
10
|
+
DummyAuthorizationHandler.from_params(
|
11
|
+
document_number: authorization_document_number,
|
12
|
+
user: target_user
|
13
|
+
)
|
14
|
+
end
|
15
|
+
let(:transfer) do
|
16
|
+
create(
|
17
|
+
:authorization_transfer,
|
18
|
+
authorization:,
|
19
|
+
user: authorization_handler.user,
|
20
|
+
source_user: original_user
|
21
|
+
)
|
22
|
+
end
|
23
|
+
let(:transferred_resources) { transfer.records.map(&:resource).sort_by! { |r| "#{r.class.name}##{format("%010d", r.id)}" } }
|
24
|
+
|
25
|
+
before do
|
26
|
+
# Make sure the original records exist before publishing the notification
|
27
|
+
original_records
|
28
|
+
|
29
|
+
# The initializer should have already been run when the test starts, so when
|
30
|
+
# the transfer is announced, it should handle the event subscription
|
31
|
+
# correctly if it has run and works as expected.
|
32
|
+
transfer.announce!(authorization_handler)
|
33
|
+
end
|
34
|
+
end
|
@@ -61,7 +61,7 @@ shared_examples_for "coauthorable" do
|
|
61
61
|
before do
|
62
62
|
coauthorable.coauthorships.clear
|
63
63
|
other_user_groups.each do |ug|
|
64
|
-
Decidim::Coauthorship.create(author: ug.memberships.first.user, user_group: ug, coauthorable:
|
64
|
+
Decidim::Coauthorship.create(author: ug.memberships.first.user, user_group: ug, coauthorable:)
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
@@ -115,7 +115,7 @@ shared_examples_for "coauthorable" do
|
|
115
115
|
other_user_groups.each do |user_group|
|
116
116
|
coauthorable.add_coauthor(
|
117
117
|
user_group.memberships.first.user,
|
118
|
-
user_group:
|
118
|
+
user_group:
|
119
119
|
)
|
120
120
|
end
|
121
121
|
end
|
@@ -20,7 +20,7 @@ shared_examples_for "coauthorable interface" do
|
|
20
20
|
|
21
21
|
before do
|
22
22
|
coauthorship = model.coauthorships.first
|
23
|
-
coauthorship.update!(user_group:
|
23
|
+
coauthorship.update!(user_group:)
|
24
24
|
end
|
25
25
|
|
26
26
|
it "includes returns the user group's name as the author name" do
|
@@ -54,7 +54,7 @@ shared_examples_for "coauthorable interface" do
|
|
54
54
|
end
|
55
55
|
|
56
56
|
context "when author is the organization" do
|
57
|
-
let(:model) { create(:proposal, :official, component:
|
57
|
+
let(:model) { create(:proposal, :official, component:) }
|
58
58
|
|
59
59
|
it "returns 2 total co-authors" do
|
60
60
|
expect(response["authorsCount"]).to eq(2)
|
@@ -71,7 +71,7 @@ shared_examples_for "coauthorable interface" do
|
|
71
71
|
end
|
72
72
|
|
73
73
|
context "when author is a meeting" do
|
74
|
-
let(:model) { create(:proposal, :official_meeting, component:
|
74
|
+
let(:model) { create(:proposal, :official_meeting, component:) }
|
75
75
|
|
76
76
|
it "returns 2 total co-authors" do
|
77
77
|
expect(response["authorsCount"]).to eq(2)
|