decidim-decidim_awesome 0.10.2 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-decidim_awesome might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/README.md +177 -60
- data/app/cells/concerns/decidim/decidim_awesome/global_menu_cell_override.rb +20 -0
- data/app/cells/concerns/decidim/decidim_awesome/{proposal_m_cell_override.rb → proposal_l_cell_override.rb} +10 -4
- data/app/cells/decidim/decidim_awesome/content_blocks/map/show.erb +5 -12
- data/app/cells/decidim/decidim_awesome/content_blocks/map_cell.rb +9 -5
- data/app/cells/decidim/decidim_awesome/voting/proposal_metadata_cell.rb +54 -0
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal/modal.erb +18 -0
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal/show.erb +37 -32
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_cell.rb +9 -4
- data/app/commands/concerns/decidim/decidim_awesome/admin/needs_constraint_helpers.rb +2 -2
- data/app/commands/concerns/decidim/decidim_awesome/proposals/admin/update_proposal_override.rb +31 -0
- data/app/commands/concerns/decidim/decidim_awesome/proposals/create_collaborative_draft_override.rb +27 -0
- data/app/commands/concerns/decidim/decidim_awesome/proposals/create_proposal_override.rb +27 -0
- data/app/commands/concerns/decidim/decidim_awesome/proposals/update_collaborative_draft_override.rb +27 -0
- data/app/commands/concerns/decidim/decidim_awesome/proposals/update_proposal_override.rb +26 -0
- data/app/commands/decidim/decidim_awesome/admin/create_constraint.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/create_proposal_custom_field.rb +4 -3
- data/app/commands/decidim/decidim_awesome/admin/destroy_custom_redirect.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/destroy_menu_hack.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/destroy_proposal_custom_field.rb +6 -3
- data/app/commands/decidim/decidim_awesome/admin/rename_scope_label.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/update_constraint.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/update_custom_redirect.rb +2 -2
- data/app/commands/decidim/decidim_awesome/command.rb +1 -7
- data/app/controllers/concerns/decidim/decidim_awesome/admin/maintenance_context.rb +43 -0
- data/app/controllers/concerns/decidim/decidim_awesome/admin_accountability/admin/filterable_helper.rb +1 -1
- data/app/controllers/concerns/decidim/decidim_awesome/content_security_policy.rb +34 -0
- data/app/controllers/concerns/decidim/decidim_awesome/limit_pending_amendments.rb +35 -0
- data/app/controllers/concerns/decidim/decidim_awesome/not_found_redirect.rb +1 -1
- data/app/controllers/concerns/decidim/decidim_awesome/proposals/proposal_votes_controller_override.rb +3 -3
- data/app/controllers/decidim/decidim_awesome/admin/application_controller.rb +2 -0
- data/app/controllers/decidim/decidim_awesome/admin/checks_controller.rb +14 -10
- data/app/controllers/decidim/decidim_awesome/admin/config_controller.rb +10 -9
- data/app/controllers/decidim/decidim_awesome/admin/constraints_controller.rb +23 -20
- data/app/controllers/decidim/decidim_awesome/admin/custom_redirects_controller.rb +6 -10
- data/app/controllers/decidim/decidim_awesome/admin/maintenance_controller.rb +76 -0
- data/app/controllers/decidim/decidim_awesome/admin/menu_hacks_controller.rb +6 -10
- data/app/controllers/decidim/decidim_awesome/admin/proposal_custom_fields_controller.rb +14 -6
- data/app/controllers/decidim/decidim_awesome/admin/scoped_admins_controller.rb +2 -2
- data/app/controllers/decidim/decidim_awesome/admin/scoped_styles_controller.rb +2 -2
- data/app/controllers/decidim/decidim_awesome/blank_component_controller.rb +8 -3
- data/app/controllers/decidim/decidim_awesome/editor_images_controller.rb +3 -3
- data/app/controllers/decidim/decidim_awesome/iframe_component/iframe_controller.rb +18 -5
- data/app/forms/concerns/decidim/decidim_awesome/proposals/proposal_form_override.rb +21 -0
- data/app/forms/{decidim → concerns/decidim}/decidim_awesome/proposals/proposal_wizard_create_step_form_override.rb +2 -1
- data/app/forms/decidim/decidim_awesome/admin/config_form.rb +28 -14
- data/app/forms/decidim/decidim_awesome/admin/custom_redirect_form.rb +2 -2
- data/app/forms/decidim/decidim_awesome/admin/intergram_form.rb +4 -0
- data/app/forms/decidim/decidim_awesome/admin/menu_form.rb +4 -4
- data/app/helpers/concerns/decidim/decidim_awesome/amendments_helper_override.rb +65 -0
- data/app/helpers/concerns/decidim/decidim_awesome/breadcrumb_helper_override.rb +23 -0
- data/app/helpers/concerns/decidim/decidim_awesome/proposals/application_helper_override.rb +110 -0
- data/app/helpers/decidim/decidim_awesome/admin/config_constraints_helpers.rb +6 -27
- data/app/helpers/decidim/decidim_awesome/map_helper.rb +8 -27
- data/app/jobs/decidim/decidim_awesome/destroy_private_data_job.rb +22 -0
- data/app/jobs/decidim/decidim_awesome/migrate_legacy_images_job.rb +5 -4
- data/app/middleware/decidim/decidim_awesome/current_config.rb +3 -5
- data/app/models/concerns/decidim/decidim_awesome/has_proposal_extra_fields.rb +39 -10
- data/app/models/decidim/decidim_awesome/awesome_config.rb +1 -1
- data/app/models/decidim/decidim_awesome/paper_trail_version.rb +3 -3
- data/app/models/decidim/decidim_awesome/proposal_extra_field.rb +35 -1
- data/app/models/decidim/decidim_awesome/vote_weight.rb +2 -2
- data/app/overrides/decidim/proposals/admin/proposals/show/add_private_body.html.erb.deface +7 -0
- data/app/overrides/decidim/proposals/admin/proposals/show/replace_body.html.erb.deface +5 -0
- data/app/overrides/decidim/proposals/proposals/_proposal_aside/limit_amendments_modal.html.erb.deface +5 -0
- data/app/overrides/decidim/proposals/proposals/_vote_button/replace_vote_button.html.erb.deface +1 -1
- data/app/overrides/layouts/decidim/_decidim_javascript/add_awesome_tags.html.erb.deface +6 -0
- data/app/overrides/layouts/decidim/_head/add_awesome_tags.html.erb.deface +4 -11
- data/app/overrides/layouts/decidim/admin/_header/{replace_scripts.html.erb.deface → add_awesome_tags.html.erb.deface} +4 -4
- data/app/packs/entrypoints/decidim_admin_decidim_awesome.js +1 -2
- data/app/packs/entrypoints/decidim_admin_decidim_awesome_global.js +4 -0
- data/app/packs/entrypoints/decidim_admin_decidim_awesome_global.scss +1 -0
- data/app/packs/entrypoints/decidim_decidim_awesome.js +2 -2
- data/app/packs/entrypoints/decidim_decidim_awesome_map.scss +1 -1
- data/app/packs/entrypoints/decidim_editor.js +14 -0
- data/app/packs/src/decidim/decidim_awesome/admin/auto_edit.js +96 -69
- data/app/packs/src/decidim/decidim_awesome/admin/check_redirections.js +46 -41
- data/app/packs/src/decidim/decidim_awesome/admin/codemirror.js +3 -3
- data/app/packs/src/decidim/decidim_awesome/admin/constraint_form_events.js +115 -0
- data/app/packs/src/decidim/decidim_awesome/admin/custom_fields_builder.js +9 -5
- data/app/packs/src/decidim/decidim_awesome/admin/form_exit_warn.js +22 -11
- data/app/packs/src/decidim/decidim_awesome/admin/proposal_sortings.js +26 -8
- data/app/packs/src/decidim/decidim_awesome/admin/tabs_change.js +31 -0
- data/app/packs/src/decidim/decidim_awesome/admin/user_picker.js +34 -21
- data/app/packs/src/decidim/decidim_awesome/amendments/show_modal_on_limits.js +28 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_admin.js +5 -16
- data/app/packs/src/decidim/decidim_awesome/awesome_admin_global.js +1 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_application.js +1 -15
- data/app/packs/src/decidim/decidim_awesome/awesome_map/api/fetcher.js +33 -11
- data/app/packs/src/decidim/decidim_awesome/awesome_map/api/meetings_fetcher.js +9 -12
- data/app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js +28 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_map/awesome_map.js +3 -4
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/controller.js +12 -12
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/meetings_controller.js +11 -7
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/proposals_controller.js +6 -13
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controls_ui.js +51 -20
- data/app/packs/src/decidim/decidim_awesome/awesome_map/load_map.js +27 -18
- data/app/packs/src/decidim/decidim_awesome/editor/index.js +94 -0
- data/app/packs/src/decidim/decidim_awesome/forms/autosave.js +28 -23
- data/app/packs/src/decidim/decidim_awesome/forms/custom_fields_renderer.js +29 -25
- data/app/packs/src/decidim/decidim_awesome/forms/rich_text_plugin.js +27 -32
- data/app/packs/src/decidim/decidim_awesome/proposals/custom_fields.js +31 -15
- data/app/packs/src/decidim/decidim_awesome/proposals/images.js +16 -10
- data/app/packs/src/decidim/decidim_awesome/voting/voting_cards.js +47 -38
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/auto_edits.scss +11 -12
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/check_redirections.scss +15 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/codemirror.scss +24 -12
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/constraints.scss +49 -29
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/custom_fields.scss +28 -71
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/custom_styles.scss +48 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/intergram_fixes.scss +11 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/user_picker.scss +17 -26
- data/app/packs/stylesheets/decidim/decidim_awesome/amendments/modal.scss +5 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_admin.scss +11 -49
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_admin_global.scss +19 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_application.scss +4 -19
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_iframe/iframe.scss +1 -1
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_map/map.scss +41 -35
- data/app/packs/stylesheets/decidim/decidim_awesome/forms/autosave.scss +6 -6
- data/app/packs/stylesheets/decidim/decidim_awesome/forms/custom_fields.scss +118 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/shared/spinner.scss +26 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/voting/voting_cards.scss +41 -59
- data/app/permissions/decidim/decidim_awesome/admin/permissions.rb +14 -3
- data/app/permissions/decidim/decidim_awesome/permissions.rb +3 -4
- data/app/presenters/concerns/decidim/decidim_awesome/breadcrumb_root_menu_item_presenter_override.rb +23 -0
- data/app/presenters/{decidim → concerns/decidim}/decidim_awesome/menu_item_presenter_override.rb +10 -2
- data/app/presenters/{decidim → concerns/decidim}/decidim_awesome/menu_presenter_override.rb +8 -0
- data/app/presenters/concerns/decidim/decidim_awesome/proposals/proposal_presenter_override.rb +20 -0
- data/app/presenters/decidim/decidim_awesome/admin_log/component_presenter_override.rb +30 -0
- data/app/presenters/decidim/decidim_awesome/participatory_space_role_presenter.rb +1 -1
- data/app/presenters/decidim/decidim_awesome/private_data_presenter.rb +70 -0
- data/app/presenters/decidim/decidim_awesome/user_entity_presenter.rb +1 -1
- data/app/queries/decidim/decidim_awesome/private_data_finder.rb +19 -0
- data/app/serializers/concerns/decidim/decidim_awesome/proposals/proposal_serializer_methods.rb +72 -0
- data/app/serializers/concerns/decidim/decidim_awesome/proposals/proposal_serializer_override.rb +38 -0
- data/app/serializers/decidim/decidim_awesome/proposals/private_proposal_serializer.rb +34 -0
- data/app/types/concerns/decidim/decidim_awesome/add_proposal_type_custom_fields.rb +59 -0
- data/app/types/concerns/decidim/decidim_awesome/{proposal_type_override.rb → add_proposal_type_vote_weights.rb} +3 -1
- data/app/views/decidim/decidim_awesome/admin/admin_accountability/index.html.erb +23 -17
- data/app/views/decidim/decidim_awesome/admin/checks/index.html.erb +50 -48
- data/app/views/decidim/decidim_awesome/admin/config/_autoedit_box_label.html.erb +7 -2
- data/app/views/decidim/decidim_awesome/admin/config/_constraints.html.erb +25 -18
- data/app/views/decidim/decidim_awesome/admin/config/_form_admins.html.erb +7 -6
- data/app/views/decidim/decidim_awesome/admin/config/_form_editors.html.erb +12 -16
- data/app/views/decidim/decidim_awesome/admin/config/_form_livechat.html.erb +39 -23
- data/app/views/decidim/decidim_awesome/admin/config/_form_proposal_custom_fields.html.erb +35 -17
- data/app/views/decidim/decidim_awesome/admin/config/_form_proposal_private_custom_fields.html.erb +1 -0
- data/app/views/decidim/decidim_awesome/admin/config/_form_proposals.html.erb +68 -80
- data/app/views/decidim/decidim_awesome/admin/config/_form_styles.html.erb +16 -12
- data/app/views/decidim/decidim_awesome/admin/config/_form_surveys.html.erb +8 -6
- data/app/views/decidim/decidim_awesome/admin/config/show.html.erb +22 -12
- data/app/views/decidim/decidim_awesome/admin/constraints/_form.html.erb +1 -49
- data/app/views/decidim/decidim_awesome/admin/constraints/new.html.erb +14 -9
- data/app/views/decidim/decidim_awesome/admin/constraints/show.html.erb +14 -9
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/_form.html.erb +20 -5
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/edit.html.erb +5 -5
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/index.html.erb +14 -13
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/new.html.erb +5 -5
- data/app/views/decidim/decidim_awesome/admin/maintenance/_private_data.html.erb +44 -0
- data/app/views/decidim/decidim_awesome/admin/maintenance/show.html.erb +44 -0
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/_form.html.erb +6 -6
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/edit.html.erb +21 -12
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb +39 -42
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/new.html.erb +21 -12
- data/app/views/decidim/decidim_awesome/admin/proposals/_editor.html.erb +8 -5
- data/app/views/decidim/decidim_awesome/admin/proposals/_private_body.html.erb +20 -0
- data/app/views/decidim/decidim_awesome/admin/shared/_filters_with_date.html.erb +14 -18
- data/app/views/decidim/decidim_awesome/amendments/_modal.html.erb +23 -0
- data/app/views/decidim/decidim_awesome/custom_fields/_form_render.html.erb +8 -2
- data/app/views/decidim/decidim_awesome/iframe_component/iframe/show.html.erb +7 -12
- data/app/views/decidim/decidim_awesome/map_component/map/_map_template.html.erb +53 -37
- data/app/views/decidim/decidim_awesome/map_component/map/show.html.erb +14 -5
- data/app/views/decidim/decidim_awesome/voting/voting_cards/_show_vote_button.html.erb +0 -3
- data/app/views/layouts/decidim/decidim_awesome/_awesome_config.html.erb +9 -7
- data/app/views/layouts/decidim/decidim_awesome/_intergram_widget.html.erb +9 -6
- data/app/views/layouts/decidim/decidim_awesome/admin/_base.html.erb +12 -0
- data/app/views/layouts/decidim/decidim_awesome/admin/application.html.erb +1 -73
- data/app/views/layouts/decidim/decidim_awesome/admin/maintenance.html.erb +19 -0
- data/config/assets.rb +3 -33
- data/config/i18n-tasks.yml +23 -3
- data/config/locales/ca.yml +28 -17
- data/config/locales/cs.yml +39 -14
- data/config/locales/de.yml +25 -15
- data/config/locales/en.yml +125 -35
- data/config/locales/es.yml +26 -16
- data/config/locales/eu.yml +7 -3
- data/config/locales/fr.yml +25 -16
- data/config/locales/hu.yml +43 -8
- data/config/locales/it.yml +8 -15
- data/config/locales/ja.yml +26 -15
- data/config/locales/lt.yml +0 -4
- data/config/locales/nl.yml +9 -14
- data/config/locales/pt-BR.yml +9 -14
- data/config/locales/ro-RO.yml +0 -3
- data/config/locales/sv.yml +9 -9
- data/config/rubocop/disabled.yml +11 -0
- data/config/rubocop/faker.yml +480 -0
- data/config/rubocop/rails.yml +88 -0
- data/config/rubocop/rspec.yml +65 -0
- data/config/rubocop/ruby.yml +1210 -0
- data/db/migrate/20240306175331_rename_editor_images_awesome_config.rb +18 -0
- data/db/migrate/20240531224204_add_decidim_awesome_proposal_private_fields.rb +29 -0
- data/db/migrate/20240729164227_add_decidim_awesome_proposal_private_fields_date.rb +20 -0
- data/db/seeds.rb +3 -3
- data/lib/decidim/decidim_awesome/admin_engine.rb +26 -7
- data/lib/decidim/decidim_awesome/api/types/localized_custom_fields_type.rb +22 -0
- data/lib/decidim/decidim_awesome/api/types/translated_custom_fields_type.rb +51 -0
- data/lib/decidim/decidim_awesome/awesome.rb +70 -19
- data/lib/decidim/decidim_awesome/awesome_helpers.rb +6 -2
- data/lib/decidim/decidim_awesome/checksums.yml +46 -44
- data/lib/decidim/decidim_awesome/config.rb +1 -1
- data/lib/decidim/decidim_awesome/custom_fields.rb +13 -5
- data/lib/decidim/decidim_awesome/engine.rb +165 -56
- data/lib/decidim/decidim_awesome/iframe_component/component.rb +1 -2
- data/lib/decidim/decidim_awesome/lock.rb +47 -0
- data/lib/decidim/decidim_awesome/map_component/component.rb +1 -1
- data/lib/decidim/decidim_awesome/menu.rb +165 -0
- data/lib/decidim/decidim_awesome/menu_hacker.rb +4 -8
- data/lib/decidim/decidim_awesome/system_checker.rb +2 -4
- data/lib/decidim/decidim_awesome/test/factories.rb +10 -10
- data/lib/decidim/decidim_awesome/test/initializer.rb +7 -12
- data/lib/decidim/decidim_awesome/test/layouts/decidim/_head.html.erb +2 -2
- data/lib/decidim/decidim_awesome/test/layouts/decidim/admin/_header.html.erb +2 -2
- data/lib/decidim/decidim_awesome/test/shared_examples/{box_label_editor.rb → box_label_editor_examples.rb} +17 -17
- data/lib/decidim/decidim_awesome/test/shared_examples/config_examples.rb +23 -5
- data/lib/decidim/decidim_awesome/test/shared_examples/custom_fields_examples.rb +155 -0
- data/lib/decidim/decidim_awesome/test/shared_examples/custom_redirects_contexts.rb +7 -7
- data/lib/decidim/decidim_awesome/test/shared_examples/editor_examples.rb +42 -58
- data/lib/decidim/decidim_awesome/test/shared_examples/menu_hack_contexts.rb +9 -8
- data/lib/decidim/decidim_awesome/test/shared_examples/scoped_admins_examples.rb +32 -24
- data/lib/decidim/decidim_awesome/test/shared_examples/summary_examples.rb +97 -22
- data/lib/decidim/decidim_awesome/version.rb +2 -2
- data/lib/decidim/decidim_awesome/voting_manifest.rb +5 -10
- data/lib/decidim/decidim_awesome.rb +1 -2
- data/lib/tasks/decidim_awesome_active_storage_migrations_tasks.rake +1 -1
- data/lib/tasks/decidim_awesome_upgrade_tasks.rake +4 -0
- data/package.json +21 -30
- metadata +83 -60
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_counter/show.erb +0 -15
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_counter/vote_button.erb +0 -15
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_counter_cell.rb +0 -21
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal/show.erb +0 -16
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal_cell.rb +0 -20
- data/app/cells/decidim/proposals/proposal_m/footer.erb +0 -13
- data/app/helpers/decidim/decidim_awesome/amendments_helper_override.rb +0 -48
- data/app/helpers/decidim/decidim_awesome/proposals/application_helper_override.rb +0 -78
- data/app/overrides/layouts/decidim/_head/add_awesome_legacy_scripts.rb +0 -14
- data/app/overrides/layouts/decidim/admin/_header/replace_styles.html.erb.deface +0 -3
- data/app/packs/entrypoints/decidim_admin_decidim_awesome_custom_fields.js +0 -2
- data/app/packs/entrypoints/decidim_decidim_awesome_admin_form_exit_warn.js +0 -1
- data/app/packs/src/decidim/decidim_awesome/admin/constraints.js +0 -55
- data/app/packs/src/decidim/decidim_awesome/editors/editor.js +0 -218
- data/app/packs/src/decidim/decidim_awesome/editors/tabs_focus.js +0 -22
- data/app/packs/stylesheets/decidim/decidim_awesome/editors/markdown_editor.scss +0 -19
- data/app/packs/stylesheets/decidim/decidim_awesome/editors/quill_editor.scss +0 -58
- data/app/packs/stylesheets/vendor/select2-foundation-theme.scss +0 -348
- data/app/serializers/concerns/decidim/decidim_awesome/proposal_serializer_override.rb +0 -64
- data/app/views/decidim/decidim_awesome/admin/config/_modal.html.erb +0 -11
- data/app/views/decidim/decidim_awesome/voting/voting_cards/_proposal_m_cell_footer.erb +0 -15
@@ -1,59 +1,72 @@
|
|
1
1
|
<div class="loading-spinner"></div>
|
2
2
|
|
3
3
|
<script id="marker-proposal-popup" type="text/x-jsrender">
|
4
|
-
<div class="
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
4
|
+
<div class="space-y-6">
|
5
|
+
<div class="card__list">
|
6
|
+
<div class="card__list-content">
|
7
|
+
<a href="{{>link}}" target="proposal">
|
8
|
+
<h3 class="h4 card__list-title">{{:title.translation}}</h3>
|
9
|
+
<div class="card__list-metadata">
|
10
|
+
<span>
|
11
|
+
<%= icon "account-circle-line" %>
|
12
|
+
{{:authorName}}
|
13
|
+
</span>
|
14
|
+
<span>
|
15
|
+
<%= icon "wechat-line" %>
|
16
|
+
{{:totalCommentsCount}}
|
17
|
+
</span>
|
18
|
+
<span>
|
19
|
+
<%= icon "like" %>
|
20
|
+
{{:endorsementsCount}}
|
21
|
+
</span>
|
22
|
+
<span>
|
23
|
+
<span class="label {{:stateClass}}">{{:humanState}}</span>
|
24
|
+
</span>
|
25
|
+
{{if isAmendment() }}
|
26
|
+
<span>
|
27
|
+
<%= icon "other" %>
|
28
|
+
<%= t("activerecord.models.decidim/amendment", count: 1) %>
|
29
|
+
</span>
|
30
|
+
{{/if}}
|
13
31
|
</div>
|
14
|
-
|
15
|
-
</div>
|
16
|
-
<div class="map-info__button">
|
17
|
-
<a href="{{>link}}" class="button button--sc">
|
18
|
-
<%= t("view_proposal", scope: "decidim.decidim_awesome.map_component.map.show") %>
|
32
|
+
<div class="text-sm">{{>address}}</div>
|
19
33
|
</a>
|
34
|
+
<div class="description">
|
35
|
+
<div>{{:body.translation}}</div>
|
36
|
+
</div>
|
20
37
|
</div>
|
21
38
|
</div>
|
22
39
|
</div>
|
23
40
|
</script>
|
24
41
|
|
25
42
|
<script id="marker-meeting-popup" type="text/x-jsrender">
|
26
|
-
<div class="
|
27
|
-
<
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
<strong>{{:location.translation}}</strong><br>
|
41
|
-
<span>{{>address}}</span><br>
|
42
|
-
<span>{{:locationHints.translation}}</span>
|
43
|
+
<div class="space-y-6">
|
44
|
+
<div class="card__list">
|
45
|
+
<div class="card__list-content">
|
46
|
+
<a href="{{>link}}" target="meeting">
|
47
|
+
<h3 class="h4 card__list-title">{{:title.translation}}</h3>
|
48
|
+
<div class="card__list-metadata">
|
49
|
+
<span>
|
50
|
+
<%= icon "calendar-line" %>
|
51
|
+
{{:dateRange}}
|
52
|
+
</span>
|
53
|
+
<span>
|
54
|
+
<%= icon "{{:icon}}", ignore_missing: true %>
|
55
|
+
{{:meetingType}}
|
56
|
+
</span>
|
43
57
|
</div>
|
44
|
-
|
45
|
-
</div>
|
46
|
-
<div class="map-info__button">
|
47
|
-
<a href="{{>link}}" class="button button--sc">
|
48
|
-
<%= t("view_meeting", scope: "decidim.meetings.meetings_map") %>
|
58
|
+
<div class="text-sm">{{>address}}</div>
|
49
59
|
</a>
|
60
|
+
<div class="description">
|
61
|
+
{{:body.translation}}
|
62
|
+
</div>
|
50
63
|
</div>
|
51
64
|
</div>
|
52
65
|
</div>
|
53
66
|
</script>
|
54
67
|
|
55
68
|
<style type="text/css">
|
56
|
-
#awesome-map .
|
69
|
+
#awesome-map .dynamic-map {
|
57
70
|
height: <%= map_height %>px;
|
58
71
|
}
|
59
72
|
<% current_categories(categories).each do |category| %>
|
@@ -65,4 +78,7 @@
|
|
65
78
|
<script>
|
66
79
|
window.AwesomeMap = window.AwesomeMap || {};
|
67
80
|
window.AwesomeMap.categories = <%= current_categories(categories).to_json.html_safe %>;
|
81
|
+
window.AwesomeMapProposalTexts = <%= Decidim::Proposals::Proposal::STATES.to_h { |state, _| [state, t("decidim.proposals.answers.#{state}")] }.to_json.html_safe %>;
|
82
|
+
window.AwesomeMapMeetingTypes = <%= Decidim::Meetings::Meeting::TYPE_OF_MEETING.to_h { |type, _| [type, Decidim.icons.all[type.to_s]["icon"]] }.to_json.html_safe %>;
|
83
|
+
window.AwesomeMapMeetingTexts = <%= Decidim::Meetings::Meeting::TYPE_OF_MEETING.to_h { |type, _| [type, t("decidim.meetings.meetings.filters.type_values.#{type}")] }.to_json.html_safe %>;
|
68
84
|
</script>
|
@@ -1,7 +1,16 @@
|
|
1
|
-
|
1
|
+
<main class="participatory-space__container">
|
2
|
+
<% announcement = translated_attribute(current_settings.announcement).presence || translated_attribute(component_settings.announcement).presence %>
|
3
|
+
<% if strip_tags(announcement).present? %>
|
4
|
+
<section>
|
5
|
+
<%= cell("decidim/announcement", announcement, local_assigns.merge(callout_class: "editor-content")) %>
|
6
|
+
</section>
|
7
|
+
<% end %>
|
2
8
|
|
3
|
-
<%= render partial: "api_ready" %>
|
9
|
+
<%= render partial: "api_ready" %>
|
4
10
|
|
5
|
-
|
6
|
-
|
7
|
-
|
11
|
+
<section id="map-block" class="awesome-iframe layout-main__section">
|
12
|
+
<%= awesome_map_for map_components do %>
|
13
|
+
<%= render partial: "map_template", locals: { categories: current_participatory_space.categories, map_height: current_component.settings.map_height } %>
|
14
|
+
<% end %>
|
15
|
+
</section>
|
16
|
+
</main>
|
@@ -1,6 +1,3 @@
|
|
1
1
|
<div class="voting-voting_cards">
|
2
2
|
<%= cell("decidim/decidim_awesome/voting/voting_cards_proposal", proposal, from_proposals_list: true) %>
|
3
|
-
<% if current_component.settings.voting_cards_show_modal_help %>
|
4
|
-
<%= cell("decidim/decidim_awesome/voting/voting_cards_proposal_modal", proposal) %>
|
5
|
-
<% end %>
|
6
3
|
</div>
|
@@ -2,21 +2,23 @@
|
|
2
2
|
window.DecidimAwesome = <%= javascript_config_vars %>;
|
3
3
|
window.DecidimAwesome.currentLocale = "<%= current_locale %>";
|
4
4
|
window.DecidimAwesome.version = "<%= Decidim::DecidimAwesome::VERSION %>";
|
5
|
-
window.DecidimAwesome.
|
6
|
-
window.DecidimAwesome.
|
5
|
+
window.DecidimAwesome.editorUploaderPath = "<%= decidim_decidim_awesome.editor_images_path %>";
|
6
|
+
window.DecidimAwesome.renameScopeLabelPath = "<%= decidim_admin_decidim_awesome.rename_scope_label_path %>";
|
7
7
|
window.DecidimAwesome.texts = {
|
8
|
-
"
|
9
|
-
"
|
10
|
-
"
|
11
|
-
"
|
8
|
+
"dragAndDropImage": "<%= j t(".drag_and_drop_image") %>",
|
9
|
+
"autosavedSuccess": "<%= j t(".autosaved_success") %>",
|
10
|
+
"autosavedError": "<%= j t(".autosaved_error") %>",
|
11
|
+
"autosavedRetrieved": "<%= j t(".autosaved_retrieved") %>",
|
12
12
|
"categories": "<%= j t(".categories") %>",
|
13
13
|
"hashtags": "<%= j t(".hashtags") %>",
|
14
14
|
"proposals": "<%= j t(".proposals") %>",
|
15
15
|
"meetings": "<%= j t(".meetings") %>",
|
16
16
|
"amendments": "<%= j t(".amendments") %>",
|
17
17
|
"items": "<%= j t(".items") %>",
|
18
|
-
"
|
18
|
+
"selectDeselectAll": "<%= j t(".select_deselect_all") %>",
|
19
|
+
"officialAuthor": "<%= j t("decidim.blogs.models.post.fields.official_blog_post") %>",
|
19
20
|
}
|
21
|
+
window.DecidimAwesome.formBuilderLangsLocation = "<%= j Decidim::DecidimAwesome.form_builder_langs_location %>";
|
20
22
|
<% if defined?(questionnaire) && questionnaire&.id %>
|
21
23
|
window.DecidimAwesome.current_questionnaire = "edit_questionnaire_<%= questionnaire.id %>";
|
22
24
|
<% if defined? visitor_already_answered? %>
|
@@ -1,16 +1,19 @@
|
|
1
1
|
<script>
|
2
|
-
window.intergramId = "<%= j (settings[:chat_id])
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
window.intergramId = "<%= j (settings[:chat_id])&.html_safe %>";
|
3
|
+
window.intergramOnOpen = {
|
4
|
+
visitorName: "<%= j current_user&.nickname %>"
|
5
|
+
};
|
6
6
|
window.intergramCustomizations = {
|
7
7
|
titleClosed: "<%= j (settings[:title_closed].presence || t("decidim.decidim_awesome.config.intergram.title_closed")).html_safe %>",
|
8
8
|
titleOpen: "<%= j (settings[:title_open].presence || t("decidim.decidim_awesome.config.intergram.title_open")).html_safe %>",
|
9
9
|
introMessage: "<%= j (settings[:intro_message].presence || t("decidim.decidim_awesome.config.intergram.intro_message")).html_safe %>",
|
10
10
|
autoResponse: "<%= j (settings[:auto_response].presence || t("decidim.decidim_awesome.config.intergram.auto_response")).html_safe %>",
|
11
11
|
autoNoResponse: "<%= j (settings[:auto_no_response].presence || t("decidim.decidim_awesome.config.intergram.auto_no_response")).html_safe %>",
|
12
|
-
mainColor: "<%= j (settings[:color].presence || "#E91E63").html_safe %>",
|
12
|
+
mainColor: "<%= j (settings[:color].presence || (current_organization.colors && current_organization.colors["primary"]) || "#E91E63").html_safe %>",
|
13
13
|
alwaysUseFloatingButton: <%= settings[:use_floating_button] ? "true" : "false" %> // Use the mobile floating button also on large screens
|
14
14
|
};
|
15
15
|
</script>
|
16
|
-
|
16
|
+
|
17
|
+
<% if settings[:chat_id].present? %>
|
18
|
+
<script id="intergram" type="text/javascript" src="<%= awesome_config[:intergram_url] %>"></script>
|
19
|
+
<% end %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% add_secondary_root_menu(:awesome_admin_menu) %>
|
2
|
+
|
3
|
+
<%= append_stylesheet_pack_tag "decidim_admin_decidim_awesome", media: "all" %>
|
4
|
+
<%= append_javascript_pack_tag "decidim_admin_decidim_awesome", defer: true %>
|
5
|
+
|
6
|
+
<%= render "layouts/decidim/admin/application" do %>
|
7
|
+
<%= yield %>
|
8
|
+
|
9
|
+
<div class="pokecode-credits"><%= t("credits", scope: "decidim.decidim_awesome", version: link_to(awesome_version, "https://github.com/decidim-ice/decidim-module-decidim_awesome/"), company: link_to("PokeCode", "https://pokecode.net")).html_safe %></div>
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<%= render partial: "layouts/decidim/decidim_awesome/awesome_config" %>
|
@@ -1,75 +1,3 @@
|
|
1
|
-
|
2
|
-
aria_selected_link_to(safe_join([icon(icon_name), text]), link, options)
|
3
|
-
end %>
|
4
|
-
|
5
|
-
<% content_for :secondary_nav do %>
|
6
|
-
<div class="secondary-nav">
|
7
|
-
<div class="secondary-nav__title">
|
8
|
-
<%= t "layouts.decidim.admin.decidim_awesome.title" %>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<ul>
|
12
|
-
<% if menus[:editors] %>
|
13
|
-
<li <% if is_active_link?(decidim_admin_decidim_awesome.config_path(:editors)) %> class="is-active" <% end %>>
|
14
|
-
<%= icon_aria_selected_link_to I18n.t("menu.editors", scope: "decidim.decidim_awesome.admin"), decidim_admin_decidim_awesome.config_path(:editors), "text" %>
|
15
|
-
</li>
|
16
|
-
<% end %>
|
17
|
-
<% if menus[:proposals] %>
|
18
|
-
<li <% if is_active_link?(decidim_admin_decidim_awesome.config_path(:proposals)) %> class="is-active" <% end %>>
|
19
|
-
<%= icon_aria_selected_link_to I18n.t("menu.proposals", scope: "decidim.decidim_awesome.admin"), decidim_admin_decidim_awesome.config_path(:proposals), "document" %>
|
20
|
-
</li>
|
21
|
-
<% end %>
|
22
|
-
<% if menus[:surveys] %>
|
23
|
-
<li <% if is_active_link?(decidim_admin_decidim_awesome.config_path(:surveys)) %> class="is-active" <% end %>>
|
24
|
-
<%= icon_aria_selected_link_to I18n.t("menu.surveys", scope: "decidim.decidim_awesome.admin"), decidim_admin_decidim_awesome.config_path(:surveys), "spreadsheet" %>
|
25
|
-
</li>
|
26
|
-
<% end %>
|
27
|
-
<% if menus[:styles] %>
|
28
|
-
<li <% if is_active_link?(decidim_admin_decidim_awesome.config_path(:styles)) %> class="is-active" <% end %>>
|
29
|
-
<%= icon_aria_selected_link_to I18n.t("menu.styles", scope: "decidim.decidim_awesome.admin"), decidim_admin_decidim_awesome.config_path(:styles), "brush" %>
|
30
|
-
</li>
|
31
|
-
<% end %>
|
32
|
-
<% if menus[:proposal_custom_fields] %>
|
33
|
-
<li <% if is_active_link?(decidim_admin_decidim_awesome.config_path(:proposal_custom_fields)) %> class="is-active" <% end %>>
|
34
|
-
<%= icon_aria_selected_link_to I18n.t("menu.proposal_custom_fields", scope: "decidim.decidim_awesome.admin"), decidim_admin_decidim_awesome.config_path(:proposal_custom_fields), "layers" %>
|
35
|
-
</li>
|
36
|
-
<% end %>
|
37
|
-
<% if menus[:admins] %>
|
38
|
-
<li <% if is_active_link?(decidim_admin_decidim_awesome.config_path(:admins)) %> class="is-active" <% end %>>
|
39
|
-
<%= icon_aria_selected_link_to I18n.t("menu.admins", scope: "decidim.decidim_awesome.admin"), decidim_admin_decidim_awesome.config_path(:admins), "people" %>
|
40
|
-
</li>
|
41
|
-
<% end %>
|
42
|
-
<% if menus[:menu_hacks] %>
|
43
|
-
<li <% if is_active_link?(decidim_admin_decidim_awesome.menu_hacks_path) %> class="is-active" <% end %>>
|
44
|
-
<%= icon_aria_selected_link_to I18n.t("menu.menu_hacks", scope: "decidim.decidim_awesome.admin"), decidim_admin_decidim_awesome.menu_hacks_path, "menu" %>
|
45
|
-
</li>
|
46
|
-
<% end %>
|
47
|
-
<% if menus[:custom_redirects] %>
|
48
|
-
<li <% if is_active_link?(decidim_admin_decidim_awesome.custom_redirects_path) %> class="is-active" <% end %>>
|
49
|
-
<%= icon_aria_selected_link_to I18n.t("menu.custom_redirects", scope: "decidim.decidim_awesome.admin"), decidim_admin_decidim_awesome.custom_redirects_path, "share-boxed" %>
|
50
|
-
</li>
|
51
|
-
<% end %>
|
52
|
-
<% if menus[:livechat] %>
|
53
|
-
<li <% if is_active_link?(decidim_admin_decidim_awesome.config_path(:livechat)) %> class="is-active" <% end %>>
|
54
|
-
<%= icon_aria_selected_link_to I18n.t("menu.livechat", scope: "decidim.decidim_awesome.admin"), decidim_admin_decidim_awesome.config_path(:livechat), "chat" %>
|
55
|
-
</li>
|
56
|
-
<% end %>
|
57
|
-
<li <% if is_active_link?(decidim_admin_decidim_awesome.checks_path) %> class="is-active" <% end %>>
|
58
|
-
<%= icon_aria_selected_link_to I18n.t("menu.checks", scope: "decidim.decidim_awesome.admin"), decidim_admin_decidim_awesome.checks_path, "pulse" %>
|
59
|
-
</li>
|
60
|
-
</ul>
|
61
|
-
</div>
|
62
|
-
<% end %>
|
63
|
-
|
64
|
-
<%= render "layouts/decidim/admin/application" do %>
|
65
|
-
<div class="process-title">
|
66
|
-
<div class="process-title-content">
|
67
|
-
<%= link_to t("decidim.admin.menu.decidim_awesome"), decidim_admin_decidim_awesome.config_path(:editors), target: "_blank" %>
|
68
|
-
</div>
|
69
|
-
</div>
|
70
|
-
|
1
|
+
<%= render "layouts/decidim/decidim_awesome/admin/base" do %>
|
71
2
|
<%= yield %>
|
72
|
-
|
73
|
-
<div class="pokecode-credits"><%= t("credits", scope: "decidim.decidim_awesome", version: link_to(awesome_version, "https://github.com/decidim-ice/decidim-module-decidim_awesome/"), company: link_to("PokeCode", "https://pokecode.net")).html_safe %></div>
|
74
|
-
|
75
3
|
<% end %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<%= render "layouts/decidim/decidim_awesome/admin/base" do %>
|
2
|
+
<div class="item_show__header">
|
3
|
+
<h2 class="item_show__header-title">
|
4
|
+
<%= t("layouts.decidim.decidim_awesome.admin.maintenance.title", title: t(current_view, scope: "layouts.decidim.decidim_awesome.admin.maintenance.titles")) %>
|
5
|
+
|
6
|
+
<% available_views.each do |view, parts| %>
|
7
|
+
<% next if view == current_view %>
|
8
|
+
|
9
|
+
<%= link_to parts[:path], class: "button button__secondary button__xs tiny button--title" do %>
|
10
|
+
<%= icon parts[:icon] %>
|
11
|
+
<%= parts[:title] %>
|
12
|
+
<% end %>
|
13
|
+
<% end %>
|
14
|
+
</h2>
|
15
|
+
</div>
|
16
|
+
<div class="card">
|
17
|
+
<%= yield %>
|
18
|
+
</div>
|
19
|
+
<% end %>
|
data/config/assets.rb
CHANGED
@@ -1,46 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# This file is located at `config/assets.rb` of your module.
|
4
|
-
|
5
|
-
# Define the base path of your module. Please note that `Rails.root` may not be
|
6
|
-
# used because we are not inside the Rails environment when this file is loaded.
|
7
3
|
base_path = File.expand_path("..", __dir__)
|
8
4
|
|
9
|
-
# Register an additional load path for webpack. All the assets within these
|
10
|
-
# directories will be available for inclusion within the Decidim assets. For
|
11
|
-
# example, if you have `app/packs/src/decidim/foo.js`, you can include that file
|
12
|
-
# in your JavaScript entrypoints (or other JavaScript files within Decidim)
|
13
|
-
# using `import "src/decidim/foo"` after you have registered the additional path
|
14
|
-
# as follows.
|
15
5
|
Decidim::Webpacker.register_path("#{base_path}/app/packs")
|
16
6
|
|
17
|
-
# Register the entrypoints for your module. These entrypoints can be included
|
18
|
-
# within your application using `javascript_pack_tag` and if you include any
|
19
|
-
# SCSS files within the entrypoints, they become available for inclusion using
|
20
|
-
# `stylesheet_pack_tag`.
|
21
7
|
Decidim::Webpacker.register_entrypoints(
|
8
|
+
# override the Decidim entry point for decidim so we can define a custom createEditor method
|
9
|
+
decidim_editor: "#{base_path}/app/packs/entrypoints/decidim_editor.js",
|
22
10
|
decidim_decidim_awesome: "#{base_path}/app/packs/entrypoints/decidim_decidim_awesome.js",
|
23
11
|
decidim_admin_decidim_awesome: "#{base_path}/app/packs/entrypoints/decidim_admin_decidim_awesome.js",
|
12
|
+
decidim_admin_decidim_awesome_global: "#{base_path}/app/packs/entrypoints/decidim_admin_decidim_awesome_global.js",
|
24
13
|
decidim_decidim_awesome_map: "#{base_path}/app/packs/entrypoints/decidim_decidim_awesome_map.js",
|
25
14
|
decidim_decidim_awesome_custom_fields: "#{base_path}/app/packs/entrypoints/decidim_decidim_awesome_custom_fields.js",
|
26
|
-
decidim_admin_decidim_awesome_custom_fields: "#{base_path}/app/packs/entrypoints/decidim_admin_decidim_awesome_custom_fields.js",
|
27
|
-
decidim_decidim_awesome_admin_form_exit_warn: "#{base_path}/app/packs/entrypoints/decidim_decidim_awesome_admin_form_exit_warn.js",
|
28
15
|
decidim_decidim_awesome_iframe: "#{base_path}/app/packs/entrypoints/decidim_decidim_awesome_iframe.scss"
|
29
16
|
)
|
30
|
-
|
31
|
-
# If you want to import some extra SCSS files in the Decidim main SCSS file
|
32
|
-
# without adding any extra stylesheet inclusion tags, you can use the following
|
33
|
-
# method to register the stylesheet import for the main application.
|
34
|
-
# Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/decidim_awesome/awesome_application")
|
35
|
-
|
36
|
-
# If you want to do the same but include the SCSS file for the admin panel's
|
37
|
-
# main SCSS file, you can use the following method.
|
38
|
-
# Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/foo/admin", group: :admin)
|
39
|
-
|
40
|
-
# If you want to override some SCSS variables/settings for Foundation from the
|
41
|
-
# module, you can add the following registered import.
|
42
|
-
# Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/foo/settings", type: :settings)
|
43
|
-
|
44
|
-
# If you want to do the same but override the SCSS variables of the admin
|
45
|
-
# panel's styles, you can use the following method.
|
46
|
-
# Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/foo/admin_settings", type: :settings, group: :admin)
|
data/config/i18n-tasks.yml
CHANGED
@@ -9,12 +9,32 @@ data:
|
|
9
9
|
- "<%= %x[bundle info decidim-admin --path].chomp %>/config/locales/%{locale}.yml"
|
10
10
|
- "<%= %x[bundle info decidim-proposals --path].chomp %>/config/locales/%{locale}.yml"
|
11
11
|
- "<%= %x[bundle info decidim-meetings --path].chomp %>/config/locales/%{locale}.yml"
|
12
|
+
- "<%= %x[bundle info decidim-blogs --path].chomp %>/config/locales/%{locale}.yml"
|
12
13
|
|
13
14
|
ignore_unused:
|
15
|
+
- "decidim.admin.actions.manage"
|
16
|
+
- "decidim.admin.filters.admin_accountability.*"
|
17
|
+
- "decidim.admin.filters.search_placeholder.*"
|
18
|
+
- "activemodel.attributes.constraint.*"
|
19
|
+
- "activemodel.attributes.custom_redirect.*"
|
14
20
|
- "decidim.components.decidim_awesome.name"
|
21
|
+
- "decidim.components.awesome_iframe.settings.*"
|
22
|
+
- "decidim.components.awesome_map.settings.*"
|
23
|
+
- "decidim.components.proposals.settings.global.*"
|
24
|
+
- "decidim.components.proposals.settings.step.*"
|
25
|
+
- "decidim.decidim_awesome.admin.config.*"
|
26
|
+
- "decidim.decidim_awesome.admin.admin_accountability.*"
|
27
|
+
- "decidim.decidim_awesome.admin.menu.*"
|
28
|
+
- "decidim.decidim_awesome.admin.menu_hacks.*"
|
29
|
+
- "decidim.decidim_awesome.admin.proposal_custom_fields.*"
|
30
|
+
- "decidim.decidim_awesome.custom_fields.*"
|
31
|
+
- "decidim.decidim_awesome.map_component.map.show.*"
|
32
|
+
- "decidim.decidim_awesome.voting.voting_cards.*"
|
33
|
+
- "decidim.decidim_awesome.content_blocks.*"
|
34
|
+
- "decidim.decidim_awesome.admin_log.*"
|
35
|
+
- "layouts.decidim.decidim_awesome.admin.maintenance.titles.*"
|
36
|
+
- "decidim.proposals.*"
|
37
|
+
- "decidim.meetings.*"
|
15
38
|
|
16
39
|
ignore_missing:
|
17
40
|
- decidim.participatory_processes.scopes.global
|
18
|
-
# TODO: remove when diching support for 0.26
|
19
|
-
- decidim.proposals.collaborative_drafts.new.add_file
|
20
|
-
- decidim.proposals.collaborative_drafts.new.edit_file
|
data/config/locales/ca.yml
CHANGED
@@ -3,11 +3,10 @@ ca:
|
|
3
3
|
activemodel:
|
4
4
|
attributes:
|
5
5
|
config:
|
6
|
-
additional_proposal_sortings:
|
7
|
-
|
8
|
-
allow_images_in_markdown_editor: Permet imatges a l'editor Markdown
|
6
|
+
additional_proposal_sortings: Activa opcions d'ordenació addicionals
|
7
|
+
allow_images_in_editors: Permet imatges a l'editor HTML
|
9
8
|
allow_images_in_proposals: Permet imatges a l'editor de propostes
|
10
|
-
|
9
|
+
allow_videos_in_editors: Permet vídeos a l'editor HTML
|
11
10
|
auto_save_forms: Desa automàticament els formularis a l'emmagatzematge local
|
12
11
|
intergram_auto_no_response: Un missatge que s'envia un minut després que la usuària hagi enviat el seu primer missatge i no s'hagi rebut cap resposta
|
13
12
|
intergram_auto_response: Un missatge que s'envia immediatament després que la usuària enviï el seu primer missatge
|
@@ -22,7 +21,6 @@ ca:
|
|
22
21
|
proposal_custom_fields: 'Camps personalitzats #%{id}'
|
23
22
|
scoped_admins: 'Grup d''administradores acotades #%{id}'
|
24
23
|
scoped_styles: 'Personalització d''estils #%{id}'
|
25
|
-
use_markdown_editor: Fes servir l'editor Markdown en comptes de l'editor HTML
|
26
24
|
validate_body_max_caps_percent: Percentatge màxim de majúscules en el cos de la proposta
|
27
25
|
validate_body_max_marks_together: Nombre màxim de símbols consecutius permesos al cos de la proposta
|
28
26
|
validate_body_min_length: Nombre de caràcters mínims requerits pel cos de la proposta
|
@@ -52,6 +50,8 @@ ca:
|
|
52
50
|
proposal_custom_fields: Camps personalitzats
|
53
51
|
decidim:
|
54
52
|
admin:
|
53
|
+
actions:
|
54
|
+
manage: Configura
|
55
55
|
filters:
|
56
56
|
admin_accountability:
|
57
57
|
admin_role_type:
|
@@ -78,7 +78,6 @@ ca:
|
|
78
78
|
announcement: Anunci
|
79
79
|
iframe: Codi Iframe
|
80
80
|
iframe_help: 'Posa el teu codi com a HTML: <iframe width="100%" height="700" frameBorder="0" allowFullscreen src="..."></iframe>. S''eliminarà qualsevol altre element HTML que no sigui l''Iframe. Assegureu-vos de fer servir 100% a l''amplada (width="100%") per tal d''omplir la pantalla.'
|
81
|
-
no_margins: Sense marges entre l'Iframe i la resta de la pàgina
|
82
81
|
viewport_width: Limita l'amplada màxima com a la resta de l'aplicació
|
83
82
|
step:
|
84
83
|
announcement: Anunci
|
@@ -120,6 +119,7 @@ ca:
|
|
120
119
|
supported_first: Votades per mi primer
|
121
120
|
supported_last: Votades últimes per mi
|
122
121
|
za: Z-A (ordre alfabètic invers)
|
122
|
+
limit_pending_amendments: Permetre només una esmena pendent a cada proposta.
|
123
123
|
sort_orders_enabled: Opcions d'ordenació actives
|
124
124
|
voting_cards_box_title: Títol per la cabina de votació
|
125
125
|
voting_cards_box_title_help: L'opció per defecte és 'Votar a aquesta proposta'. Utilitzeu '-' per amagar-la.
|
@@ -227,10 +227,9 @@ ca:
|
|
227
227
|
incorrect_css: 'El CSS de la caixa #%{key} no és vàlid'
|
228
228
|
incorrect_json: 'La sintaxi JSON de la caixa #%{key} és invàlida'
|
229
229
|
help:
|
230
|
-
|
231
|
-
allow_images_in_markdown_editor: Això permetrà a l'editor markdown pujar imatges amb "copiar i enganxar" o "arrastrant i deixant anar".
|
230
|
+
allow_images_in_editors: Això afegirà una icona per pujar arxius a l'editor HTML
|
232
231
|
allow_images_in_proposals: Això permetrà pujar imatges a l'editor de propostes, disponible per qualsevol usuari
|
233
|
-
|
232
|
+
allow_videos_in_editors: Això afegirà una icona per enllaçar vídeos a l'editor HTML
|
234
233
|
auto_save_forms: Això farà servir l'emmagatzematge local del navegador per desar automàticament les dades introduïdes pels usuaris a les enquestes i altres formularis mentre les omplen. Les dades es restauraran en una futura visita amb el mateix navegador en cas que no s'enviï el formulari. Si s’envia el formulari, s’eliminaran les dades locals. Si els usuaris eliminen les seves dades del navegador, tampoc es restauraran.
|
235
234
|
drag_and_drop_supported: Quan es pugin imatges, es pot fer a través del mètode de "arrossegar i deixar anar". Les imatges seran pujades al servidor i inserides com recursos externs (no es fa servir codificació en línia base64).
|
236
235
|
intergram_about: Intergram utilitza el Telegram Messenger per gestionar un widget de xat en viu de suport incrustat a la part inferior de la pàgina.
|
@@ -242,7 +241,6 @@ ca:
|
|
242
241
|
scoped_admins: Promou usuaries normals a administradores amb accés limitat a certes parts de la web pública (feu servir l'editor de restriccions per això). Noteu que afegir usuaries que ja tenen permisos d'administració no té cap efecte.
|
243
242
|
scoped_styles: Crea CSS personalitzats que només s'apliquin a determinades parts de la web pública (per fer-ho, utilitza l'editor de restriccions)
|
244
243
|
scoped_styles_variables: 'Pots fer servir les següents variables CSS pels colors personalitzats de l''organització:'
|
245
|
-
use_markdown_editor: Això substituirà l'editor HTML (Quill), en el seu lloc s'utilitzarà un editor Markdown tant a l'admin com a la pàgina pública per processar el text (a la base de dades el text es desarà com a markdown)
|
246
244
|
validate_body_max_caps_percent: Zero no permetrà cap majúscula, 100 obligarà a escriure-ho tot en majúscules
|
247
245
|
validate_body_max_marks_together: 'Limiteu el nombre de signes d''interrogació i d''exclamació que es poden escriure junts. És a dir: si és 2, aleshores ''!!!'' no es permetrà al text'
|
248
246
|
validate_body_min_length: Aquest nombre pot ser zero, això farà que aquest camp no sigui obligatori
|
@@ -266,7 +264,6 @@ ca:
|
|
266
264
|
sure_to_remove: Estàs segura que vols eliminar aquesta caixa CSS?
|
267
265
|
none: "⛔ Mai! - Desactiva qualsevol altra restricció"
|
268
266
|
process_groups: Grup de processos
|
269
|
-
rich_text_editor_in_public_views: 'NOTA: "Editor de text enriquit per participants" està habilitat a la configuració general, aquesta opció no aplicarà. Feu servir les modificacions d''editor general per afegir imatges a les propostes.'
|
270
267
|
show:
|
271
268
|
title: Modificacions per %{setting}
|
272
269
|
update: Actualitza la configuració
|
@@ -365,10 +362,13 @@ ca:
|
|
365
362
|
index:
|
366
363
|
confirm_destroy: Confirmes que vols eliminar aquest retoc?
|
367
364
|
edit: Editar
|
365
|
+
home_content_block_menu:
|
366
|
+
title: Bloc de menú global a la home
|
367
|
+
menu:
|
368
|
+
title: Menú principal
|
368
369
|
new: Nou ítem
|
369
370
|
remove: Eliminar addició
|
370
371
|
remove_hack: Eliminar retoc
|
371
|
-
title: Menú principal
|
372
372
|
new:
|
373
373
|
save: Desar
|
374
374
|
title: Nou ítem de menú
|
@@ -376,6 +376,15 @@ ca:
|
|
376
376
|
error: 'Error en actualitzar l''ítem de menú: %{error}'
|
377
377
|
success: Ítem de menú actualitzat correctament
|
378
378
|
url_exists: Aquesta URL ha estat configurada en un altre ítem de menú, si us plau edita'l en comptes de crear-ne un de nou.
|
379
|
+
amendments:
|
380
|
+
modal:
|
381
|
+
amendment_exists: Una esmena ja existeix
|
382
|
+
current_amendment_html: <p>Podeu <a href="%{amendment_link}">accedir a l'esmena actual aquí</a>.</p>
|
383
|
+
dismiss: D'acord
|
384
|
+
explanation_html: |
|
385
|
+
<p>Actualment, s'està avaluant una altra esmena per a aquesta proposta. Per crear-ne una de nova, heu d'esperar fins que l'actual sigui acceptada o rebutjada.</p>
|
386
|
+
<p>També podeu posar-vos en contacte amb l'autor d'aquesta proposta <a href="%{proposal_link}">deixant un comentari</a> i intentar accelerar la resolució de l'esmena actual.</p>
|
387
|
+
pending_limit_reached: Ho sentim, només hi pot haver una esmena pendent alhora. Si us plau, espereu fins que "%{emendation}" sigui acceptat o rebutjat.
|
379
388
|
config:
|
380
389
|
intergram:
|
381
390
|
auto_no_response: Sembla que no hi ha ningú disponible per a respondre en aquest moment. Si us plau, indica'ns com et podem contactar i ens comunicarem amb tu tan aviat com ens sigui possible.
|
@@ -437,7 +446,7 @@ ca:
|
|
437
446
|
abstained: "✔ Abstenció"
|
438
447
|
change_vote: Canvia el meu vot
|
439
448
|
default_box_title: Vota en aquesta proposta
|
440
|
-
default_instructions_html: <p>Llegeix les normes de la votació amb atenció per entendre com s'utilitzarà el teu vot per %{organization}"</p>
|
449
|
+
default_instructions_html: "<p>Llegeix les normes de la votació amb atenció per entendre com s'utilitzarà el teu vot per %{organization}\"</p>"
|
441
450
|
modal:
|
442
451
|
cancel: Cancel·la
|
443
452
|
message: El teu vot es considerarà definitiu el %{date}. Pots canviar-lo fins a aquest moment
|
@@ -455,6 +464,9 @@ ca:
|
|
455
464
|
weight_2_short: 'G:'
|
456
465
|
weight_3: Verd
|
457
466
|
weight_3_short: 'V:'
|
467
|
+
meetings:
|
468
|
+
meetings_map:
|
469
|
+
view_meeting: Veure trobada
|
458
470
|
proposals:
|
459
471
|
proposals:
|
460
472
|
orders:
|
@@ -462,11 +474,10 @@ ca:
|
|
462
474
|
supported_first: Votades per mi primer
|
463
475
|
supported_last: Votades últimes per mi
|
464
476
|
za: Z-A (ordre alfabètic invers)
|
477
|
+
proposal:
|
478
|
+
view_proposal: Veure proposta
|
465
479
|
layouts:
|
466
480
|
decidim:
|
467
|
-
admin:
|
468
|
-
decidim_awesome:
|
469
|
-
title: Modificacions a Decidim
|
470
481
|
decidim_awesome:
|
471
482
|
awesome_config:
|
472
483
|
amendments: Esmenes
|
@@ -479,4 +490,4 @@ ca:
|
|
479
490
|
items: elements
|
480
491
|
meetings: Trobades
|
481
492
|
proposals: Propostes
|
482
|
-
select_deselect_all:
|
493
|
+
select_deselect_all: Selecciona/Des-selecciona tot
|