decidim-core 0.26.10 → 0.27.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-core might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/cells/decidim/amendable/announcement_cell.rb +4 -9
- data/app/cells/decidim/announcement_cell.rb +2 -2
- data/app/cells/decidim/author_cell.rb +1 -1
- data/app/cells/decidim/card_m_cell.rb +1 -1
- data/app/cells/decidim/collapsible_list/show.erb +1 -1
- data/app/cells/decidim/content_blocks/cta/show.erb +1 -1
- data/app/cells/decidim/content_blocks/cta_cell.rb +1 -1
- data/app/cells/decidim/content_blocks/footer_sub_hero/show.erb +1 -1
- data/app/cells/decidim/content_blocks/hero/show.erb +2 -2
- data/app/cells/decidim/content_blocks/highlighted_content_banner/show.erb +5 -5
- data/app/cells/decidim/content_blocks/highlighted_elements_cell.rb +1 -1
- data/app/cells/decidim/content_blocks/how_to_participate/show.erb +1 -1
- data/app/cells/decidim/content_blocks/last_activity/show.erb +1 -1
- data/app/cells/decidim/content_blocks/last_activity_cell.rb +3 -3
- data/app/cells/decidim/content_blocks/stats_cell.rb +4 -5
- data/app/cells/decidim/content_blocks/sub_hero/show.erb +1 -1
- data/app/cells/decidim/content_blocks/sub_hero_cell.rb +1 -1
- data/app/cells/decidim/data_consent/category.erb +64 -0
- data/app/cells/decidim/data_consent/dialog.erb +29 -0
- data/app/cells/decidim/data_consent/modal.erb +39 -0
- data/app/cells/decidim/data_consent/show.erb +3 -0
- data/app/cells/decidim/data_consent_cell.rb +21 -0
- data/app/cells/decidim/follow_button_cell.rb +5 -7
- data/app/cells/decidim/newsletter_templates/base_cell.rb +0 -8
- data/app/cells/decidim/newsletter_templates/basic_only_text/show.erb +4 -4
- data/app/cells/decidim/newsletter_templates/image_text_cta/show.erb +4 -4
- data/app/cells/decidim/profile_sidebar_cell.rb +1 -1
- data/app/cells/decidim/search_results_cell.rb +1 -1
- data/app/cells/decidim/tos_page/refuse_btn_modal.erb +1 -1
- data/app/cells/decidim/upload_modal/files.erb +52 -0
- data/app/cells/decidim/upload_modal/modal.erb +49 -0
- data/app/cells/decidim/upload_modal/show.erb +3 -0
- data/app/cells/decidim/upload_modal_cell.rb +205 -0
- data/app/cells/decidim/user_conversation/reply.erb +1 -1
- data/app/cells/decidim/user_conversations/add_conversation_users.erb +5 -3
- data/app/cells/decidim/version_cell.rb +3 -14
- data/app/cells/decidim/versions_list_cell.rb +3 -14
- data/app/cells/decidim/versions_list_item_cell.rb +2 -13
- data/app/commands/decidim/accept_group_invitation.rb +1 -1
- 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 +1 -1
- data/app/commands/decidim/amendable/destroy_draft.rb +1 -1
- data/app/commands/decidim/amendable/promote.rb +1 -1
- 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/amendable/withdraw.rb +1 -1
- data/app/commands/decidim/attachment_methods.rb +3 -2
- 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 +2 -3
- data/app/commands/decidim/create_registration.rb +1 -2
- data/app/commands/decidim/create_report.rb +1 -1
- data/app/commands/decidim/create_user_group.rb +2 -2
- data/app/commands/decidim/create_user_report.rb +5 -3
- data/app/commands/decidim/delete_follow.rb +1 -1
- data/app/commands/decidim/demote_membership.rb +1 -1
- data/app/commands/decidim/destroy_account.rb +1 -1
- data/app/commands/decidim/endorse_resource.rb +1 -3
- data/app/commands/decidim/gallery_methods.rb +45 -10
- data/app/commands/decidim/invite_user.rb +1 -3
- data/app/commands/decidim/invite_user_again.rb +1 -1
- data/app/commands/decidim/invite_user_to_group.rb +1 -1
- data/app/commands/decidim/join_user_group.rb +1 -1
- data/app/commands/decidim/leave_user_group.rb +8 -2
- 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 +44 -5
- data/app/commands/decidim/promote_membership.rb +1 -1
- data/app/commands/decidim/reject_group_invitation.rb +1 -1
- 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/resend_confirmation_instructions.rb +18 -0
- data/app/commands/decidim/search.rb +10 -9
- data/app/commands/decidim/unendorse_resource.rb +2 -2
- data/app/commands/decidim/unsubscribe_settings.rb +1 -1
- data/app/commands/decidim/update_account.rb +2 -2
- data/app/commands/decidim/update_notifications_settings.rb +3 -2
- data/app/commands/decidim/update_password.rb +31 -0
- data/app/commands/decidim/update_user_group.rb +2 -2
- data/app/commands/decidim/update_user_interests.rb +1 -1
- data/app/commands/decidim/validate_upload.rb +15 -0
- data/app/controllers/concerns/decidim/devise_controllers.rb +0 -1
- data/app/controllers/concerns/decidim/filter_resource.rb +23 -24
- data/app/controllers/concerns/decidim/force_authentication.rb +1 -2
- data/app/controllers/concerns/decidim/http_caching_disabler.rb +1 -1
- data/app/controllers/concerns/decidim/needs_password_change.rb +43 -0
- data/app/controllers/concerns/decidim/needs_tos_accepted.rb +3 -3
- data/app/controllers/concerns/decidim/orderable.rb +1 -1
- data/app/controllers/concerns/decidim/participatory_space_context.rb +2 -2
- data/app/controllers/concerns/decidim/resource_versions_concern.rb +0 -4
- data/app/controllers/decidim/account_controller.rb +45 -0
- data/app/controllers/decidim/application_controller.rb +1 -1
- data/app/controllers/decidim/authorization_modals_controller.rb +1 -1
- data/app/controllers/decidim/devise/invitations_controller.rb +4 -9
- data/app/controllers/decidim/devise/passwords_controller.rb +33 -0
- data/app/controllers/decidim/devise/registrations_controller.rb +3 -5
- data/app/controllers/decidim/devise/sessions_controller.rb +2 -0
- data/app/controllers/decidim/{data_portability_controller.rb → download_your_data_controller.rb} +8 -8
- data/app/controllers/decidim/groups_controller.rb +5 -5
- data/app/controllers/decidim/last_activities_controller.rb +7 -9
- data/app/controllers/decidim/links_controller.rb +11 -10
- data/app/controllers/decidim/manifests_controller.rb +11 -0
- data/app/controllers/decidim/newsletters_controller.rb +1 -1
- data/app/controllers/decidim/notifications_subscriptions_controller.rb +16 -0
- data/app/controllers/decidim/offline_controller.rb +7 -0
- data/app/controllers/decidim/profiles_controller.rb +2 -2
- data/app/controllers/decidim/searches_controller.rb +4 -3
- data/app/controllers/decidim/short_links_controller.rb +35 -0
- data/app/controllers/decidim/upload_validations_controller.rb +44 -0
- data/app/controllers/decidim/user_activities_controller.rb +32 -16
- data/app/controllers/decidim/user_interests_controller.rb +0 -2
- data/app/controllers/decidim/user_timeline_controller.rb +7 -9
- data/app/events/decidim/change_nickname_event.rb +21 -0
- data/app/events/decidim/resource_endorsed_event.rb +1 -2
- data/app/forms/decidim/account_form.rb +4 -4
- data/app/forms/decidim/amendable/form.rb +1 -2
- data/app/forms/decidim/form.rb +1 -1
- data/app/forms/decidim/messaging/conversation_form.rb +1 -1
- data/app/forms/decidim/notifications_settings_form.rb +16 -2
- data/app/forms/decidim/password_form.rb +10 -0
- data/app/forms/decidim/registration_form.rb +3 -3
- data/app/forms/decidim/upload_validation_form.rb +54 -0
- data/app/forms/decidim/user_group_form.rb +1 -1
- data/app/forms/decidim/user_interest_scope_form.rb +1 -1
- data/app/forms/decidim/user_interests_form.rb +1 -1
- data/app/forms/translatable_presence_validator.rb +2 -2
- data/app/forms/url_validator.rb +1 -1
- data/app/helpers/decidim/application_helper.rb +2 -2
- data/app/helpers/decidim/attachments_helper.rb +1 -1
- data/app/helpers/decidim/cells_helper.rb +0 -1
- data/app/helpers/decidim/cells_paginate_helper.rb +1 -1
- data/app/helpers/decidim/datalist_select_helper.rb +40 -0
- data/app/helpers/decidim/decidim_form_helper.rb +1 -1
- data/app/helpers/decidim/external_domain_helper.rb +3 -14
- data/app/helpers/decidim/filters_helper.rb +1 -5
- data/app/helpers/decidim/followable_helper.rb +1 -1
- data/app/helpers/decidim/icon_helper.rb +4 -4
- data/app/helpers/decidim/layout_helper.rb +19 -16
- data/app/helpers/decidim/map_helper.rb +12 -8
- data/app/helpers/decidim/meta_tags_helper.rb +0 -2
- data/app/helpers/decidim/newsletters_helper.rb +0 -1
- data/app/helpers/decidim/notifications_settings_helper.rb +15 -0
- data/app/helpers/decidim/passwords_helper.rb +41 -0
- data/app/helpers/decidim/resource_helper.rb +0 -2
- data/app/helpers/decidim/sanitize_helper.rb +6 -15
- data/app/helpers/decidim/searches_helper.rb +6 -6
- data/app/helpers/decidim/short_link_helper.rb +28 -0
- data/app/helpers/decidim/translations_helper.rb +2 -2
- data/app/jobs/decidim/{data_portability_export_job.rb → download_your_data_export_job.rb} +5 -8
- data/app/jobs/decidim/email_notifications_digest_generator_job.rb +21 -0
- data/app/jobs/decidim/notification_generator_for_recipient_job.rb +5 -3
- data/app/jobs/decidim/open_data_job.rb +0 -2
- data/app/jobs/decidim/reminder_generator_job.rb +12 -0
- data/app/jobs/decidim/resend_confirmation_instructions_job.rb +11 -0
- data/app/jobs/decidim/user_report_job.rb +2 -2
- data/app/mailers/concerns/decidim/multitenant_asset_host.rb +11 -3
- data/app/mailers/decidim/application_mailer.rb +1 -1
- data/app/mailers/decidim/block_user_mailer.rb +8 -7
- data/app/mailers/decidim/export_mailer.rb +2 -2
- data/app/mailers/decidim/newsletter_mailer.rb +5 -12
- data/app/mailers/decidim/newsletters_opt_in_mailer.rb +7 -5
- data/app/mailers/decidim/notification_mailer.rb +0 -1
- data/app/mailers/decidim/notifications_digest_mailer.rb +23 -0
- data/app/mailers/decidim/user_report_mailer.rb +10 -11
- data/app/models/decidim/action_log.rb +95 -11
- data/app/models/decidim/amendment.rb +0 -1
- data/app/models/decidim/area.rb +1 -2
- data/app/models/decidim/area_type.rb +5 -0
- data/app/models/decidim/attachment.rb +6 -0
- data/app/models/decidim/attachment_collection.rb +5 -0
- data/app/models/decidim/category.rb +9 -4
- data/app/models/decidim/coauthorship.rb +0 -2
- data/app/models/decidim/contextual_help_section.rb +5 -1
- data/app/models/decidim/follow.rb +2 -2
- data/app/models/decidim/gamification/badge_score.rb +0 -1
- data/app/models/decidim/identity.rb +2 -2
- data/app/models/decidim/messaging/conversation.rb +4 -4
- data/app/models/decidim/messaging/message.rb +1 -2
- data/app/models/decidim/messaging/participation.rb +0 -2
- data/app/models/decidim/messaging/receipt.rb +0 -2
- data/app/models/decidim/newsletter.rb +0 -28
- data/app/models/decidim/notification.rb +5 -2
- data/app/models/decidim/oauth_application.rb +12 -1
- data/app/models/decidim/organization.rb +7 -13
- data/app/models/decidim/participatory_space_private_user.rb +4 -2
- data/app/models/decidim/permission_action.rb +1 -0
- data/app/models/decidim/reminder.rb +10 -0
- data/app/models/decidim/reminder_delivery.rb +7 -0
- data/app/models/decidim/reminder_record.rb +29 -0
- data/app/models/decidim/report.rb +2 -2
- data/app/models/decidim/scope.rb +3 -4
- data/app/models/decidim/scope_type.rb +1 -24
- data/app/models/decidim/share_token.rb +0 -2
- data/app/models/decidim/short_link.rb +162 -0
- data/app/models/decidim/user.rb +35 -13
- data/app/models/decidim/user_base_entity.rb +1 -4
- data/app/models/decidim/user_block.rb +2 -2
- data/app/models/decidim/user_group.rb +4 -4
- data/app/models/decidim/user_moderation.rb +0 -2
- data/app/models/decidim/user_report.rb +2 -2
- data/app/packs/entrypoints/decidim_core.js +2 -2
- data/app/packs/entrypoints/decidim_sw.js +1 -0
- data/app/packs/images/decidim/gamification/badges/decidim_gamification_badges_invitations.svg +1 -0
- data/app/packs/src/decidim/autocomplete.js +298 -0
- data/app/packs/src/decidim/cookie_consent/consent_manager.js +133 -0
- data/app/packs/src/decidim/cookie_consent/cookie_consent.js +103 -0
- data/app/packs/src/decidim/datalist_select.js +36 -0
- data/app/packs/src/decidim/direct_uploads/upload_field.js +117 -0
- data/app/packs/src/decidim/direct_uploads/upload_modal.js +264 -0
- data/app/packs/src/decidim/direct_uploads/upload_utility.js +49 -0
- data/app/packs/src/decidim/direct_uploads/uploader.js +89 -0
- data/app/packs/src/decidim/editor/linebreak_module.js +8 -0
- data/app/packs/src/decidim/editor.js +33 -70
- data/app/packs/src/decidim/external_domain_warning.js +1 -1
- data/app/packs/src/decidim/external_link.js +14 -3
- data/app/packs/src/decidim/external_link.test.js +64 -0
- data/app/packs/src/decidim/form_filter.component.test.js +5 -148
- data/app/packs/src/decidim/form_filter.js +4 -26
- data/app/packs/src/decidim/geocoding/attach_input.js +1 -4
- data/app/packs/src/decidim/geocoding/provider/here.js +21 -17
- data/app/packs/src/decidim/geocoding/provider/photon.js +1 -1
- data/app/packs/src/decidim/geocoding.js +10 -35
- data/app/packs/src/decidim/identity_selector_dialog.js +1 -1
- data/app/packs/src/decidim/impersonation.js +3 -3
- data/app/packs/src/decidim/input_character_counter.js +177 -7
- data/app/packs/src/decidim/input_multiple_mentions.js +87 -187
- data/app/packs/src/decidim/map/controller/drag_marker.js +2 -0
- data/app/packs/src/decidim/map/controller/markers.js +1 -0
- data/app/packs/src/decidim/map/controller/static.js +1 -0
- data/app/packs/src/decidim/map/controller.js +2 -0
- data/app/packs/src/decidim/map/factory.js +1 -4
- data/app/packs/src/decidim/map/icon.js +3 -1
- data/app/packs/src/decidim/map/legacy.js +1 -0
- data/app/packs/src/decidim/map/provider/default.js +0 -2
- data/app/packs/src/decidim/map/provider/here.js +1 -2
- data/app/packs/src/decidim/map/svg-icon.js +248 -0
- data/app/packs/src/decidim/security/selfxss_warning.js +5 -1
- data/app/packs/src/decidim/session_timeouter.js +15 -15
- data/app/packs/src/decidim/sw/a2hs.js +28 -0
- data/app/packs/src/decidim/sw/index.js +3 -0
- data/app/packs/src/decidim/sw/loader.js +18 -0
- data/app/packs/src/decidim/sw/push-permissions.js +87 -0
- data/app/packs/src/decidim/sw/sw.js +80 -0
- data/app/packs/src/decidim/vizzs/areachart.js +33 -28
- data/app/packs/src/decidim/vizzs/linechart.js +23 -18
- data/app/packs/src/decidim/vizzs/rowchart.js +15 -11
- data/app/packs/stylesheets/decidim/_editor.scss +0 -129
- data/app/packs/stylesheets/decidim/email.scss +66 -7
- data/app/packs/stylesheets/decidim/extras/_quill.scss +6 -0
- data/app/packs/stylesheets/decidim/layouts/_user.scss +8 -0
- data/app/packs/stylesheets/decidim/modules/_autocomplete.scss +99 -0
- data/app/packs/stylesheets/decidim/modules/_buttons.scss +6 -10
- data/app/packs/stylesheets/decidim/modules/_cards.scss +1 -3
- data/app/packs/stylesheets/decidim/modules/_comments.scss +0 -26
- data/app/packs/stylesheets/decidim/modules/_cookie-consent.scss +115 -0
- data/app/packs/stylesheets/decidim/modules/_footer.scss +4 -0
- data/app/packs/stylesheets/decidim/modules/_forms.scss +0 -5
- data/app/packs/stylesheets/decidim/modules/_input-multiple-mentions.scss +29 -2
- data/app/packs/stylesheets/decidim/modules/_modules.scss +3 -1
- data/app/packs/stylesheets/decidim/modules/_reveal.scss +15 -0
- data/app/packs/stylesheets/decidim/modules/_upload_modal.scss +143 -0
- data/app/packs/stylesheets/decidim/utils/_fontface.scss +3 -0
- data/app/packs/stylesheets/decidim/vizzs/_linechart.scss +2 -2
- data/app/packs/stylesheets/decidim/vizzs/_rowchart.scss +2 -2
- data/app/permissions/decidim/permissions.rb +4 -8
- data/app/presenters/decidim/admin_log/area_type_presenter.rb +34 -0
- data/app/presenters/decidim/admin_log/attachment_collection_presenter.rb +35 -0
- data/app/presenters/decidim/admin_log/attachment_presenter.rb +27 -0
- data/app/presenters/decidim/admin_log/category_presenter.rb +36 -0
- data/app/presenters/decidim/admin_log/component_presenter.rb +35 -3
- data/app/presenters/decidim/admin_log/contextual_help_section_presenter.rb +33 -0
- data/app/presenters/decidim/admin_log/organization_presenter.rb +9 -4
- data/app/presenters/decidim/admin_log/scope_type_presenter.rb +34 -0
- data/app/presenters/decidim/admin_log/user_group_presenter.rb +1 -1
- data/app/presenters/decidim/admin_log/user_moderation_presenter.rb +1 -1
- data/app/presenters/decidim/home_stats_presenter.rb +8 -13
- data/app/presenters/decidim/log/base_presenter.rb +1 -1
- data/app/presenters/decidim/menu_item_presenter.rb +1 -1
- data/app/presenters/decidim/metric_charts_presenter.rb +7 -1
- data/app/presenters/decidim/nil_presenter.rb +3 -1
- data/app/presenters/decidim/notification_presenter.rb +1 -1
- data/app/presenters/decidim/notification_to_mailer_presenter.rb +39 -0
- data/app/presenters/decidim/notifications_digest_presenter.rb +42 -0
- data/app/presenters/decidim/official_author_presenter.rb +4 -0
- data/app/presenters/decidim/organization_presenter.rb +22 -0
- data/app/presenters/decidim/push_notification_presenter.rb +24 -0
- data/app/presenters/decidim/stats_presenter.rb +9 -8
- data/app/presenters/decidim/user_group_presenter.rb +1 -1
- data/app/presenters/decidim/user_presenter.rb +5 -13
- data/app/presenters/decidim/validation_errors_presenter.rb +1 -1
- data/app/queries/decidim/messaging/user_conversations.rb +1 -1
- data/app/queries/decidim/metric_manage.rb +1 -1
- data/app/queries/decidim/metrics/users_metric_manage.rb +6 -6
- data/app/queries/decidim/own_activities.rb +11 -0
- data/app/queries/decidim/participatory_processes_with_user_role.rb +1 -1
- data/app/{services/decidim/activity_search.rb → queries/decidim/public_activities.rb} +35 -78
- data/app/queries/decidim/public_components.rb +1 -1
- data/app/queries/decidim/similar_emendations.rb +1 -1
- data/app/queries/decidim/stats_users_count.rb +1 -1
- data/app/queries/decidim/user_groups/accepted_memberships.rb +1 -1
- data/app/queries/decidim/user_groups/accepted_user_groups.rb +1 -1
- data/app/queries/decidim/user_groups/accepted_users.rb +1 -1
- data/app/queries/decidim/user_groups/admin_memberships.rb +1 -1
- data/app/queries/decidim/user_groups/invited_memberships.rb +1 -1
- data/app/queries/decidim/user_groups/manageable_user_groups.rb +1 -1
- data/app/queries/decidim/user_groups/member_memberships.rb +1 -1
- data/app/scrubbers/decidim/user_input_scrubber.rb +5 -32
- data/app/services/decidim/{data_portability_exporter.rb → download_your_data_exporter.rb} +6 -6
- data/app/services/decidim/email_notification_generator.rb +2 -2
- data/app/services/decidim/engine_resolver.rb +66 -0
- data/app/services/decidim/events_manager.rb +1 -1
- data/app/services/decidim/iframe_disabler.rb +31 -0
- data/app/services/decidim/notification_generator_for_recipient.rb +1 -1
- data/app/services/decidim/notifications_digest_sending_decider.rb +18 -0
- data/app/services/decidim/notifications_subscriptions_persistor.rb +37 -0
- data/app/services/decidim/open_data_exporter.rb +1 -1
- data/app/services/decidim/resource_search.rb +17 -164
- data/app/services/decidim/send_push_notification.rb +59 -0
- data/app/services/decidim/traceability.rb +1 -2
- data/app/uploaders/decidim/application_uploader.rb +2 -12
- data/app/uploaders/decidim/cw/attachment_uploader.rb +1 -1
- data/app/uploaders/decidim/cw/{data_portability_uploader.rb → download_your_data_uploader.rb} +3 -3
- data/app/uploaders/decidim/cw/image_uploader.rb +2 -2
- data/app/uploaders/decidim/organization_favicon_uploader.rb +3 -2
- data/app/validators/etiquette_validator.rb +3 -7
- data/app/validators/passthru_validator.rb +29 -21
- data/app/validators/password_validator.rb +25 -4
- data/app/validators/uploader_image_dimensions_validator.rb +1 -1
- data/app/views/decidim/account/_account_notification.js.erb +20 -0
- data/app/views/decidim/account/_password_fields.html.erb +2 -2
- data/app/views/decidim/account/cancel_email_change.js.erb +6 -0
- data/app/views/decidim/account/resend_confirmation_instructions.erb +1 -0
- data/app/views/decidim/account/show.html.erb +19 -6
- data/app/views/decidim/application/{_attachments.html.erb → _attachments.erb} +2 -2
- data/app/views/decidim/application/_collection.html.erb +1 -1
- data/app/views/decidim/application/{_documents.html.erb → _documents.erb} +2 -2
- data/app/views/decidim/devise/confirmations/new.html.erb +1 -1
- data/app/views/decidim/devise/invitations/edit.html.erb +3 -4
- data/app/views/decidim/devise/omniauth_registrations/new.html.erb +3 -3
- data/app/views/decidim/devise/passwords/edit.html.erb +7 -5
- data/app/views/decidim/devise/passwords/new.html.erb +1 -1
- data/app/views/decidim/devise/registrations/edit.html.erb +41 -0
- data/app/views/decidim/devise/registrations/new.html.erb +5 -5
- data/app/views/decidim/devise/sessions/new.html.erb +2 -2
- data/app/views/decidim/{data_portability → download_your_data}/show.html.erb +2 -2
- data/app/views/decidim/export_mailer/download_your_data_export.html.erb +7 -0
- data/app/views/decidim/last_activities/index.html.erb +1 -1
- data/app/views/decidim/links/_modal.html.erb +1 -1
- data/app/views/decidim/links/new.html.erb +1 -1
- data/app/views/decidim/manifests/show.json.erb +31 -0
- data/app/views/decidim/messaging/conversations/_add_conversation_users.html.erb +5 -3
- data/app/views/decidim/messaging/conversations/_conversation.html.erb +5 -1
- data/app/views/decidim/messaging/conversations/_reply.html.erb +1 -1
- data/app/views/decidim/messaging/conversations/_start.html.erb +1 -3
- data/app/views/decidim/messaging/conversations/create.js.erb +1 -0
- data/app/views/decidim/newsletter_mailer/newsletter.html.erb +3 -3
- data/app/views/decidim/newsletters/show.html.erb +1 -1
- data/app/views/decidim/notification_mailer/event_received.html.erb +1 -1
- data/app/views/decidim/notifications_digest_mailer/_email_content.html.erb +11 -0
- data/app/views/decidim/notifications_digest_mailer/digest_mail.erb +27 -0
- data/app/views/decidim/notifications_settings/show.html.erb +79 -52
- data/app/views/decidim/offline/show.html.erb +9 -0
- data/app/views/decidim/pages/_standalone.html.erb +1 -1
- data/app/views/decidim/pages/_tabbed.html.erb +1 -1
- data/app/views/decidim/reported_mailer/hide.html.erb +1 -1
- data/app/views/decidim/reported_mailer/report.html.erb +1 -1
- data/app/views/decidim/scopes/picker.html.erb +1 -1
- data/app/views/decidim/searches/_filters.html.erb +2 -2
- data/app/views/decidim/shared/participatory_space_filters/_filters.html.erb +3 -3
- data/app/views/decidim/user_interests/show.html.erb +13 -11
- data/app/views/decidim/user_report_mailer/notify.html.erb +10 -3
- data/app/views/devise/mailer/confirmation_instructions.html.erb +3 -1
- data/app/views/layouts/decidim/_application.html.erb +6 -3
- data/app/views/layouts/decidim/_cookie_warning.html.erb +8 -8
- data/app/views/layouts/decidim/_decidim_javascript.html.erb +12 -0
- data/app/views/layouts/decidim/_head.html.erb +4 -2
- data/app/views/layouts/decidim/_js_configuration.html.erb +5 -1
- data/app/views/layouts/decidim/_mailer_logo.html.erb +2 -2
- data/app/views/layouts/decidim/_main_footer.html.erb +1 -0
- data/app/views/layouts/decidim/_offline_banner.html.erb +11 -0
- data/app/views/layouts/decidim/newsletter_base.html.erb +2 -2
- data/app/views/layouts/decidim/widget.html.erb +2 -2
- data/config/assets.rb +1 -0
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +86 -461
- data/config/locales/bg.yml +57 -32
- data/config/locales/ca.yml +246 -85
- data/config/locales/cs.yml +256 -97
- data/config/locales/da.yml +1 -3
- data/config/locales/de.yml +93 -159
- data/config/locales/el.yml +53 -137
- data/config/locales/en.yml +220 -59
- data/config/locales/eo.yml +8 -13
- data/config/locales/es-MX.yml +234 -73
- data/config/locales/es-PY.yml +236 -75
- data/config/locales/es.yml +244 -83
- data/config/locales/et.yml +1 -3
- data/config/locales/eu.yml +416 -479
- data/config/locales/fi-plain.yml +222 -61
- data/config/locales/fi.yml +236 -75
- data/config/locales/fr-CA.yml +218 -71
- data/config/locales/fr.yml +224 -77
- data/config/locales/ga-IE.yml +15 -9
- data/config/locales/gl.yml +112 -35
- data/config/locales/hr.yml +1 -3
- data/config/locales/hu.yml +106 -266
- data/config/locales/id-ID.yml +61 -35
- data/config/locales/is-IS.yml +12 -23
- data/config/locales/it.yml +66 -41
- data/config/locales/ja.yml +235 -83
- data/config/locales/ko.yml +1 -0
- data/config/locales/lb.yml +57 -38
- data/config/locales/lt.yml +1 -1788
- data/config/locales/lv.yml +55 -28
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +81 -39
- data/config/locales/no.yml +84 -41
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +127 -46
- data/config/locales/pt-BR.yml +52 -80
- data/config/locales/pt.yml +54 -35
- data/config/locales/ro-RO.yml +55 -43
- data/config/locales/ru.yml +35 -29
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk.yml +62 -45
- data/config/locales/sl.yml +6 -1
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +1 -10
- data/config/locales/sv.yml +127 -55
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +55 -40
- data/config/locales/uk.yml +30 -30
- data/config/locales/val-ES.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +53 -33
- data/config/locales/zh-TW.yml +1 -1721
- data/config/routes.rb +19 -22
- data/db/migrate/20180508111710_add_accepted_tos_version_field_to_users.rb +1 -0
- data/db/migrate/20181030090144_destroy_deleted_users_follows.rb +2 -1
- data/db/migrate/20181204110723_remove_following_users_count_from_users.rb +2 -11
- data/db/migrate/20181214101250_add_notification_types_to_users.rb +1 -6
- data/db/migrate/20190412131728_fix_user_names.rb +2 -9
- data/db/migrate/20200211173227_add_direct_message_types_to_users.rb +1 -6
- data/db/migrate/20210302150803_invalidate_all_sessions_for_deleted_users.rb +3 -10
- data/db/migrate/20210310120640_add_followable_counter_cache_to_users.rb +3 -13
- data/db/migrate/20210831181634_add_service_name_to_active_storage_blobs.active_storage.rb +22 -0
- data/db/migrate/20210831181635_create_active_storage_variant_records.active_storage.rb +14 -0
- data/db/migrate/20211208155453_create_decidim_reminders.rb +11 -0
- data/db/migrate/20211209121025_create_decidim_reminder_records.rb +11 -0
- data/db/migrate/20211209121040_create_decidim_reminder_deliveries.rb +10 -0
- data/db/migrate/20220118121921_change_required_description_categories.rb +7 -0
- data/db/migrate/20220127113419_add_notification_settings_to_users.rb +7 -0
- data/db/migrate/20220203121137_add_notifications_sending_frequency_to_users.rb +7 -0
- data/db/migrate/20220215172439_add_digest_sent_at_to_users.rb +7 -0
- data/db/migrate/20220323195258_add_index_to_decidim_users_notifications_sending_frequency.rb +7 -0
- data/db/migrate/20220427142214_drop_emails_on_notifications_flag_from_user.rb +15 -0
- data/db/migrate/20220518094535_add_previous_passwords_to_users.rb +20 -0
- data/db/migrate/20220524195530_create_decidim_short_links.rb +23 -0
- data/db/seeds.rb +17 -19
- data/lib/decidim/acts_as_tree.rb +47 -0
- data/lib/decidim/api/input_sorts/component_input_sort.rb +2 -1
- data/lib/decidim/api/interfaces/authorable_interface.rb +6 -5
- data/lib/decidim/api/types/localized_string_type.rb +0 -9
- data/lib/decidim/api/types/translated_field_type.rb +5 -20
- data/lib/decidim/asset_router.rb +80 -0
- data/lib/decidim/attachment_attributes.rb +8 -8
- data/lib/decidim/attribute_object/form.rb +174 -0
- data/lib/decidim/attribute_object/model.rb +148 -0
- data/lib/decidim/attribute_object/nested_validator.rb +22 -0
- data/lib/decidim/attribute_object/type_map.rb +14 -0
- data/lib/decidim/attribute_object/type_resolver.rb +91 -0
- data/lib/decidim/attribute_object.rb +26 -0
- data/lib/decidim/attributes/array.rb +62 -0
- data/lib/decidim/attributes/blob.rb +20 -0
- data/lib/decidim/attributes/clean_string.rb +12 -6
- data/lib/decidim/attributes/hash.rb +36 -0
- data/lib/decidim/attributes/integer.rb +17 -0
- data/lib/decidim/attributes/localized_date.rb +8 -14
- data/lib/decidim/attributes/model.rb +24 -0
- data/lib/decidim/attributes/object.rb +28 -0
- data/lib/decidim/attributes/symbol.rb +23 -0
- data/lib/decidim/attributes/time_with_zone.rb +7 -17
- data/lib/decidim/attributes.rb +29 -0
- data/lib/decidim/authorable.rb +21 -6
- data/lib/decidim/authorization_form_builder.rb +9 -11
- data/lib/decidim/carrier_wave_migrator_service.rb +15 -15
- data/lib/decidim/coauthorable.rb +22 -4
- data/lib/decidim/command.rb +44 -0
- data/lib/decidim/common_passwords.rb +1 -1
- data/lib/decidim/component_manifest.rb +5 -5
- data/lib/decidim/component_validator.rb +2 -2
- data/lib/decidim/content_block_manifest.rb +1 -1
- data/lib/decidim/content_parsers/hashtag_parser.rb +2 -2
- data/lib/decidim/content_parsers/resource_parser.rb +1 -1
- data/lib/decidim/content_parsers/user_group_parser.rb +1 -1
- data/lib/decidim/content_parsers/user_parser.rb +4 -4
- data/lib/decidim/content_renderers/hashtag_renderer.rb +1 -1
- data/lib/decidim/content_renderers/link_renderer.rb +2 -2
- data/lib/decidim/content_renderers/user_group_renderer.rb +1 -1
- data/lib/decidim/content_renderers/user_renderer.rb +1 -1
- data/lib/decidim/controller_helpers.rb +41 -0
- data/lib/decidim/core/engine.rb +35 -19
- data/lib/decidim/core/test/factories.rb +54 -21
- data/lib/decidim/core/test/shared_examples/admin_resource_gallery_examples.rb +16 -4
- data/lib/decidim/core/test/shared_examples/amendable/amendment_form_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/authorable_interface_examples.rb +15 -2
- data/lib/decidim/core/test/shared_examples/coauthorable_interface_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/comments_examples.rb +203 -60
- data/lib/decidim/core/test/shared_examples/errors.rb +0 -2
- data/lib/decidim/core/test/shared_examples/localised_email.rb +1 -1
- data/lib/decidim/core/test/shared_examples/logo_email.rb +1 -1
- data/lib/decidim/core/test/shared_examples/map_examples.rb +3 -6
- data/lib/decidim/core/test/shared_examples/preview_component_with_share_token_examples.rb +0 -6
- data/lib/decidim/core/test/shared_examples/resource_search_examples.rb +120 -40
- data/lib/decidim/core/test/shared_examples/resourceable.rb +0 -6
- data/lib/decidim/core/test/shared_examples/rich_text_editor_examples.rb +3 -7
- data/lib/decidim/core/test/shared_examples/searchable_participatory_space_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/searchable_resources_shared_context.rb +1 -1
- data/lib/decidim/core/test/shared_examples/system_endorse_resource_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/translated_event_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/with_endorsable_permissions_examples.rb +1 -1
- data/lib/decidim/core/test.rb +0 -4
- data/lib/decidim/core/version.rb +1 -1
- data/lib/decidim/core.rb +106 -55
- data/lib/decidim/{data_portability.rb → download_your_data.rb} +3 -3
- data/lib/decidim/{data_portability_serializers/data_portability_conversation_serializer.rb → download_your_data_serializers/download_your_data_conversation_serializer.rb} +2 -2
- data/lib/decidim/{data_portability_serializers/data_portability_follow_serializer.rb → download_your_data_serializers/download_your_data_follow_serializer.rb} +2 -2
- data/lib/decidim/{data_portability_serializers/data_portability_identity_serializer.rb → download_your_data_serializers/download_your_data_identity_serializer.rb} +2 -2
- data/lib/decidim/{data_portability_serializers/data_portability_notification_serializer.rb → download_your_data_serializers/download_your_data_notification_serializer.rb} +2 -2
- data/lib/decidim/{data_portability_serializers/data_portability_participatory_space_private_user_serializer.rb → download_your_data_serializers/download_your_data_participatory_space_private_user_serializer.rb} +2 -2
- data/lib/decidim/{data_portability_serializers/data_portability_report_serializer.rb → download_your_data_serializers/download_your_data_report_serializer.rb} +2 -2
- data/lib/decidim/{data_portability_serializers/data_portability_user_group_serializer.rb → download_your_data_serializers/download_your_data_user_group_serializer.rb} +2 -2
- data/lib/decidim/{data_portability_serializers/data_portability_user_serializer.rb → download_your_data_serializers/download_your_data_user_serializer.rb} +3 -3
- data/lib/decidim/download_your_data_serializers.rb +23 -0
- data/lib/decidim/endorsable.rb +1 -1
- data/lib/decidim/engine_router.rb +7 -1
- data/lib/decidim/env.rb +56 -0
- data/lib/decidim/event_recorder.rb +25 -0
- data/lib/decidim/events/base_event.rb +10 -14
- data/lib/decidim/events/simple_event.rb +6 -5
- data/lib/decidim/exporters/export_data.rb +1 -1
- data/lib/decidim/exporters/export_manifest.rb +2 -1
- data/lib/decidim/exporters.rb +1 -10
- data/lib/decidim/file_validator_humanizer.rb +24 -1
- data/lib/decidim/filterable_resource.rb +55 -0
- data/lib/decidim/fingerprint_calculator.rb +2 -4
- data/lib/decidim/form_builder.rb +174 -145
- data/lib/decidim/gamification/badge.rb +2 -3
- data/lib/decidim/gamification/badge_scorer.rb +1 -0
- data/lib/decidim/has_area.rb +27 -0
- data/lib/decidim/has_attachments.rb +2 -2
- data/lib/decidim/has_category.rb +36 -0
- data/lib/decidim/has_resource_permission.rb +2 -0
- data/lib/decidim/importers/import_manifest.rb +3 -21
- data/lib/decidim/jsonb_attributes.rb +6 -4
- data/lib/decidim/manifest_messages.rb +23 -0
- data/lib/decidim/map/autocomplete.rb +6 -4
- data/lib/decidim/map/frontend.rb +2 -2
- data/lib/decidim/map/provider/dynamic_map/here.rb +1 -46
- data/lib/decidim/map/provider/geocoding/here.rb +5 -5
- data/lib/decidim/map/provider/here.rb +3 -0
- data/lib/decidim/map/provider/osm.rb +3 -0
- data/lib/decidim/map.rb +4 -4
- data/lib/decidim/menu.rb +1 -1
- data/lib/decidim/metric_manifest.rb +2 -2
- data/lib/decidim/nicknamizable.rb +1 -1
- data/lib/decidim/notification_setting_manifest.rb +19 -0
- data/lib/decidim/organization_settings.rb +8 -7
- data/lib/decidim/participatory_space_context_manifest.rb +2 -2
- data/lib/decidim/participatory_space_manifest.rb +2 -2
- data/lib/decidim/participatory_space_resourceable.rb +1 -7
- data/lib/decidim/processes_file_locally.rb +31 -0
- data/lib/decidim/publicable.rb +0 -4
- data/lib/decidim/query.rb +84 -0
- data/lib/decidim/record_encryptor.rb +29 -8
- data/lib/decidim/reminder_manifest.rb +75 -0
- data/lib/decidim/reminder_registry.rb +67 -0
- data/lib/decidim/resource_manifest.rb +1 -1
- data/lib/decidim/resourceable.rb +15 -5
- data/lib/decidim/scopable.rb +15 -0
- data/lib/decidim/settings_manifest.rb +4 -4
- data/lib/decidim/spring.rb +16 -0
- data/lib/decidim/translatable_attributes.rb +13 -16
- data/lib/decidim/url_option_resolver.rb +50 -0
- data/lib/decidim/view_hooks.rb +1 -1
- data/lib/decidim/view_model.rb +5 -1
- data/lib/decidim/webpacker/thread_safe_compiler.rb +30 -0
- data/lib/decidim/webpacker/webpack/custom.js +15 -3
- data/lib/decidim/webpacker/webpacker.yml +1 -1
- data/lib/decidim/webpacker.rb +2 -0
- data/lib/devise/models/decidim_validatable.rb +1 -1
- data/lib/tasks/decidim_active_storage_migration_tasks.rake +1 -3
- data/lib/tasks/{decidim_data_portability_tasks.rake → decidim_download_your_data_tasks.rake} +9 -9
- data/lib/tasks/decidim_mailers_tasks.rake +23 -0
- data/lib/tasks/decidim_metrics_tasks.rake +1 -1
- data/lib/tasks/decidim_pwa_tasks.rake +18 -0
- data/lib/tasks/decidim_reminders_tasks.rake +17 -0
- data/lib/tasks/decidim_tasks.rake +6 -1
- data/lib/tasks/decidim_webpacker_tasks.rake +1 -1
- data/lib/tasks/upgrade/decidim_fix_nickname_uniqueness.rake +51 -0
- metadata +186 -105
- data/app/controllers/decidim/cookie_policy_controller.rb +0 -24
- data/app/helpers/decidim/cookies_helper.rb +0 -11
- 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/vizzs/renders.js +0 -9
- data/app/packs/src/decidim/vizzs.js +0 -1
- data/app/packs/stylesheets/decidim/modules/_cookie-bar.scss +0 -26
- data/app/scrubbers/decidim/admin_input_scrubber.rb +0 -27
- data/app/services/decidim/home_activity_search.rb +0 -80
- data/app/services/decidim/participatory_space_search.rb +0 -54
- data/app/views/decidim/cookie_policy/accept.js.erb +0 -3
- data/app/views/decidim/export_mailer/data_portability_export.html.erb +0 -7
- data/app/views/decidim/links/_invalid_url_modal.html.erb +0 -17
- data/app/views/decidim/links/invalid_url.js.erb +0 -24
- data/config/environment.rb +0 -3
- data/config/locales/fa-IR.yml +0 -1
- data/config/locales/gn-PY.yml +0 -4
- data/config/locales/ka-GE.yml +0 -4
- data/config/locales/kaa.yml +0 -5
- data/config/locales/lo-LA.yml +0 -1
- data/config/locales/oc-FR.yml +0 -3
- data/config/locales/sq-AL.yml +0 -1
- data/config/locales/th-TH.yml +0 -1
- data/db/migrate/20231027142329_change_default_value_for_decidim_endorsements.rb +0 -11
- data/lib/decidim/core/test/shared_examples/editor_shared_examples.rb +0 -10
- data/lib/decidim/core/test/shared_examples/mcell_examples.rb +0 -17
- data/lib/decidim/core/test/shared_examples/resource_endorsed_event_examples.rb +0 -60
- data/lib/decidim/core/test/shared_examples/versions_controller_examples.rb +0 -40
- data/lib/decidim/data_portability_serializers.rb +0 -23
- data/lib/decidim/dependency_resolver.rb +0 -278
- data/lib/decidim/middleware/rails_cookies.rb +0 -23
- data/lib/tasks/upgrade/decidim_deduplicate_endorsements.rake +0 -53
- data/lib/tasks/upgrade/decidim_user_moderation.rake +0 -14
- /data/app/packs/src/decidim/vizzs/{metrics.js → index.js} +0 -0
- /data/app/views/decidim/application/{_document.html.erb → _document.erb} +0 -0
- /data/app/views/decidim/application/{_photos.html.erb → _photos.erb} +0 -0
- /data/app/views/decidim/{data_portability → download_your_data}/export.html.erb +0 -0
@@ -4,12 +4,12 @@
|
|
4
4
|
<% if (documents_without_collection = documents.reject(&:attachment_collection_id?)).any? %>
|
5
5
|
<div class="card card--list">
|
6
6
|
<% documents_without_collection.each do |document| %>
|
7
|
-
<%= render partial: "decidim/application/document
|
7
|
+
<%= render partial: "decidim/application/document", locals: { document: document } %>
|
8
8
|
<% end %>
|
9
9
|
</div>
|
10
10
|
<% end %>
|
11
11
|
<% documents.select(&:attachment_collection_id?).group_by(&:attachment_collection).sort_by { |c, d| c.weight }.each do |collection, documents| %>
|
12
|
-
<%= render partial: "decidim/application/collection
|
12
|
+
<%= render partial: "decidim/application/collection", locals: { attachment_collection: collection, documents: documents } %>
|
13
13
|
<% end %>
|
14
14
|
</div>
|
15
15
|
<% end %>
|
@@ -16,7 +16,7 @@
|
|
16
16
|
<%= render "devise/shared/error_messages", resource: resource %>
|
17
17
|
|
18
18
|
<div class="field">
|
19
|
-
<%= f.email_field :email, autofocus: true, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
|
19
|
+
<%= f.email_field :email, autofocus: true, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email), autocomplete: "email" %>
|
20
20
|
</div>
|
21
21
|
|
22
22
|
<div class="actions">
|
@@ -21,17 +21,16 @@
|
|
21
21
|
|
22
22
|
<div class="user-nickname">
|
23
23
|
<div class="field">
|
24
|
-
<%= f.text_field :nickname, help_text: t("devise.invitations.edit.nickname_help", organization: current_organization.name), required: "required", prefix: { value: "@", small: 1, large: 1 } %>
|
24
|
+
<%= f.text_field :nickname, help_text: t("devise.invitations.edit.nickname_help", organization: current_organization.name), required: "required", prefix: { value: "@", small: 1, large: 1 }, autocomplete: "nickname" %>
|
25
25
|
</div>
|
26
26
|
</div>
|
27
27
|
|
28
28
|
<% if f.object.class.require_password_on_accepting %>
|
29
29
|
<div class="field">
|
30
|
-
<p><%= f.password_field :password,
|
30
|
+
<p><%= f.password_field :password, password_field_options_for(:user).except(:help_text) %></p>
|
31
31
|
</div>
|
32
|
-
|
33
32
|
<div class="field">
|
34
|
-
<p><%= f.password_field :password_confirmation,
|
33
|
+
<p><%= f.password_field :password_confirmation, password_field_options_for(:user).except(:help_text) %></p>
|
35
34
|
</div>
|
36
35
|
<% end %>
|
37
36
|
</div>
|
@@ -18,18 +18,18 @@
|
|
18
18
|
|
19
19
|
<div class="user-person">
|
20
20
|
<div class="field">
|
21
|
-
<%= f.text_field :name, help_text: t(".username_help") %>
|
21
|
+
<%= f.text_field :name, help_text: t(".username_help"), autocomplete: "name" %>
|
22
22
|
</div>
|
23
23
|
</div>
|
24
24
|
|
25
25
|
<div class="user-person">
|
26
26
|
<div class="field">
|
27
|
-
<%= f.text_field :nickname, help_text: t(".nickname_help", organization: current_organization.name) %>
|
27
|
+
<%= f.text_field :nickname, help_text: t(".nickname_help", organization: current_organization.name), autocomplete: "nickname" %>
|
28
28
|
</div>
|
29
29
|
</div>
|
30
30
|
|
31
31
|
<div class="field">
|
32
|
-
<%= f.email_field :email %>
|
32
|
+
<%= f.email_field :email, autocomplete: "email" %>
|
33
33
|
</div>
|
34
34
|
|
35
35
|
<%= f.hidden_field :uid %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="row collapse">
|
3
3
|
<div class="row collapse">
|
4
4
|
<div class="columns large-8 large-centered text-center page-title">
|
5
|
-
<h1><%= t("devise.passwords.edit.
|
5
|
+
<h1><%= t("devise.passwords.edit.title") %></h1>
|
6
6
|
</div>
|
7
7
|
</div>
|
8
8
|
|
@@ -10,17 +10,17 @@
|
|
10
10
|
<div class="columns medium-7 large-5 medium-centered">
|
11
11
|
<div class="card">
|
12
12
|
<div class="card__content">
|
13
|
-
<%= decidim_form_for(resource, namespace: "password", as: resource_name, url: password_path(resource_name), html: { method: :put, class: "register-form new_user" }) do |f| %>
|
13
|
+
<%= decidim_form_for(resource, namespace: "password", as: resource_name, url: @send_path || password_path(resource_name), html: { method: :put, class: "register-form new_user" }) do |f| %>
|
14
14
|
<%= form_required_explanation %>
|
15
15
|
|
16
16
|
<%= f.hidden_field :reset_password_token %>
|
17
17
|
|
18
18
|
<div class="field">
|
19
|
-
<%= f.password_field :password,
|
19
|
+
<%= f.password_field :password, password_field_options_for(current_user || params["reset_password_token"]) %>
|
20
20
|
</div>
|
21
21
|
|
22
22
|
<div class="field">
|
23
|
-
<%= f.password_field :password_confirmation,
|
23
|
+
<%= f.password_field :password_confirmation, password_field_options_for(current_user || params["reset_password_token"]).except(:help_text) %>
|
24
24
|
</div>
|
25
25
|
|
26
26
|
<div class="actions">
|
@@ -28,7 +28,9 @@
|
|
28
28
|
</div>
|
29
29
|
<% end %>
|
30
30
|
|
31
|
-
|
31
|
+
<% unless current_user %>
|
32
|
+
<%= render "decidim/devise/shared/links" %>
|
33
|
+
<% end %>
|
32
34
|
</div>
|
33
35
|
</div>
|
34
36
|
</div>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<div class="card__content">
|
15
15
|
<%= decidim_form_for(resource, namespace: "password", as: resource_name, url: password_path(resource_name), html: { method: :post, class: "register-form new_user" }) do |f| %>
|
16
16
|
<div class="field">
|
17
|
-
<%= f.email_field :email, autofocus: true %>
|
17
|
+
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
|
18
18
|
</div>
|
19
19
|
|
20
20
|
<div class="actions">
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<h2><%= t("devise.registrations.edit.title", resource: resource_class.model_name.human) %></h2>
|
2
|
+
|
3
|
+
<%= decidim_form_for(resource, namespace: "registration", as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
|
4
|
+
<%= render "devise/shared/error_messages", resource: resource %>
|
5
|
+
<%= form_required_explanation %>
|
6
|
+
<%= invisible_captcha %>
|
7
|
+
|
8
|
+
<div class="field">
|
9
|
+
<%= f.email_field :email, autocomplete: "email" %>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
13
|
+
<p>
|
14
|
+
<%= t("devise.registrations.edit.currently_waiting_confirmation_for_email", email: resource.unconfirmed_email) %>
|
15
|
+
</p>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
<div class="field">
|
19
|
+
<%= f.password_field :password, password_field_options_for(current_user) %>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<div class="field">
|
23
|
+
<%= f.password_field :password_confirmation, password_field_options_for(current_user).except(:help_text) %>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div class="field">
|
27
|
+
<%= f.password_field :current_password, autocomplete: "current-password" %>
|
28
|
+
</div>
|
29
|
+
|
30
|
+
<div class="field">
|
31
|
+
<%= f.text_field :name, autocomplete: "name" %>
|
32
|
+
</div>
|
33
|
+
|
34
|
+
<div><%= f.submit t("devise.registrations.edit.update") %></div>
|
35
|
+
<% end %>
|
36
|
+
|
37
|
+
<h3><%= t("devise.registrations.edit.cancel_my_account") %></h3>
|
38
|
+
|
39
|
+
<p><%= t("devise.registrations.edit.unhappy") %> <%= link_to t("devise.registrations.edit.cancel_my_account"), registration_path(resource_name), data: { confirm: t("devise.registrations.edit.are_you_sure") }, method: :delete %>.</p>
|
40
|
+
|
41
|
+
<%= link_to t("devise.shared.links.back"), :back %>
|
@@ -34,26 +34,26 @@
|
|
34
34
|
|
35
35
|
<div class="user-person">
|
36
36
|
<div class="field">
|
37
|
-
<%= f.text_field :name, help_text: t(".username_help") %>
|
37
|
+
<%= f.text_field :name, help_text: t(".username_help"), autocomplete: "name" %>
|
38
38
|
</div>
|
39
39
|
</div>
|
40
40
|
|
41
41
|
<div class="user-nickname">
|
42
42
|
<div class="field">
|
43
|
-
<%= f.text_field :nickname, help_text: t(".nickname_help", organization: current_organization.name), prefix: { value: "@", small: 1, large: 1 } %>
|
43
|
+
<%= f.text_field :nickname, help_text: t(".nickname_help", organization: current_organization.name), prefix: { value: "@", small: 1, large: 1 }, autocomplete: "nickname" %>
|
44
44
|
</div>
|
45
45
|
</div>
|
46
46
|
|
47
47
|
<div class="field">
|
48
|
-
<%= f.email_field :email %>
|
48
|
+
<%= f.email_field :email, autocomplete: "email" %>
|
49
49
|
</div>
|
50
50
|
|
51
51
|
<div class="field">
|
52
|
-
<%= f.password_field :password,
|
52
|
+
<%= f.password_field :password, password_field_options_for(:user) %>
|
53
53
|
</div>
|
54
54
|
|
55
55
|
<div class="field">
|
56
|
-
<%= f.password_field :password_confirmation %>
|
56
|
+
<%= f.password_field :password_confirmation, password_field_options_for(:user).except(:help_text) %>
|
57
57
|
</div>
|
58
58
|
</div>
|
59
59
|
</div>
|
@@ -33,10 +33,10 @@
|
|
33
33
|
<%= decidim_form_for(resource, namespace: "session", as: resource_name, url: session_path(resource_name), html: { class: "register-form new_user" }) do |f| %>
|
34
34
|
<div>
|
35
35
|
<div class="field">
|
36
|
-
<%= f.email_field :email %>
|
36
|
+
<%= f.email_field :email, autocomplete: "email" %>
|
37
37
|
</div>
|
38
38
|
<div class="field">
|
39
|
-
<%= f.password_field :password, autocomplete: "
|
39
|
+
<%= f.password_field :password, autocomplete: "current-password" %>
|
40
40
|
</div>
|
41
41
|
</div>
|
42
42
|
<% if devise_mapping.rememberable? %>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<% add_decidim_page_title(t("my_data", scope: "layouts.decidim.user_profile")) %>
|
2
2
|
<% content_for(:subtitle) { t("my_data", scope: "layouts.decidim.user_profile") } %>
|
3
3
|
|
4
|
-
<div class="data
|
4
|
+
<div class="row download-your-data">
|
5
5
|
<strong><%= t(".download_data") %></strong>
|
6
6
|
<p><%= t(".download_data_description", user_email: current_user.email).html_safe %></p>
|
7
|
-
<%= button_to t(".request_data"),
|
7
|
+
<%= button_to t(".request_data"), export_download_your_data_path, class: "button", data: { disable: true } %>
|
8
8
|
</div>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<p class="email-instructions">
|
2
|
+
<%= t(".click_button", password: @password, date: l(Decidim.download_your_data_expiry_time.from_now, format: :decidim_short) ).html_safe %><br>
|
3
|
+
</p>
|
4
|
+
|
5
|
+
<p class="email-button email-button__cta">
|
6
|
+
<%= link_to t(".download"), download_file_download_your_data_url(host: @organization.host, filename: @filename), class: "button expanded hollow button--sc" %>
|
7
|
+
</p>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<div class="columns mediumlarge-4 large-3">
|
8
8
|
<div class="card card--secondary show-for-mediumlarge">
|
9
9
|
<%= filter_form_for filter, last_activities_path do |form| %>
|
10
|
-
<%= form.collection_radio_buttons :
|
10
|
+
<%= form.collection_radio_buttons :with_resource_type, resource_types, :first, :last, legend_title: t(".resource_type") %>
|
11
11
|
<% end %>
|
12
12
|
</div>
|
13
13
|
</div>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
</div>
|
14
14
|
</div>
|
15
15
|
<div class="row buttons">
|
16
|
-
<%= link_to t("decidim.links.warning.proceed"), external_url
|
16
|
+
<%= link_to t("decidim.links.warning.proceed"), params[:external_url], target: "_blank", data: { close: "" }, class: "button primary button--nomargin" %>
|
17
17
|
<button class="button clear" data-close>
|
18
18
|
<%= t("decidim.links.warning.cancel") %>
|
19
19
|
</button>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
</div>
|
13
13
|
<div class="row">
|
14
14
|
<div class="columns large-12 text-center">
|
15
|
-
<%= link_to t("decidim.links.warning.proceed"), external_url
|
15
|
+
<%= link_to t("decidim.links.warning.proceed"), params[:external_url], class: "button expanded primary" %>
|
16
16
|
</div>
|
17
17
|
</div>
|
18
18
|
</div>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"name": "<%= organization_params.html_name %>",
|
3
|
+
"lang": "<%= organization_params.default_locale %>",
|
4
|
+
"description": "<%= organization_params.translated_description %>",
|
5
|
+
"display": "<%= organization_params.pwa_display %>",
|
6
|
+
"start_url": "<%= organization_params.start_url %>",
|
7
|
+
"theme_color": "<%= organization_params.colors["theme"] %>",
|
8
|
+
"background_color": "<%= organization_params.colors["theme"] %>",
|
9
|
+
"icons": [
|
10
|
+
{
|
11
|
+
"src": "<%= current_organization.attached_uploader(:favicon).variant_path :small %>",
|
12
|
+
"sizes": "32x32",
|
13
|
+
"type": "image/png"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"src": "<%= current_organization.attached_uploader(:favicon).variant_path :medium %>",
|
17
|
+
"sizes": "180x180",
|
18
|
+
"type": "image/png"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"src": "<%= current_organization.attached_uploader(:favicon).variant_path :big %>",
|
22
|
+
"sizes": "192x192",
|
23
|
+
"type": "image/png"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"src": "<%= current_organization.attached_uploader(:favicon).variant_path :huge %>",
|
27
|
+
"sizes": "512x512",
|
28
|
+
"type": "image/png"
|
29
|
+
}
|
30
|
+
]
|
31
|
+
}
|
@@ -6,17 +6,19 @@
|
|
6
6
|
</div>
|
7
7
|
</div>
|
8
8
|
<div class="row">
|
9
|
-
<div class="row columns
|
9
|
+
<div class="row columns multiple-mentions" data-name="recipient_id[]" data-multiple="true">
|
10
10
|
<label for="add_conversation_users"><%= t(".add_max_users") %></label>
|
11
11
|
<input id="add_conversation_users" type="text"
|
12
|
-
|
12
|
+
spellcheck="false"
|
13
|
+
autocomplete="off"
|
13
14
|
placeholder="<%= t(".add_users_placeholder") %>"
|
14
15
|
data-noresults="<%= t(".no_results") %>"
|
16
|
+
data-selected="multiple-mentions-selected"
|
15
17
|
contenteditable="true"
|
16
18
|
data-direct-messages-disabled="<%= t("decidim.messaging.conversations.add_conversation_users.participant_with_disabled_message_reception") %>">
|
17
19
|
</div>
|
18
20
|
<div class="columns large-12">
|
19
|
-
<
|
21
|
+
<ul class="multiple-mentions-selected"></ul>
|
20
22
|
</div>
|
21
23
|
</div>
|
22
24
|
</div>
|
@@ -33,7 +33,11 @@
|
|
33
33
|
<span class="text-small">
|
34
34
|
<%= t("last_message", scope: "decidim.messaging.conversations.index") %>:
|
35
35
|
<strong>
|
36
|
-
|
36
|
+
<% if I18n.locale != :en %>
|
37
|
+
<%= t("ago", scope: "decidim.messaging.conversations.index") %> <%= time_ago_in_words(Time.parse(conversation.last_message.created_at.to_s)) %>
|
38
|
+
<% else %>
|
39
|
+
<%= time_ago_in_words(Time.parse(conversation.last_message.created_at.to_s)) %> <%= t("ago", scope: "decidim.messaging.conversations.index") %>
|
40
|
+
<% end %>
|
37
41
|
</strong>
|
38
42
|
</span>
|
39
43
|
</div>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
<%= decidim_form_for form, url: decidim.conversation_path(conversation.id), method: :put, remote: true do |f| %>
|
7
7
|
<%= f.label :body, nil, class: "show-for-sr" %>
|
8
|
-
<%= f.text_area :body, label: false, rows: 4, required: true, placeholder: t(".placeholder") %>
|
8
|
+
<%= f.text_area :body, label: false, rows: 4, required: true, placeholder: t(".placeholder"), data: { input_emoji: true } %>
|
9
9
|
|
10
10
|
<%= f.submit t(".send"), class: "button pull-right", data: { disable: true } %>
|
11
11
|
<% end %>
|
@@ -6,13 +6,11 @@
|
|
6
6
|
</h2>
|
7
7
|
|
8
8
|
<%= decidim_form_for form, url: decidim.conversations_path, remote: true do |f| %>
|
9
|
-
<%= form_required_explanation %>
|
10
|
-
|
11
9
|
<% @form.recipient.each do |recipient| %>
|
12
10
|
<%= f.hidden_field :recipient_id, id: nil, name: "conversation[recipient_id][]", value: recipient.id %>
|
13
11
|
<% end %>
|
14
12
|
<%= f.label :body, nil, class: "show-for-sr" %>
|
15
|
-
<%= f.text_area :body, label: false, rows: 4, required: true %>
|
13
|
+
<%= f.text_area :body, label: false, rows: 4, required: true, data: { input_emoji: true } %>
|
16
14
|
|
17
15
|
<%= f.submit t(".send") %>
|
18
16
|
<% end %>
|
@@ -1,3 +1,4 @@
|
|
1
1
|
$("#messages").append("<%= j(render "messages", sender: conversation.messages.first.sender, messages: [conversation.messages.first]).html_safe %>");
|
2
2
|
$(".add-message").replaceWith("<%= j(render "reply", form: form, conversation: conversation).html_safe %>");
|
3
3
|
$("#new_message_").foundation();
|
4
|
+
Decidim.addInputEmoji();
|
@@ -1,16 +1,16 @@
|
|
1
1
|
<%= decidim_sanitize_newsletter cell.to_s %>
|
2
2
|
|
3
3
|
<% content_for :note do %>
|
4
|
-
<%== t ".note", organization_name: h(@organization.name), link:
|
4
|
+
<%== t ".note", organization_name: h(@organization.name), link: decidim.notifications_settings_url(host: @organization.host) %>
|
5
5
|
<% end %>
|
6
6
|
|
7
7
|
<% content_for :unsubscribe do %>
|
8
|
-
<%== t ".unsubscribe", link:
|
8
|
+
<%== t ".unsubscribe", link: decidim.unsubscribe_newsletters_url(host: @organization.host, u: @encrypted_token ) %>
|
9
9
|
<% end %>
|
10
10
|
|
11
11
|
<% content_for :see_on_website do %>
|
12
12
|
<center style="display: none">
|
13
13
|
<%== CGI.unescapeHTML truncate(cell.body, max_length: 50) %>
|
14
14
|
</center>
|
15
|
-
<%== t ".see_on_website", link: @
|
15
|
+
<%== t ".see_on_website", link: decidim.newsletter_url(host: @organization.host, id: @newsletter) %>
|
16
16
|
<% end %>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
newsletter: newsletter,
|
6
6
|
recipient_user: @user
|
7
7
|
) %>
|
8
|
-
<%=
|
8
|
+
<%= decidim_sanitize_editor @cell.to_s %>
|
9
9
|
|
10
10
|
<% content_for :note do %>
|
11
11
|
<%== t "note", scope: "decidim.newsletter_mailer.newsletter", organization_name: h(@organization.name), link: decidim.notifications_settings_url(host: @organization.host) %>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
<% if @event_instance.resource_path.present? && @event_instance.resource_title.present? %>
|
6
6
|
<p class="email-button email-button__cta">
|
7
|
-
<%= link_to
|
7
|
+
<%= link_to @event_instance.resource_title, @event_instance.resource_url %>
|
8
8
|
</p>
|
9
9
|
<% end %>
|
10
10
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<div class="email-content-notification">
|
2
|
+
<span class="email-notification-date"> <%= notification.date_time %> </span>
|
3
|
+
<p class="email-instructions">
|
4
|
+
<%= notification.email_intro %>
|
5
|
+
</p>
|
6
|
+
<% if notification.resource_path.present? && notification.resource_title.present? %>
|
7
|
+
<p class="email-button email-button__cta">
|
8
|
+
<%= link_to notification.resource_title, notification.resource_url %>
|
9
|
+
</p>
|
10
|
+
<% end %>
|
11
|
+
</div>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<div class="email-notifications-digest">
|
2
|
+
<div>
|
3
|
+
<p class="email-header"> <%= @notifications_digest.header %> </p>
|
4
|
+
<p class="email-header email-header--right"> <%= @notifications_digest.formated_date(Date.today) %> </p>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<p class="email-greeting"><%= @notifications_digest.greeting %></p>
|
8
|
+
<p class="email-intro"><%= @notifications_digest.intro %></p>
|
9
|
+
|
10
|
+
<div class="email-content-notifications">
|
11
|
+
<% length = @notifications.size - 1 %>
|
12
|
+
<% @notifications.each_with_index do |notification, i| %>
|
13
|
+
<%= render("decidim/notifications_digest_mailer/email_content", notification: notification) %>
|
14
|
+
<% if i < length %>
|
15
|
+
<hr class="email-element-separator">
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<% if(@display_see_more_message) %>
|
21
|
+
<div>
|
22
|
+
<%= link_to @notifications_digest.see_more, decidim.notifications_url(host: @organization.host), class: "email-btn" %>
|
23
|
+
</div>
|
24
|
+
<% end %>
|
25
|
+
|
26
|
+
<p class="email-closing"><%= @notifications_digest.outro %></p>
|
27
|
+
</div>
|
@@ -1,60 +1,87 @@
|
|
1
1
|
<% add_decidim_page_title(t("notifications_settings", scope: "layouts.decidim.user_profile")) %>
|
2
2
|
<% content_for(:subtitle) { t("notifications_settings", scope: "layouts.decidim.user_profile") } %>
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<%= f.
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<%= f.
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
<%= f.
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
<% end %>
|
28
|
-
</div>
|
29
|
-
|
30
|
-
<p><strong><%= t(".newsletters") %></strong></p>
|
31
|
-
<div class="switch tiny switch-with-label newsletter_notifications">
|
32
|
-
<label>
|
33
|
-
<%= f.check_box :newsletter_notifications, label: false, class: "switch-input" %>
|
34
|
-
<span class="switch-paddle"></span>
|
35
|
-
<span class="switch-label"><%= t(".newsletter_notifications") %></span>
|
36
|
-
</label>
|
37
|
-
</div>
|
38
|
-
|
39
|
-
<p><strong><%= t(".direct_messages") %></strong></p>
|
40
|
-
<div class="switch tiny switch-with-label allow_public_contact">
|
41
|
-
<label>
|
42
|
-
<%= f.check_box :allow_public_contact, label: false, class: "switch-input" %>
|
43
|
-
<span class="switch-paddle"></span>
|
44
|
-
<span class="switch-label"><%= t(".allow_public_contact") %></span>
|
45
|
-
</label>
|
46
|
-
</div>
|
47
|
-
|
48
|
-
<% if current_user.moderator? %>
|
49
|
-
<p><strong><%= t(".administrators") %></strong></p>
|
50
|
-
<div class="switch tiny switch-with-label email_on_moderations">
|
4
|
+
<div class="row mb-m">
|
5
|
+
<%= form_for(@notifications_settings, url: notifications_settings_path, method: :put, class: "user-form") do |f| %>
|
6
|
+
<p><strong><%= t(".receive_notifications_about") %></strong></p>
|
7
|
+
<div class="switch tiny switch-with-label notifications_from_own_activity">
|
8
|
+
<%= f.label :notifications_from_own_activity do %>
|
9
|
+
<%= f.check_box :notifications_from_own_activity, label: false, class: "switch-input" %>
|
10
|
+
<span class="switch-paddle"></span>
|
11
|
+
<span class="switch-label"><%= t(".own_activity") %></span>
|
12
|
+
<% end %>
|
13
|
+
</div>
|
14
|
+
<div class="switch tiny switch-with-label notifications_from_followed">
|
15
|
+
<%= f.label :notifications_from_followed do %>
|
16
|
+
<%= f.check_box :notifications_from_followed, label: false, class: "switch-input" %>
|
17
|
+
<span class="switch-paddle"></span>
|
18
|
+
<span class="switch-label"><%= t(".everything_followed") %></span>
|
19
|
+
<% end %>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<p><strong><%= t(".notifications_sending_frequency") %></strong></p>
|
23
|
+
<%= f.collection_radio_buttons :notifications_sending_frequency, frequencies_collection, :first, :last, { checked: @notifications_settings.notifications_sending_frequency || "daily" } %>
|
24
|
+
|
25
|
+
<p><strong><%= t(".newsletters") %></strong></p>
|
26
|
+
<div class="switch tiny switch-with-label newsletter_notifications">
|
51
27
|
<label>
|
52
|
-
<%= f.check_box :
|
28
|
+
<%= f.check_box :newsletter_notifications, label: false, class: "switch-input" %>
|
53
29
|
<span class="switch-paddle"></span>
|
54
|
-
<span class="switch-label"><%= t(".
|
30
|
+
<span class="switch-label"><%= t(".newsletter_notifications") %></span>
|
55
31
|
</label>
|
56
32
|
</div>
|
57
|
-
<% end %>
|
58
33
|
|
59
|
-
|
60
|
-
|
34
|
+
<p><strong><%= t(".direct_messages") %></strong></p>
|
35
|
+
<div class="switch tiny switch-with-label allow_public_contact">
|
36
|
+
<label>
|
37
|
+
<%= f.check_box :allow_public_contact, label: false, class: "switch-input" %>
|
38
|
+
<span class="switch-paddle"></span>
|
39
|
+
<span class="switch-label"><%= t(".allow_public_contact") %></span>
|
40
|
+
</label>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<% if @notifications_settings.user_is_moderator?(current_user) %>
|
44
|
+
<p><strong><%= t(".administrators") %></strong></p>
|
45
|
+
<div class="switch tiny switch-with-label email_on_moderations">
|
46
|
+
<label>
|
47
|
+
<%= f.check_box :email_on_moderations, label: false, class: "switch-input" %>
|
48
|
+
<span class="switch-paddle"></span>
|
49
|
+
<span class="switch-label"><%= t(".email_on_moderations") %></span>
|
50
|
+
</label>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
<% Decidim.notification_settings_registry.manifests.filter{ |a| a.settings_area == :administrators }.each do |manifest| %>
|
54
|
+
<div class="switch tiny switch-with-label notification_settings">
|
55
|
+
<label>
|
56
|
+
<%= f.check_box "notification_settings[#{manifest.name}]",
|
57
|
+
checked: ["1", true].include?(current_user.notification_settings.fetch(manifest.name.to_s, manifest.default_value)),
|
58
|
+
label: false,
|
59
|
+
class: "switch-input" %>
|
60
|
+
<span class="switch-paddle"></span>
|
61
|
+
<span class="switch-label"><%= t(".notification_settings.#{manifest.name}") %></span>
|
62
|
+
</label>
|
63
|
+
</div>
|
64
|
+
<% end %>
|
65
|
+
|
66
|
+
<% end %>
|
67
|
+
|
68
|
+
<% if @notifications_settings.meet_push_notifications_requirements? %>
|
69
|
+
<div class="push-notifications js-sw-mandatory">
|
70
|
+
<p><strong><%= t(".push_notifications") %></strong></p>
|
71
|
+
<p id="push-notifications-reminder" class="push-notifications__reminder"><i><%= t(".push_notifications_reminder") %></i></p>
|
72
|
+
<div class="switch tiny switch-with-label allow_push_notifications">
|
73
|
+
<label>
|
74
|
+
<%= check_box_tag :allow_push_notifications, 0, false, class: "switch-input" %>
|
75
|
+
<span class="switch-paddle"></span>
|
76
|
+
<span class="switch-label"><%= t(".allow_push_notifications") %></span>
|
77
|
+
</label>
|
78
|
+
</div>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<input id="vapidPublicKey" name="vapid_public_key" type="hidden" value="<%= Base64.urlsafe_decode64(Rails.application.secrets.vapid[:public_key]).bytes %>">
|
82
|
+
<input id="subKeys" name="sub_key" type="hidden" value="<%= current_user.notifications_subscriptions.keys %>">
|
83
|
+
<% end %>
|
84
|
+
|
85
|
+
<%= f.submit t(".update_notifications_settings") %>
|
86
|
+
<% end %>
|
87
|
+
</div>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<div id="offline-fallback-html" style="text-align:center;padding:1rem">
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="5rem" height="r5em" viewBox="0 0 25 25">
|
3
|
+
<path
|
4
|
+
d="m20.293 4-1.477 1.477A4.473 4.473 0 0 0 11.17 7.33 4.362 4.362 0 0 0 9.5 7a4.486 4.486 0 0 0-4.23 3.01 4.49 4.49 0 0 0 .042 8.971L4 20.293l.707.707L21 4.707zM19.99 8.21a3.936 3.936 0 0 0-.16-.92L8.12 19H18.5a5.497 5.497 0 0 0 1.49-10.79z"
|
5
|
+
style="fill:#1a181d" />
|
6
|
+
</svg>
|
7
|
+
<h3><%= t(".message") %></h3>
|
8
|
+
<button class="button large button--sc mt-s" onclick="location.reload()"><%= t(".retry") %></button>
|
9
|
+
</div>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
<div class="columns small-12">
|
12
12
|
<div class="card">
|
13
|
-
<div class="card__content"><%=
|
13
|
+
<div class="card__content"><%= decidim_sanitize_editor translated_attribute page.content %></div>
|
14
14
|
</div>
|
15
15
|
</div>
|
16
16
|
|