decidim-core 0.21.0 → 0.22.0
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/app/assets/config/decidim_core_manifest.js +3 -0
- data/app/assets/fonts/decidim/Roboto-Regular.svg +1 -10520
- data/app/assets/fonts/decidim/Source_Sans_Pro_400.svg +1 -345
- data/app/assets/fonts/decidim/Source_Sans_Pro_600.svg +1 -339
- data/app/assets/fonts/decidim/Source_Sans_Pro_900.svg +1 -342
- data/app/assets/images/decidim/avatar-multiuser.png +0 -0
- data/app/assets/images/decidim/brands/google.svg +1 -1
- data/app/assets/images/decidim/decidim-logo.svg +1 -71
- data/app/assets/images/decidim/default-avatar.svg +1 -14
- data/app/assets/images/decidim/gamification/badges/followers.svg +1 -115
- data/app/assets/images/decidim/gamification/badges/invitations.svg +1 -117
- data/app/assets/images/decidim/icons.svg +1 -259
- data/app/assets/images/decidim/placeholder.jpg +0 -0
- data/app/assets/javascripts/decidim.js.es6 +23 -1
- data/app/assets/javascripts/decidim/ajax_modals.js.es6 +3 -0
- data/app/assets/javascripts/decidim/assets.js.erb +5 -0
- data/app/assets/javascripts/decidim/callout.js.es6 +18 -0
- data/app/assets/javascripts/decidim/configuration.js.es6 +23 -0
- data/app/assets/javascripts/decidim/confirm.js.es6 +178 -0
- data/app/assets/javascripts/decidim/conversations.js.es6 +17 -0
- data/app/assets/javascripts/decidim/core/bundle.js +1 -1
- data/app/assets/javascripts/decidim/core/bundle.js.map +1 -1
- data/app/assets/javascripts/decidim/core/extrapoly.js +6 -0
- data/app/assets/javascripts/decidim/data_picker.js.es6 +128 -50
- data/app/assets/javascripts/decidim/diff_mode_dropdown.js.es6 +5 -7
- data/app/assets/javascripts/decidim/dropdowns_menus.js.es6 +32 -0
- data/app/assets/javascripts/decidim/external_link.js.es6 +69 -0
- data/app/assets/javascripts/decidim/floating_help.js.es6 +7 -0
- data/app/assets/javascripts/decidim/form_filter.component.js.es6 +1 -1
- data/app/assets/javascripts/decidim/form_filter.component.test.js +4 -4
- data/app/assets/javascripts/decidim/form_validator.es6 +61 -0
- data/app/assets/javascripts/decidim/foundation.js.es6 +28 -28
- data/app/assets/javascripts/decidim/icon.js.es6 +42 -0
- data/app/assets/javascripts/decidim/identity_selector_dialog.js.es6 +61 -0
- data/app/assets/javascripts/decidim/input_character_counter.js.es6 +115 -0
- data/app/assets/javascripts/decidim/input_mentions.js.es6 +34 -9
- data/app/assets/javascripts/decidim/input_multiple_mentions.js.es6 +195 -0
- data/app/assets/javascripts/decidim/map.js.es6 +40 -3
- data/app/assets/javascripts/decidim/orders.js.es6 +9 -28
- data/app/assets/javascripts/decidim/responsive_horizontal_tabs.js.es6 +12 -0
- data/app/assets/javascripts/decidim/results_listing.js.es6 +44 -0
- data/app/assets/javascripts/decidim/start_conversation_dialog.js +13 -0
- data/app/assets/javascripts/decidim/vizzs.js.es6 +1 -0
- data/app/assets/stylesheets/decidim/_decidim-settings.scss +5 -0
- data/app/assets/stylesheets/decidim/_decidim.scss +13 -11
- data/app/assets/stylesheets/decidim/_properties.scss +25 -0
- data/app/assets/stylesheets/decidim/_variables.scss +6 -24
- data/app/assets/stylesheets/decidim/application.scss.erb +2 -2
- data/app/assets/stylesheets/decidim/editor.scss +2 -2
- data/app/assets/stylesheets/decidim/email.scss +1771 -0
- data/app/assets/stylesheets/decidim/extras/_external-links.scss +29 -0
- data/app/assets/stylesheets/decidim/extras/_extras.scss +17 -0
- data/app/assets/stylesheets/decidim/extras/_label-required.scss +9 -0
- data/app/assets/stylesheets/decidim/extras/_process_stats.scss +1 -1
- data/app/assets/stylesheets/decidim/extras/_quill.scss +5 -0
- data/app/assets/stylesheets/decidim/extras/_results-per-page.scss +8 -0
- data/app/assets/stylesheets/decidim/layouts/_home.scss +31 -7
- data/app/assets/stylesheets/decidim/layouts/_layouts.scss +5 -0
- data/app/assets/stylesheets/decidim/layouts/_logo.scss +26 -0
- data/app/assets/stylesheets/decidim/layouts/_user.scss +4 -0
- data/app/assets/stylesheets/decidim/modules/_author-avatar.scss +9 -13
- data/app/assets/stylesheets/decidim/modules/_buttons.scss +198 -26
- data/app/assets/stylesheets/decidim/modules/_cards.scss +174 -23
- data/app/assets/stylesheets/decidim/modules/_collapsible-list.scss +21 -0
- data/app/assets/stylesheets/decidim/modules/_comments.scss +25 -1
- data/app/assets/stylesheets/decidim/modules/_conference-programme.scss +0 -1
- data/app/assets/stylesheets/decidim/modules/_confirm.scss +5 -0
- data/app/assets/stylesheets/decidim/modules/_conversation.scss +50 -0
- data/app/assets/stylesheets/decidim/modules/_data-picker.scss +9 -11
- data/app/assets/stylesheets/decidim/modules/_definition-data.scss +6 -1
- data/app/assets/stylesheets/decidim/modules/_docs-manager.scss +0 -1
- data/app/assets/stylesheets/decidim/modules/_extra.scss +0 -2
- data/app/assets/stylesheets/decidim/modules/_filters.scss +25 -1
- data/app/assets/stylesheets/decidim/modules/_floating-helper.scss +20 -8
- data/app/assets/stylesheets/decidim/modules/_footer.scss +8 -4
- data/app/assets/stylesheets/decidim/modules/_forms.scss +63 -4
- data/app/assets/stylesheets/decidim/modules/_horizontal-tabs.scss +64 -1
- data/app/assets/stylesheets/decidim/modules/_inline-filters.scss +6 -3
- data/app/assets/stylesheets/decidim/modules/_input-gallery.scss +10 -0
- data/app/assets/stylesheets/decidim/modules/_input-mentions.scss +25 -7
- data/app/assets/stylesheets/decidim/modules/_input-multiple-mentions.scss +5 -0
- data/app/assets/stylesheets/decidim/modules/_map.scss +11 -0
- data/app/assets/stylesheets/decidim/modules/_margins.scss +8 -7
- data/app/assets/stylesheets/decidim/modules/_messages.scss +18 -18
- data/app/assets/stylesheets/decidim/modules/_modules.scss +75 -72
- data/app/assets/stylesheets/decidim/modules/_navbar.scss +176 -26
- data/app/assets/stylesheets/decidim/modules/_notification.scss +5 -0
- data/app/assets/stylesheets/decidim/modules/_order-by.scss +5 -0
- data/app/assets/stylesheets/decidim/modules/_process-nav.scss +5 -2
- data/app/assets/stylesheets/decidim/modules/_process-phase.scss +2 -4
- data/app/assets/stylesheets/decidim/modules/_process-stats.scss +2 -2
- data/app/assets/stylesheets/decidim/modules/_progress-bar.scss +1 -1
- data/app/assets/stylesheets/decidim/modules/_reveal.scss +6 -0
- data/app/assets/stylesheets/decidim/modules/_signup.scss +6 -5
- data/app/assets/stylesheets/decidim/modules/_static-pages.scss +0 -1
- data/app/assets/stylesheets/decidim/modules/_sticky.scss +5 -0
- data/app/assets/stylesheets/decidim/modules/_tags.scss +4 -0
- data/app/assets/stylesheets/decidim/modules/_timeline.scss +1 -2
- data/app/assets/stylesheets/decidim/modules/_typography.scss +47 -8
- data/app/assets/stylesheets/decidim/modules/_versions.scss +0 -1
- data/app/assets/stylesheets/decidim/utils/_helpers.scss +8 -0
- data/app/assets/stylesheets/decidim/utils/_mixins.scss +86 -7
- data/app/assets/stylesheets/decidim/utils/_settings.scss +81 -69
- data/app/assets/stylesheets/decidim/vizzs.scss +8 -0
- data/app/assets/stylesheets/decidim/vizzs/_areachart.scss +0 -1
- data/app/assets/stylesheets/decidim/vizzs/_linechart.scss +0 -1
- data/app/assets/stylesheets/decidim/vizzs/_rowchart.scss +0 -1
- data/app/assets/stylesheets/decidim/vizzs/_vizzs.scss +5 -0
- data/app/assets/stylesheets/foundation-overrides/components/_button-group.scss +319 -0
- data/app/cells/decidim/activity/show.erb +24 -21
- data/app/cells/decidim/activity_cell.rb +2 -0
- data/app/cells/decidim/address_cell.rb +1 -1
- data/app/cells/decidim/amendable/amend_button_card_cell.rb +1 -5
- data/app/cells/decidim/amendable/promote_button_card_cell.rb +1 -1
- data/app/cells/decidim/announcement/show.erb +1 -1
- data/app/cells/decidim/author/comments.erb +1 -1
- data/app/cells/decidim/author/endorsements.erb +6 -0
- data/app/cells/decidim/author/flag.erb +5 -2
- data/app/cells/decidim/author/profile_inline.erb +0 -1
- data/app/cells/decidim/author/show.erb +2 -0
- data/app/cells/decidim/author/withdraw.erb +2 -2
- data/app/cells/decidim/author_cell.rb +9 -13
- data/app/cells/decidim/badge/show.erb +6 -6
- data/app/cells/decidim/badge/small.erb +2 -1
- data/app/cells/decidim/card/show.erb +4 -4
- data/app/cells/decidim/card_m/comments_counter.erb +1 -1
- data/app/cells/decidim/card_m/header.erb +4 -4
- data/app/cells/decidim/card_m/image.erb +1 -1
- data/app/cells/decidim/card_m/show.erb +2 -2
- data/app/cells/decidim/card_m_cell.rb +3 -2
- data/app/cells/decidim/collapsible_list/show.erb +3 -3
- data/app/cells/decidim/content_blocks/footer_sub_hero/show.erb +4 -4
- data/app/cells/decidim/content_blocks/hero_settings_form/show.erb +2 -2
- data/app/cells/decidim/content_blocks/how_to_participate/show.erb +8 -8
- data/app/cells/decidim/content_blocks/last_activity_cell.rb +1 -1
- data/app/cells/decidim/content_blocks/stats/show.erb +1 -1
- data/app/cells/decidim/content_blocks/sub_hero/show.erb +3 -3
- data/app/cells/decidim/diff/attribute.erb +10 -10
- data/app/cells/decidim/diff_cell.rb +11 -1
- data/app/cells/decidim/endorsement_buttons/select_identity_button.erb +10 -0
- data/app/cells/decidim/endorsement_buttons/show.erb +4 -0
- data/app/cells/decidim/endorsement_buttons_cell.rb +208 -0
- data/app/cells/decidim/endorsers_list/show.erb +16 -0
- data/app/cells/decidim/endorsers_list_cell.rb +29 -0
- data/app/cells/decidim/fingerprint_cell.rb +1 -0
- data/app/cells/decidim/follow_button/show.erb +13 -5
- data/app/cells/decidim/follow_button_cell.rb +29 -5
- data/app/cells/decidim/navbar_admin_link/show.erb +1 -1
- data/app/cells/decidim/navbar_admin_link_cell.rb +6 -0
- data/app/cells/decidim/newsletter_templates/base_cell.rb +30 -0
- data/app/cells/decidim/newsletter_templates/base_settings_form_cell.rb +13 -0
- data/app/cells/decidim/newsletter_templates/basic_only_text/show.erb +86 -0
- data/app/cells/decidim/newsletter_templates/basic_only_text_cell.rb +21 -0
- data/app/cells/decidim/newsletter_templates/basic_only_text_settings_form/show.erb +7 -0
- data/app/cells/decidim/newsletter_templates/basic_only_text_settings_form_cell.rb +8 -0
- data/app/cells/decidim/newsletter_templates/image_text_cta/show.erb +125 -0
- data/app/cells/decidim/newsletter_templates/image_text_cta_cell.rb +61 -0
- data/app/cells/decidim/newsletter_templates/image_text_cta_settings_form/show.erb +17 -0
- data/app/cells/decidim/newsletter_templates/image_text_cta_settings_form_cell.rb +8 -0
- data/app/cells/decidim/notifications/show.erb +1 -1
- data/app/cells/decidim/profile/show.erb +2 -2
- data/app/cells/decidim/profile/user_group_tabs.erb +10 -5
- data/app/cells/decidim/profile/user_tabs.erb +16 -14
- data/app/cells/decidim/profile_cell.rb +18 -0
- data/app/cells/decidim/profile_sidebar/show.erb +16 -16
- data/app/cells/decidim/profile_sidebar_cell.rb +1 -0
- data/app/cells/decidim/search_results_section/show.erb +1 -1
- data/app/cells/decidim/tags_cell.rb +32 -2
- data/app/cells/decidim/user_activity/show.erb +19 -1
- data/app/cells/decidim/user_activity_cell.rb +6 -0
- data/app/cells/decidim/user_conversation/conversation_header.erb +14 -0
- data/app/cells/decidim/user_conversation/messages.erb +15 -0
- data/app/cells/decidim/user_conversation/new.erb +15 -0
- data/app/cells/decidim/user_conversation/reply.erb +17 -0
- data/app/cells/decidim/user_conversation/show.erb +20 -0
- data/app/cells/decidim/user_conversation_cell.rb +75 -0
- data/app/cells/decidim/user_conversations/add_conversation_users.erb +25 -0
- data/app/cells/decidim/user_conversations/conversation_item.erb +38 -0
- data/app/cells/decidim/user_conversations/show.erb +58 -0
- data/app/cells/decidim/user_conversations_cell.rb +40 -0
- data/app/cells/decidim/user_group_admin_membership_profile/footer.erb +3 -3
- data/app/cells/decidim/user_profile/footer.erb +1 -1
- data/app/cells/decidim/user_profile/unlinked_user_data.erb +16 -0
- data/app/cells/decidim/user_profile/user_data.erb +1 -1
- data/app/cells/decidim/user_profile_cell.rb +7 -1
- data/app/cells/decidim/user_timeline_cell.rb +4 -0
- data/app/cells/decidim/version/show.erb +31 -0
- data/app/{views/decidim/shared/_version_author.html.erb → cells/decidim/version_author/show.erb} +1 -1
- data/app/cells/decidim/version_author_cell.rb +9 -0
- data/app/cells/decidim/version_cell.rb +83 -0
- data/app/cells/decidim/versions_list/show.erb +32 -0
- data/app/cells/decidim/versions_list_cell.rb +64 -0
- data/app/cells/decidim/versions_list_item/show.erb +20 -0
- data/app/cells/decidim/versions_list_item_cell.rb +51 -0
- 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 +4 -1
- data/app/commands/decidim/attachment_methods.rb +40 -0
- data/app/commands/decidim/create_registration.rb +2 -1
- data/app/commands/decidim/create_user_group.rb +12 -0
- data/app/commands/decidim/destroy_account.rb +12 -0
- data/app/commands/decidim/endorse_resource.rb +64 -0
- data/app/commands/decidim/gallery_methods.rb +64 -0
- data/app/commands/decidim/invite_user_again.rb +2 -4
- data/app/commands/decidim/messaging/reply_to_conversation.rb +34 -3
- data/app/commands/decidim/messaging/start_conversation.rb +36 -5
- data/app/commands/decidim/unendorse_resource.rb +38 -0
- data/app/commands/decidim/update_notifications_settings.rb +1 -0
- data/app/commands/decidim/update_user_group.rb +14 -1
- data/app/controllers/concerns/decidim/impersonate_users.rb +13 -0
- data/app/controllers/concerns/decidim/resource_versions_concern.rb +28 -0
- data/app/controllers/decidim/devise/registrations_controller.rb +2 -4
- data/app/controllers/decidim/devise/sessions_controller.rb +5 -0
- data/app/controllers/decidim/endorsements_controller.rb +71 -0
- data/app/controllers/decidim/messaging/conversations_controller.rb +52 -12
- data/app/controllers/decidim/newsletters_controller.rb +2 -2
- data/app/controllers/decidim/profiles_controller.rb +6 -0
- data/app/controllers/decidim/scopes_controller.rb +1 -0
- data/app/controllers/decidim/user_activities_controller.rb +19 -2
- data/app/controllers/decidim/user_conversations_controller.rb +142 -0
- data/app/controllers/decidim/user_timeline_controller.rb +19 -2
- data/app/events/decidim/resource_endorsed_event.rb +35 -0
- data/app/events/decidim/user_group_admin_event.rb +37 -0
- data/app/events/decidim/user_group_created_event.rb +6 -0
- data/app/events/decidim/user_group_updated_event.rb +6 -0
- data/app/forms/decidim/attachment_form.rb +1 -0
- data/app/forms/decidim/messaging/conversation_form.rb +10 -4
- data/app/forms/decidim/notifications_settings_form.rb +6 -0
- data/app/forms/decidim/registration_form.rb +1 -0
- data/app/functions/decidim/core/component_finder_base.rb +10 -3
- data/app/functions/decidim/core/component_list_base.rb +8 -2
- data/app/functions/decidim/core/user_entity_finder.rb +33 -0
- data/app/functions/decidim/core/user_entity_list.rb +31 -0
- data/app/helpers/concerns/decidim/flash_helper_extensions.rb +47 -0
- data/app/helpers/decidim/action_authorization_helper.rb +24 -2
- data/app/helpers/decidim/amendments_helper.rb +5 -3
- data/app/helpers/decidim/application_helper.rb +7 -1
- data/app/helpers/decidim/check_boxes_tree_helper.rb +4 -5
- data/app/helpers/decidim/cta_button_helper.rb +1 -1
- data/app/helpers/decidim/decidim_form_helper.rb +23 -0
- data/app/helpers/decidim/endorsable_helper.rb +93 -0
- data/app/helpers/decidim/filters_helper.rb +15 -5
- data/app/helpers/decidim/followable_helper.rb +11 -0
- data/app/helpers/decidim/layout_helper.rb +23 -5
- data/app/helpers/decidim/map_helper.rb +15 -2
- data/app/helpers/decidim/markup_helper.rb +9 -0
- data/app/helpers/decidim/messaging/conversation_helper.rb +61 -7
- data/app/helpers/decidim/orders_helper.rb +10 -1
- data/app/helpers/decidim/participatory_space_helpers.rb +1 -1
- data/app/helpers/decidim/resource_versions_helper.rb +24 -7
- data/app/helpers/decidim/rich_text_editor_helper.rb +1 -0
- data/app/helpers/decidim/sanitize_helper.rb +10 -2
- data/app/helpers/decidim/tooltip_helper.rb +1 -1
- data/app/helpers/decidim/traceability_helper.rb +2 -8
- data/app/helpers/decidim/user_profile_helper.rb +1 -1
- data/app/helpers/decidim/widget_urls_helper.rb +4 -2
- data/app/jobs/decidim/event_publisher_job.rb +1 -1
- data/app/mailers/concerns/decidim/multitenant_asset_host.rb +33 -0
- data/app/mailers/decidim/application_mailer.rb +1 -0
- data/app/mailers/decidim/messaging/conversation_mailer.rb +53 -4
- data/app/mailers/decidim/newsletter_mailer.rb +22 -4
- data/app/middleware/decidim/strip_x_forwarded_host.rb +14 -0
- data/app/models/decidim/action_log.rb +1 -1
- data/app/models/decidim/amendment.rb +0 -18
- data/app/models/decidim/authorization.rb +24 -0
- data/app/models/decidim/component.rb +7 -0
- data/app/models/decidim/content_block.rb +5 -3
- data/app/models/decidim/endorsement.rb +30 -0
- data/app/models/decidim/messaging/conversation.rb +39 -11
- data/app/models/decidim/messaging/message.rb +31 -5
- data/app/models/decidim/messaging/participation.rb +1 -1
- data/app/models/decidim/messaging/receipt.rb +8 -0
- data/app/models/decidim/newsletter.rb +7 -1
- data/app/models/decidim/organization.rb +16 -7
- data/app/models/decidim/user.rb +32 -0
- data/app/models/decidim/user_group.rb +23 -0
- data/app/permissions/decidim/permissions.rb +19 -6
- data/app/presenters/decidim/admin_log/user_presenter.rb +1 -1
- data/app/presenters/decidim/metric_charts_presenter.rb +33 -13
- data/app/presenters/decidim/nil_presenter.rb +29 -0
- data/app/presenters/decidim/resource_locator_presenter.rb +2 -1
- data/app/presenters/decidim/user_group_presenter.rb +1 -1
- data/app/presenters/decidim/user_presenter.rb +6 -0
- data/app/queries/decidim/metric_manage.rb +5 -0
- data/app/queries/decidim/metrics/followers_metric_manage.rb +1 -6
- data/app/queries/decidim/user_groups/admin_memberships.rb +3 -3
- data/app/services/decidim/activity_search.rb +1 -0
- data/app/services/decidim/base_diff_renderer.rb +25 -3
- data/app/services/decidim/events_manager.rb +4 -1
- data/app/types/decidim/core/decidim_type.rb +0 -4
- data/app/types/decidim/core/has_endorsable_input_sort.rb +17 -0
- data/app/types/decidim/core/has_timestamp_input_filter.rb +52 -0
- data/app/types/decidim/core/has_timestamp_input_sort.rb +12 -0
- data/app/types/decidim/core/user_entity_input_filter.rb +81 -0
- data/app/types/decidim/core/user_entity_input_sort.rb +24 -0
- data/app/types/decidim/core/user_group_type.rb +17 -5
- data/app/types/decidim/core/user_type.rb +17 -6
- data/app/uploaders/decidim/attachment_uploader.rb +1 -1
- data/app/uploaders/decidim/avatar_uploader.rb +4 -0
- data/app/uploaders/decidim/image_uploader.rb +28 -4
- data/app/uploaders/decidim/newsletter_template_image_uploader.rb +36 -0
- data/app/views/decidim/account/delete.html.erb +6 -3
- data/app/views/decidim/account/show.html.erb +17 -10
- data/app/views/decidim/amendments/_edit_form_fields.html.erb +2 -0
- data/app/views/decidim/amendments/_similar_emendation.html.erb +4 -4
- data/app/views/decidim/amendments/compare_draft.html.erb +2 -2
- data/app/views/decidim/amendments/edit_draft.html.erb +2 -2
- data/app/views/decidim/amendments/new.html.erb +2 -2
- data/app/views/decidim/amendments/preview_draft.html.erb +2 -2
- data/app/views/decidim/amendments/review.html.erb +3 -3
- data/app/views/decidim/application/_collection.html.erb +2 -2
- data/app/views/decidim/application/_document.html.erb +4 -4
- data/app/views/decidim/application/_documents.html.erb +1 -1
- data/app/views/decidim/application/_photos.html.erb +1 -1
- data/app/views/decidim/authorization_modals/show.html.erb +1 -1
- data/app/views/decidim/data_portability/show.html.erb +3 -0
- data/app/views/decidim/devise/confirmations/new.html.erb +3 -3
- data/app/views/decidim/devise/invitations/edit.html.erb +13 -13
- data/app/views/decidim/devise/omniauth_registrations/new.html.erb +5 -3
- data/app/views/decidim/devise/passwords/edit.html.erb +5 -3
- data/app/views/decidim/devise/passwords/new.html.erb +3 -3
- data/app/views/decidim/devise/registrations/edit.html.erb +2 -1
- data/app/views/decidim/devise/registrations/new.html.erb +7 -8
- data/app/views/decidim/devise/sessions/new.html.erb +4 -6
- data/app/views/decidim/devise/shared/_newsletter_modal.html.erb +3 -3
- data/app/views/decidim/devise/shared/_omniauth_buttons.html.erb +3 -1
- data/app/views/decidim/devise/shared/_omniauth_buttons_mini.html.erb +4 -1
- data/app/views/decidim/devise/unlocks/new.html.erb +3 -3
- data/app/views/decidim/doorkeeper/authorizations/new.html.erb +2 -2
- data/app/views/decidim/endorsements/_identity.html.erb +9 -0
- data/app/views/decidim/endorsements/identities.html.erb +12 -0
- data/app/views/decidim/endorsements/update_buttons_and_counters.js.erb +20 -0
- data/app/views/decidim/errors/internal_server_error.html.erb +2 -2
- data/app/views/decidim/errors/not_found.html.erb +2 -2
- data/app/views/decidim/gamification/badges/index.html.erb +4 -4
- data/app/views/decidim/group_admins/index.html.erb +6 -4
- data/app/views/decidim/group_invites/index.html.erb +5 -2
- data/app/views/decidim/group_members/index.html.erb +6 -4
- data/app/views/decidim/groups/_form.html.erb +2 -0
- data/app/views/decidim/groups/edit.html.erb +4 -2
- data/app/views/decidim/groups/new.html.erb +2 -2
- data/app/views/decidim/last_activities/index.html.erb +2 -0
- data/app/views/decidim/messaging/conversation_mailer/comanagers_new_conversation.html.erb +17 -0
- data/app/views/decidim/messaging/conversation_mailer/comanagers_new_message.html.erb +17 -0
- data/app/views/decidim/messaging/conversation_mailer/new_conversation.html.erb +2 -2
- data/app/views/decidim/messaging/conversation_mailer/new_group_conversation.html.erb +17 -0
- data/app/views/decidim/messaging/conversation_mailer/new_group_message.html.erb +17 -0
- data/app/views/decidim/messaging/conversation_mailer/new_message.html.erb +2 -2
- data/app/views/decidim/messaging/conversations/_add_conversation_users.html.erb +24 -0
- data/app/views/decidim/messaging/conversations/_conversation.html.erb +54 -0
- data/app/views/decidim/messaging/conversations/_messages.html.erb +15 -0
- data/app/views/decidim/messaging/conversations/_new_conversation_button.html.erb +33 -0
- data/app/views/decidim/messaging/conversations/_reply.html.erb +3 -3
- data/app/views/decidim/messaging/conversations/_show.html.erb +34 -15
- data/app/views/decidim/messaging/conversations/_start.html.erb +7 -1
- data/app/views/decidim/messaging/conversations/create.js.erb +1 -1
- data/app/views/decidim/messaging/conversations/index.html.erb +34 -29
- data/app/views/decidim/messaging/conversations/new.html.erb +1 -1
- data/app/views/decidim/messaging/conversations/show.html.erb +8 -4
- data/app/views/decidim/messaging/conversations/update.js.erb +1 -1
- data/app/views/decidim/newsletter_mailer/newsletter.html.erb +2 -2
- data/app/views/decidim/newsletters/show.html.erb +8 -1
- data/app/views/decidim/notifications/index.html.erb +4 -2
- data/app/views/decidim/notifications_settings/show.html.erb +14 -1
- data/app/views/decidim/own_user_groups/index.html.erb +4 -0
- data/app/views/decidim/pages/_standalone.html.erb +1 -1
- data/app/views/decidim/pages/_tabbed.html.erb +5 -5
- data/app/views/decidim/pages/index.html.erb +22 -13
- data/app/views/decidim/profiles/_user_follow.erb +3 -3
- data/app/views/decidim/profiles/show.html.erb +2 -0
- data/app/views/decidim/scopes/_scopes_picker_input.html.erb +11 -4
- data/app/views/decidim/scopes/picker.html.erb +26 -16
- data/app/views/decidim/searches/_count.html.erb +14 -11
- data/app/views/decidim/searches/_filters.html.erb +2 -2
- data/app/views/decidim/searches/index.html.erb +5 -3
- data/app/views/decidim/shared/_check_boxes_tree.html.erb +5 -3
- data/app/views/decidim/shared/_confirm_modal.html.erb +18 -0
- data/app/views/decidim/shared/_embed_modal.html.erb +4 -1
- data/app/views/decidim/shared/_extended_navigation_bar.html.erb +2 -2
- data/app/views/decidim/shared/_filter_form_help.erb +8 -0
- data/app/views/decidim/shared/_floating_help.html.erb +7 -7
- data/app/views/decidim/shared/_login_modal.html.erb +4 -4
- data/app/views/decidim/shared/_orders.html.erb +16 -5
- data/app/views/decidim/shared/_results_per_page.html.erb +16 -6
- data/app/views/decidim/shared/_share_modal.html.erb +8 -4
- data/app/views/decidim/shared/_static_map.html.erb +1 -1
- data/app/views/decidim/shared/participatory_space_filters/_filters.html.erb +1 -1
- data/app/views/decidim/user_activities/index.html.erb +4 -0
- data/app/views/decidim/user_activities/index.js.erb +14 -0
- data/app/views/decidim/user_conversations/index.html.erb +4 -0
- data/app/views/decidim/user_conversations/show.html.erb +4 -0
- data/app/views/decidim/user_conversations/update.js.erb +8 -0
- data/app/views/decidim/user_interests/_scopes.html.erb +12 -10
- data/app/views/decidim/user_interests/show.html.erb +4 -1
- data/app/views/decidim/user_timeline/index.html.erb +5 -1
- data/app/views/decidim/user_timeline/index.js.erb +14 -0
- data/app/views/kaminari/decidim/_first_page.html.erb +5 -1
- data/app/views/kaminari/decidim/_last_page.html.erb +5 -1
- data/app/views/kaminari/decidim/_next_page.html.erb +6 -1
- data/app/views/kaminari/decidim/_page.html.erb +2 -2
- data/app/views/kaminari/decidim/_paginator.html.erb +16 -14
- data/app/views/kaminari/decidim/_prev_page.html.erb +6 -1
- data/app/views/layouts/decidim/_application.html.erb +4 -2
- data/app/views/layouts/decidim/_cookie_warning.html.erb +1 -1
- data/app/views/layouts/decidim/_edit_link.html.erb +0 -0
- data/app/views/layouts/decidim/_head.html.erb +2 -0
- data/app/views/layouts/decidim/_js_configuration.html.erb +28 -0
- data/app/views/layouts/decidim/_language_chooser.html.erb +10 -5
- data/app/views/layouts/decidim/_logo.html.erb +2 -22
- data/app/views/layouts/decidim/_mailer_logo.html.erb +2 -22
- data/app/views/layouts/decidim/_main_footer.html.erb +3 -1
- data/app/views/layouts/decidim/_mini_footer.html.erb +7 -7
- data/app/views/layouts/decidim/_omnipresent_banner.html.erb +1 -1
- data/app/views/layouts/decidim/_organization_colors.html.erb +4 -3
- data/app/views/layouts/decidim/_social_media_links.html.erb +15 -10
- data/app/views/layouts/decidim/_topbar_search.html.erb +12 -2
- data/app/views/layouts/decidim/_user_menu.html.erb +6 -6
- data/app/views/layouts/decidim/_wrapper.html.erb +21 -16
- data/app/views/layouts/decidim/newsletter_base.html.erb +46 -0
- data/app/views/layouts/decidim/user_profile.html.erb +8 -3
- data/app/views/layouts/decidim/widget.html.erb +1 -0
- data/config/initializers/devise.rb +11 -3
- data/config/initializers/invisible_captcha.rb +1 -0
- data/config/initializers/omniauth.rb +7 -1
- data/config/initializers/rack_attack.rb +25 -16
- data/config/locales/ar.yml +7 -5
- data/config/locales/bg-BG.yml +1512 -0
- data/config/locales/ca.yml +258 -6
- data/config/locales/cs.yml +297 -37
- data/config/locales/da-DK.yml +9 -0
- data/config/locales/de.yml +279 -5
- data/config/locales/el.yml +1443 -5
- data/config/locales/en.yml +263 -11
- data/config/locales/es-MX.yml +257 -5
- data/config/locales/es-PY.yml +257 -5
- data/config/locales/es.yml +257 -5
- data/config/locales/et-EE.yml +9 -0
- data/config/locales/eu.yml +7 -2
- data/config/locales/fi-plain.yml +258 -6
- data/config/locales/fi.yml +319 -67
- data/config/locales/fr-CA.yml +1585 -0
- data/config/locales/fr.yml +263 -5
- data/config/locales/ga-IE.yml +9 -0
- data/config/locales/gl.yml +7 -2
- data/config/locales/hr-HR.yml +9 -0
- data/config/locales/hu.yml +87 -5
- data/config/locales/id-ID.yml +7 -2
- data/config/locales/is-IS.yml +1 -0
- data/config/locales/it.yml +279 -27
- data/config/locales/ja-JP.yml +1578 -0
- data/config/locales/lt-LT.yml +9 -0
- data/config/locales/lv-LV.yml +1485 -0
- data/config/locales/mt-MT.yml +9 -0
- data/config/locales/nl.yml +261 -6
- data/config/locales/no.yml +117 -41
- data/config/locales/pl.yml +755 -406
- data/config/locales/pt-BR.yml +8 -4
- data/config/locales/pt.yml +875 -536
- data/config/locales/ro-RO.yml +1603 -0
- data/config/locales/ru.yml +6 -1
- data/config/locales/sk-SK.yml +1426 -0
- data/config/locales/sk.yml +1441 -0
- data/config/locales/sl.yml +71 -0
- data/config/locales/sr-CS.yml +129 -0
- data/config/locales/sv.yml +323 -24
- data/config/locales/tr-TR.yml +7 -2
- data/config/locales/uk.yml +6 -1
- data/config/routes.rb +5 -0
- data/db/migrate/20180810092428_move_organization_fields_to_hero_content_block.rb +2 -2
- data/db/migrate/20191130151925_create_decidim_endorsements.rb +13 -0
- data/db/migrate/20191204075509_add_session_token_to_users.rb +7 -0
- data/db/migrate/20200211173227_add_direct_message_types_to_users.rb +12 -0
- data/db/migrate/20200320105904_index_foreign_keys_in_decidim_action_logs.rb +9 -0
- data/db/migrate/20200320105905_index_foreign_keys_in_decidim_amendments.rb +7 -0
- data/db/migrate/20200320105909_index_foreign_keys_in_decidim_authorizations.rb +7 -0
- data/db/migrate/20200320105917_index_foreign_keys_in_decidim_contextual_help_sections.rb +7 -0
- data/db/migrate/20200320105919_index_foreign_keys_in_decidim_endorsements.rb +7 -0
- data/db/migrate/20200320105923_index_foreign_keys_in_decidim_notifications.rb +7 -0
- data/db/migrate/20200320105927_index_foreign_keys_in_oauth_access_grants.rb +7 -0
- data/db/migrate/20200323094443_add_id_to_content_blocks_scope.rb +7 -0
- data/db/migrate/20200326102407_rename_scope_column.rb +7 -0
- data/db/migrate/20200327082257_migrate_newsletters_to_templates.rb +33 -0
- data/db/migrate/20200327082954_remove_newsletter_body.rb +7 -0
- data/db/migrate/20200401073419_add_index_on_content_block_scope_id.rb +11 -0
- data/db/seeds.rb +1 -1
- data/{app/controllers/concerns → lib}/decidim/action_authorization.rb +0 -0
- data/lib/decidim/api/author_interface.rb +4 -0
- data/lib/decidim/api/endorsable_interface.rb +22 -0
- data/lib/decidim/api/participatory_space_interface.rb +2 -0
- data/lib/decidim/api/timestamps_interface.rb +2 -2
- data/lib/decidim/coauthorable.rb +1 -1
- data/lib/decidim/component_manifest.rb +14 -0
- data/lib/decidim/content_parsers.rb +1 -0
- data/lib/decidim/content_parsers/user_group_parser.rb +61 -0
- data/lib/decidim/content_parsers/user_parser.rb +3 -5
- data/lib/decidim/content_renderers.rb +1 -0
- data/lib/decidim/content_renderers/user_group_renderer.rb +30 -0
- data/lib/decidim/core.rb +65 -21
- data/lib/decidim/core/api.rb +1 -0
- data/lib/decidim/core/engine.rb +88 -6
- data/lib/decidim/core/test.rb +8 -0
- data/lib/decidim/core/test/factories.rb +103 -3
- data/lib/decidim/core/test/shared_examples/admin_resource_gallery_examples.rb +79 -0
- data/lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb +17 -0
- data/lib/decidim/core/test/shared_examples/comments_examples.rb +17 -2
- data/lib/decidim/core/test/shared_examples/edit_link_shared_examples.rb +5 -1
- data/lib/decidim/core/test/shared_examples/endorsable_interface_examples.rb +22 -0
- data/lib/decidim/core/test/shared_examples/endorsements_controller_shared_context.rb +22 -0
- data/lib/decidim/core/test/shared_examples/follows_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/input_sort_examples.rb +21 -0
- data/lib/decidim/core/test/shared_examples/logo_email.rb +20 -0
- data/lib/decidim/core/test/shared_examples/metric_manage_shared_context.rb +9 -0
- data/lib/decidim/core/test/shared_examples/permissions.rb +143 -0
- data/lib/decidim/core/test/shared_examples/reports_examples.rb +4 -4
- data/lib/decidim/core/test/shared_examples/rich_text_editor_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/simple_event.rb +1 -0
- data/lib/decidim/core/test/shared_examples/system_endorse_resource_examples.rb +165 -0
- data/lib/decidim/core/test/shared_examples/traceable_interface_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/with_endorsable_permissions_examples.rb +89 -0
- data/lib/decidim/core/version.rb +1 -1
- data/lib/decidim/endorsable.rb +25 -0
- data/lib/decidim/events.rb +1 -0
- data/lib/decidim/events/user_group_event.rb +45 -0
- data/lib/decidim/exporters/csv.rb +1 -1
- data/lib/decidim/filter_form_builder.rb +15 -6
- data/lib/decidim/form_builder.rb +209 -23
- data/lib/decidim/has_attachments.rb +1 -1
- data/lib/decidim/participable.rb +6 -0
- data/lib/decidim/participatory_space_manifest.rb +15 -0
- data/lib/decidim/query_extensions.rb +9 -15
- data/lib/decidim/settings_manifest.rb +15 -1
- data/lib/decidim/view_model.rb +4 -0
- data/lib/tasks/decidim_tasks.rake +1 -0
- data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.ro.js +15 -0
- data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.sk.js +14 -0
- data/vendor/assets/javascripts/svg4everybody.min.js +1 -2
- data/vendor/assets/javascripts/tribute.js +11 -4
- metadata +187 -31
- data/app/assets/javascripts/decidim/vizzs/orgchart.js.es6 +0 -699
- data/app/assets/stylesheets/decidim/email.css +0 -1403
- data/app/assets/stylesheets/decidim/modules/_input-hashtags.scss +0 -124
- data/app/resolvers/decidim/core/user_resolver.rb +0 -61
- data/app/views/decidim/messaging/conversations/_message.html.erb +0 -14
@@ -5,7 +5,7 @@
|
|
5
5
|
twitter_handler: current_organization.twitter_handler,
|
6
6
|
image_url: Decidim::ContentBlock.published.find_by(
|
7
7
|
organization: current_organization,
|
8
|
-
|
8
|
+
scope_name: :homepage,
|
9
9
|
manifest_name: :hero
|
10
10
|
).try(:images_container).try(:background_image).try(:url)
|
11
11
|
}) %>
|
@@ -26,7 +26,9 @@
|
|
26
26
|
<%= yield %>
|
27
27
|
<% end %>
|
28
28
|
|
29
|
-
<%= render partial: "decidim/shared/
|
29
|
+
<%= render partial: "decidim/shared/confirm_modal" %>
|
30
|
+
<%= render partial: "decidim/shared/login_modal" unless current_user %>
|
30
31
|
<%= render partial: "decidim/shared/authorization_modal" %>
|
32
|
+
<%= render partial: "layouts/decidim/js_configuration" %>
|
31
33
|
</body>
|
32
34
|
</html>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% unless cookies_accepted? %>
|
2
2
|
<div class="cookie-warning">
|
3
|
-
<%= t(".description_html", link: link_to(t(".link_label"), decidim.page_path("terms-and-conditions"), target: "_blank")) %>
|
3
|
+
<%= t(".description_html", link: link_to(t(".link_label"), decidim.page_path("terms-and-conditions"), title: t(".link_label"), target: "_blank")) %>
|
4
4
|
<div class="cookie-warning__action">
|
5
5
|
<%= button_to t(".ok"), decidim.accept_cookies_path, method: :get, remote: true, class: "button tiny cookie-bar__button" %>
|
6
6
|
</div>
|
File without changes
|
@@ -19,7 +19,9 @@
|
|
19
19
|
|
20
20
|
<%= favicon %>
|
21
21
|
<%= stylesheet_link_tag "application", media: "all" %>
|
22
|
+
<%= invisible_captcha_styles %>
|
22
23
|
<%= organization_colors %>
|
24
|
+
<%= javascript_include_tag "decidim/confirm" %>
|
23
25
|
<%= javascript_include_tag "application" %>
|
24
26
|
<%= foundation_datepicker_locale_tag %>
|
25
27
|
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<%
|
2
|
+
js_configs = {
|
3
|
+
icons_path: image_path("decidim/icons.svg")
|
4
|
+
}
|
5
|
+
character_messages = {
|
6
|
+
"charactersAtLeast": {
|
7
|
+
one: t("forms.length_validator.minimum.one", count: "%count%"),
|
8
|
+
other: t("forms.length_validator.minimum.other", count: "%count%")
|
9
|
+
},
|
10
|
+
"charactersLeft": {
|
11
|
+
one: t("decidim.components.add_comment_form.remaining_characters_1", count: "%count%"),
|
12
|
+
other: t("decidim.components.add_comment_form.remaining_characters", count: "%count%")
|
13
|
+
}
|
14
|
+
}
|
15
|
+
external_link_messages = {
|
16
|
+
"externalLink": t("decidim.accessibility.external_link")
|
17
|
+
}
|
18
|
+
validator_messages = {
|
19
|
+
"correctErrors": t("forms.correct_errors")
|
20
|
+
}
|
21
|
+
%>
|
22
|
+
|
23
|
+
<script>
|
24
|
+
Decidim.config.set(<%== js_configs.to_json %>);
|
25
|
+
Decidim.InputCharacterCounter.configureMessages(<%== character_messages.to_json %>);
|
26
|
+
Decidim.ExternalLink.configureMessages(<%== external_link_messages.to_json %>);
|
27
|
+
Decidim.FormValidator.configureMessages(<%== validator_messages.to_json %>);
|
28
|
+
</script>
|
@@ -1,11 +1,16 @@
|
|
1
1
|
<% if available_locales.length > 1 %>
|
2
2
|
<div class="topbar__dropmenu language-choose">
|
3
|
-
<ul class="dropdown menu" data-dropdown-menu
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
<ul class="dropdown menu" data-dropdown-menu
|
4
|
+
data-autoclose="false"
|
5
|
+
data-disable-hover="true"
|
6
|
+
data-click-open="true"
|
7
|
+
data-close-on-click="true"
|
8
|
+
tabindex="-1">
|
9
|
+
<li class="is-dropdown-submenu-parent" tabindex="-1">
|
10
|
+
<%= link_to t("name", scope: "locale"), "#language-chooser-menu", id: "language-chooser-control", "aria-label": t("layouts.decidim.language_chooser.choose_language"), "aria-controls": "language-chooser-menu", "aria-haspopup": "true" %>
|
11
|
+
<ul class="menu is-dropdown-submenu" id="language-chooser-menu" role="menu" aria-labelledby="language-chooser-control" tabindex="-1">
|
7
12
|
<% (available_locales - [I18n.locale.to_s]).each do |locale| %>
|
8
|
-
<li><%= link_to locale_name(locale), decidim.locale_path(locale: locale), method: :post %></li>
|
13
|
+
<li lang="<%= locale %>"><%= link_to locale_name(locale), decidim.locale_path(locale: locale), method: :post, tabindex: "-1" %></li>
|
9
14
|
<% end %>
|
10
15
|
</ul>
|
11
16
|
</li>
|
@@ -1,29 +1,9 @@
|
|
1
1
|
<% if organization %>
|
2
|
-
<%= link_to decidim.root_url(host: organization.host) do %>
|
2
|
+
<%= link_to decidim.root_url(host: organization.host), title: t("logo", scope: "decidim.accessibility", organization: organization.name) do %>
|
3
3
|
<% if organization.logo.present? %>
|
4
|
-
<%= image_tag organization.logo.medium.url, alt: organization.name %>
|
4
|
+
<%= image_tag organization.logo.medium.url, alt: t("logo", scope: "decidim.accessibility", organization: organization.name) %>
|
5
5
|
<% else %>
|
6
6
|
<span><%= organization.name %></span>
|
7
|
-
<style>
|
8
|
-
.logo-wrapper span{
|
9
|
-
color: white;
|
10
|
-
font-weight: 600;
|
11
|
-
font-size: 1.4em;
|
12
|
-
display: inline-block;
|
13
|
-
text-align: left;
|
14
|
-
padding-left: 8px;
|
15
|
-
line-height: 1;
|
16
|
-
position: relative;
|
17
|
-
}
|
18
|
-
.logo-wrapper span:before{
|
19
|
-
content: "";
|
20
|
-
display: block;
|
21
|
-
position: absolute;
|
22
|
-
border-left: 4px solid white;
|
23
|
-
height: 88%;
|
24
|
-
top: 6%; left: 0;
|
25
|
-
}
|
26
|
-
</style>
|
27
7
|
<% end %>
|
28
8
|
<% end %>
|
29
9
|
<% else %>
|
@@ -2,33 +2,13 @@
|
|
2
2
|
<% if @custom_url_for_mail_root.present? %>
|
3
3
|
<% url = @custom_url_for_mail_root %>
|
4
4
|
<% else %>
|
5
|
-
<% url = decidim.root_url(host:
|
5
|
+
<% url = decidim.root_url(host: organization.host) %>
|
6
6
|
<% end %>
|
7
7
|
<%= link_to url do %>
|
8
8
|
<% if organization.logo.present? %>
|
9
|
-
<%= image_tag organization.logo.medium.url, style: "max-height: 50px", alt: "" %>
|
9
|
+
<%= image_tag organization.logo.medium.url, style: "max-height: 50px", alt: "#{organization.name}" %>
|
10
10
|
<% else %>
|
11
11
|
<span><%= organization.name %></span>
|
12
|
-
<style>
|
13
|
-
.logo-wrapper span{
|
14
|
-
color: white;
|
15
|
-
font-weight: 600;
|
16
|
-
font-size: 1.4em;
|
17
|
-
display: inline-block;
|
18
|
-
text-align: left;
|
19
|
-
padding-left: 8px;
|
20
|
-
line-height: 1;
|
21
|
-
position: relative;
|
22
|
-
}
|
23
|
-
.logo-wrapper span:before{
|
24
|
-
content: "";
|
25
|
-
display: block;
|
26
|
-
position: absolute;
|
27
|
-
border-left: 4px solid white;
|
28
|
-
height: 88%;
|
29
|
-
top: 6%; left: 0;
|
30
|
-
}
|
31
|
-
</style>
|
32
12
|
<% end %>
|
33
13
|
<% end %>
|
34
14
|
<% else %>
|
@@ -5,7 +5,8 @@
|
|
5
5
|
<% end %>
|
6
6
|
<% end %>
|
7
7
|
<div class="row">
|
8
|
-
<div class="medium-8 large-6 large-offset-3 column
|
8
|
+
<div class="medium-8 large-6 large-offset-3 column">
|
9
|
+
<nav class="main__footer__nav">
|
9
10
|
<ul class="footer-nav">
|
10
11
|
<% if current_organization.static_pages.any? %>
|
11
12
|
<% current_organization.static_page_topics.where(show_in_footer: true).each do |page_topic| %>
|
@@ -20,6 +21,7 @@
|
|
20
21
|
<% end %>
|
21
22
|
<li><%= link_to t("layouts.decidim.footer.download_open_data"), decidim.open_data_download_path %></li>
|
22
23
|
</ul>
|
24
|
+
</nav>
|
23
25
|
</div>
|
24
26
|
<%= render partial: "layouts/decidim/social_media_links" %>
|
25
27
|
</div>
|
@@ -1,19 +1,19 @@
|
|
1
1
|
<div class="mini-footer">
|
2
2
|
<div class="row">
|
3
|
-
<div class="medium-
|
4
|
-
<a rel="license" class="cc-badge"
|
3
|
+
<div class="medium-7 large-8 column">
|
4
|
+
<a rel="license noopener" class="cc-badge"
|
5
5
|
href="http://creativecommons.org/licenses/by-sa/4.0/"
|
6
|
-
target="_blank"
|
7
|
-
<%= image_tag("decidim/cc-badge.png", alt: "
|
6
|
+
target="_blank">
|
7
|
+
<%= image_tag("decidim/cc-badge.png", alt: t("layouts.decidim.footer.cc_by_license")) %>
|
8
8
|
</a>
|
9
9
|
<%= t("layouts.decidim.footer.made_with_open_source").html_safe %>
|
10
10
|
</div>
|
11
11
|
<div class="medium-3 large-2 column">
|
12
12
|
<div class="decidim-logo">
|
13
|
-
<a rel="decidim"
|
13
|
+
<a rel="decidim noopener"
|
14
14
|
href="https://decidim.org/"
|
15
|
-
target="_blank"
|
16
|
-
<%= image_tag("decidim/decidim-logo.svg", alt: "
|
15
|
+
target="_blank">
|
16
|
+
<%= image_tag("decidim/decidim-logo.svg", alt: t("layouts.decidim.footer.decidim_logo")) %>
|
17
17
|
</a>
|
18
18
|
</div>
|
19
19
|
</div>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<span class="omnipresent-banner-short-description">
|
9
9
|
<%= translated_attribute current_organization.omnipresent_banner_short_description %>
|
10
10
|
</span>
|
11
|
-
<%= icon "media-play" %>
|
11
|
+
<%= icon "media-play", role: "img", "aria-hidden": true %>
|
12
12
|
<% end %>
|
13
13
|
</div>
|
14
14
|
<% end %>
|
@@ -2,36 +2,41 @@
|
|
2
2
|
<ul class="footer-social">
|
3
3
|
<% if current_organization.twitter_handler.present? %>
|
4
4
|
<li>
|
5
|
-
<a class="footer-social__icon" target="_blank" rel="noopener"
|
6
|
-
|
5
|
+
<a class="footer-social__icon" target="_blank" rel="noopener" href="https://twitter.com/<%= current_organization.twitter_handler %>">
|
6
|
+
<span class="show-for-sr"><%= t("layouts.decidim.social_media_links.twitter", organization: translated_attribute(current_organization.name)) %></span>
|
7
|
+
<%= icon "twitter", role: "img", aria_label: "Twitter" %>
|
7
8
|
</a>
|
8
9
|
</li>
|
9
10
|
<% end %>
|
10
11
|
<% if current_organization.facebook_handler.present? %>
|
11
12
|
<li>
|
12
|
-
<a class="footer-social__icon" target="_blank" rel="noopener"
|
13
|
-
|
13
|
+
<a class="footer-social__icon" target="_blank" rel="noopener" href="https://www.facebook.com/<%= current_organization.facebook_handler %>">
|
14
|
+
<span class="show-for-sr"><%= t("layouts.decidim.social_media_links.facebook", organization: translated_attribute(current_organization.name)) %></span>
|
15
|
+
<%= icon "facebook", role: "img", aria_label: "Facebook" %>
|
14
16
|
</a>
|
15
17
|
</li>
|
16
18
|
<% end %>
|
17
19
|
<% if current_organization.instagram_handler.present? %>
|
18
20
|
<li>
|
19
|
-
<a class="footer-social__icon" target="_blank" rel="noopener"
|
20
|
-
|
21
|
+
<a class="footer-social__icon" target="_blank" rel="noopener" href="https://www.instagram.com/<%= current_organization.instagram_handler %>">
|
22
|
+
<span class="show-for-sr"><%= t("layouts.decidim.social_media_links.instagram", organization: translated_attribute(current_organization.name)) %></span>
|
23
|
+
<%= icon "instagram", role: "img", aria_label: "Instagram" %>
|
21
24
|
</a>
|
22
25
|
</li>
|
23
26
|
<% end %>
|
24
27
|
<% if current_organization.youtube_handler.present? %>
|
25
28
|
<li>
|
26
|
-
<a class="footer-social__icon" target="_blank" rel="noopener"
|
27
|
-
|
29
|
+
<a class="footer-social__icon" target="_blank" rel="noopener" href="https://www.youtube.com/<%= current_organization.youtube_handler %>">
|
30
|
+
<span class="show-for-sr"><%= t("layouts.decidim.social_media_links.youtube", organization: translated_attribute(current_organization.name)) %></span>
|
31
|
+
<%= icon "youtube", role: "img", aria_label: "YouTube" %>
|
28
32
|
</a>
|
29
33
|
</li>
|
30
34
|
<% end %>
|
31
35
|
<% if current_organization.github_handler.present? %>
|
32
36
|
<li>
|
33
|
-
<a class="footer-social__icon" target="_blank" rel="noopener"
|
34
|
-
|
37
|
+
<a class="footer-social__icon" target="_blank" rel="noopener" href="https://www.github.com/<%= current_organization.github_handler %>">
|
38
|
+
<span class="show-for-sr"><%= t("layouts.decidim.social_media_links.github", organization: translated_attribute(current_organization.name)) %></span>
|
39
|
+
<%= icon "github", role: "img", aria_label: "GitHub" %>
|
35
40
|
</a>
|
36
41
|
</li>
|
37
42
|
<% end %>
|
@@ -1,8 +1,18 @@
|
|
1
1
|
<div class="show-for-medium" data-set="nav-search-holder">
|
2
2
|
<div class="topbar__search js-append">
|
3
|
-
<%= icon "magnifying-glass", aria_label: t("decidim.search.term_input_placeholder"), role: "img" %>
|
4
3
|
<%= form_tag(decidim.search_path, method: :get, id: "form-search_topbar") do %>
|
5
|
-
|
4
|
+
<div class="input-group">
|
5
|
+
<%= label_tag :term do %>
|
6
|
+
<span class="show-for-sr"><%= t("decidim.search.term_input_placeholder") %></span>
|
7
|
+
<%= text_field_tag :term, nil, class: "input-group-field m-none", placeholder: t("decidim.search.term_input_placeholder"), title: t("decidim.search.term_input_placeholder") %>
|
8
|
+
<% end %>
|
9
|
+
<div class="input-group-button">
|
10
|
+
<!-- The button wrapper is important for Safari and Firefox -->
|
11
|
+
<div class="button-wrapper">
|
12
|
+
<%= submit_tag icon("magnifying-glass", aria_label: t("decidim.search.term_input_placeholder"), role: "img"), title: t("decidim.search.term_input_placeholder"), id: :submit, class: "button" %>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
</div>
|
6
16
|
<% end %>
|
7
17
|
</div>
|
8
18
|
</div>
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<li><%= link_to t(".profile"), decidim.account_path %></li>
|
1
|
+
<li><%= link_to t(".profile"), decidim.account_path, tabindex: "-1" %></li>
|
2
2
|
<% if current_user.nickname.present? && !current_user.managed? %>
|
3
|
-
<li><%= link_to t(".public_profile"), decidim.profile_path(current_user.nickname) %></li>
|
3
|
+
<li><%= link_to t(".public_profile"), decidim.profile_path(current_user.nickname), tabindex: "-1" %></li>
|
4
4
|
<% end %>
|
5
|
-
<li><%= link_to t(".notifications"), decidim.notifications_path %></li>
|
6
|
-
<li><%= link_to t(".conversations"), decidim.conversations_path %></li>
|
5
|
+
<li><%= link_to t(".notifications"), decidim.notifications_path, tabindex: "-1" %></li>
|
6
|
+
<li><%= link_to t(".conversations"), decidim.conversations_path, tabindex: "-1" %></li>
|
7
7
|
<% if allowed_to? :read, :admin_dashboard %>
|
8
|
-
<li><%= link_to t(".admin_dashboard"), decidim_admin.root_path %></li>
|
8
|
+
<li><%= link_to t(".admin_dashboard"), decidim_admin.root_path, tabindex: "-1" %></li>
|
9
9
|
<% end %>
|
10
|
-
<li><%= link_to t(".sign_out"), decidim.destroy_user_session_path, method: :delete, class: "sign-out-link" %></li>
|
10
|
+
<li><%= link_to t(".sign_out"), decidim.destroy_user_session_path, method: :delete, class: "sign-out-link", tabindex: "-1" %></li>
|
@@ -33,6 +33,7 @@ end
|
|
33
33
|
creates a sticky footer-->
|
34
34
|
<!-- Topbar -->
|
35
35
|
<div class="title-bar">
|
36
|
+
<%= link_to t("skip_button", scope: "decidim.accessibility"), url_for(anchor: "content"), class: "skip" %>
|
36
37
|
<% if current_organization.official_img_header? %>
|
37
38
|
<%= link_to current_organization.official_url, class: "logo-cityhall" do %>
|
38
39
|
<%= image_tag current_organization.official_img_header.url.to_s , alt: current_organization.name %>
|
@@ -45,33 +46,37 @@ end
|
|
45
46
|
<%= render partial: "layouts/decidim/topbar_search" %>
|
46
47
|
<%= render partial: "layouts/decidim/language_chooser" %>
|
47
48
|
<div class="hide-for-medium topbar__menu">
|
48
|
-
<button type="button" data-toggle="offCanvas">
|
49
|
+
<button type="button" data-toggle="offCanvas" aria-label="<%= t("layouts.decidim.header.navigation") %>">
|
49
50
|
<%= icon "menu", aria_label: t("layouts.decidim.header.navigation"), role: "img" %>
|
50
51
|
</button>
|
51
52
|
</div>
|
52
53
|
<% if current_user %>
|
53
|
-
<
|
54
|
-
<%= link_to decidim.notifications_path, class: "topbar__notifications #{current_user.notifications.any? ? "is-active" : ""}"
|
55
|
-
<%= icon "bell" %>
|
54
|
+
<nav class="topbar__dropmenu topbar__user__logged">
|
55
|
+
<%= link_to decidim.notifications_path, class: "topbar__notifications #{current_user.notifications.any? ? "is-active" : ""}" do %>
|
56
|
+
<%= icon "bell", role: "img", aria_label: t("layouts.decidim.user_menu.notifications") %>
|
56
57
|
<% end %>
|
57
|
-
<%= link_to decidim.conversations_path, class: "topbar__conversations #{current_user.unread_conversations.any? ? "is-active" : ""}"
|
58
|
-
<%= icon "envelope-closed" %>
|
58
|
+
<%= link_to decidim.conversations_path, class: "topbar__conversations #{current_user.unread_conversations.any? ? "is-active" : ""}" do %>
|
59
|
+
<%= icon "envelope-closed", role: "img", aria_label: t("layouts.decidim.user_menu.conversations") %>
|
59
60
|
<% end %>
|
60
|
-
<ul class="dropdown menu" data-dropdown-menu
|
61
|
-
|
62
|
-
|
63
|
-
|
61
|
+
<ul class="dropdown menu" data-dropdown-menu
|
62
|
+
data-autoclose="false"
|
63
|
+
data-disable-hover="true"
|
64
|
+
data-click-open="true"
|
65
|
+
data-close-on-click="true">
|
66
|
+
<li class="is-dropdown-submenu-parent show-for-medium" tabindex="-1">
|
67
|
+
<%= link_to current_user.name, decidim.account_path, id: "user-menu-control", "aria-controls": "user-menu", "aria-haspopup": "true", "aria-label": t("layouts.decidim.user_menu.account", name: current_user.name) %>
|
68
|
+
<ul class="menu is-dropdown-submenu" id="user-menu" role="menu" aria-labelledby="user-menu-control" tabindex="-1">
|
64
69
|
<%= render partial: "layouts/decidim/user_menu" %>
|
65
70
|
</ul>
|
66
|
-
<
|
71
|
+
<div data-set="nav-login-holder" class="show-for-medium">
|
67
72
|
<!-- Repeated due to dropdown limitations -->
|
68
73
|
<ul class="menu is-dropdown-submenu js-append usermenu-off-canvas">
|
69
74
|
<%= render partial: "layouts/decidim/user_menu" %>
|
70
75
|
</ul>
|
71
|
-
</
|
76
|
+
</div>
|
72
77
|
</li>
|
73
78
|
</ul>
|
74
|
-
</
|
79
|
+
</nav>
|
75
80
|
<% else %>
|
76
81
|
<div class="topbar__user show-for-medium" data-set="nav-login-holder">
|
77
82
|
<div class="topbar__user__login js-append">
|
@@ -87,14 +92,14 @@ end
|
|
87
92
|
</div>
|
88
93
|
</div>
|
89
94
|
<div class="show-for-medium" data-set="nav-holder">
|
90
|
-
<
|
95
|
+
<div class="navbar js-append">
|
91
96
|
<div class="row column">
|
92
97
|
<%= main_menu.render %>
|
93
98
|
</div>
|
94
|
-
</
|
99
|
+
</div>
|
95
100
|
</div>
|
96
101
|
|
97
|
-
<main>
|
102
|
+
<main id="content">
|
98
103
|
<%= display_flash_messages %>
|
99
104
|
<%= yield %>
|
100
105
|
</main>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width">
|
6
|
+
<%= stylesheet_link_tag "decidim/email" %>
|
7
|
+
</head>
|
8
|
+
|
9
|
+
<body>
|
10
|
+
<!-- <style> -->
|
11
|
+
<table class="body">
|
12
|
+
<% if content_for?(:see_on_website) %>
|
13
|
+
<table class="container">
|
14
|
+
<th class="small-12 first columns headnote float-right">
|
15
|
+
<%= yield(:see_on_website) %>
|
16
|
+
</th>
|
17
|
+
</table>
|
18
|
+
<% end %>
|
19
|
+
<tr>
|
20
|
+
<td class="float-center" align="center" valign="top">
|
21
|
+
<center>
|
22
|
+
<%= yield %>
|
23
|
+
|
24
|
+
<% if content_for?(:note) or content_for?(:unsubscribe) %>
|
25
|
+
<table class="container">
|
26
|
+
<tr>
|
27
|
+
<td>
|
28
|
+
<table class="row">
|
29
|
+
<th class="expander"></th>
|
30
|
+
<th class="small-12 first last columns footnote">
|
31
|
+
<center>
|
32
|
+
<%= yield(:note) if content_for?(:note) %>
|
33
|
+
<%= yield(:unsubscribe) if content_for?(:unsubscribe) %>
|
34
|
+
</center>
|
35
|
+
</th>
|
36
|
+
</table>
|
37
|
+
</td>
|
38
|
+
</tr>
|
39
|
+
</table>
|
40
|
+
<% end %>
|
41
|
+
</center>
|
42
|
+
</td>
|
43
|
+
</tr>
|
44
|
+
</table>
|
45
|
+
</body>
|
46
|
+
</html>
|
@@ -1,8 +1,13 @@
|
|
1
|
+
<% subtitle = content_for(:subtitle) %>
|
2
|
+
|
1
3
|
<%= render "layouts/decidim/application" do %>
|
2
|
-
<
|
4
|
+
<div class="wrapper">
|
3
5
|
<div class="row collapse">
|
4
6
|
<div class="columns">
|
5
|
-
<h1 class="heading1 user-header"
|
7
|
+
<h1 class="heading1 user-header">
|
8
|
+
<%= t("title", scope: "layouts.decidim.user_profile") %>
|
9
|
+
<%= " - #{subtitle}" unless subtitle.blank? %>
|
10
|
+
</h1>
|
6
11
|
</div>
|
7
12
|
</div>
|
8
13
|
<div class="row collapse">
|
@@ -25,5 +30,5 @@
|
|
25
30
|
</div>
|
26
31
|
</div>
|
27
32
|
</div>
|
28
|
-
</
|
33
|
+
</div>
|
29
34
|
<% end %>
|