decidim-proposals 0.18.1 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/decidim_proposals_manifest.js +0 -1
- data/app/assets/javascripts/decidim/proposals/admin/proposals_form.js.es6 +5 -0
- data/app/cells/decidim/proposals/collaborative_draft_m_cell.rb +1 -0
- data/app/cells/decidim/proposals/endorsers_list_cell.rb +1 -0
- data/app/cells/decidim/proposals/irreversible_action_modal_cell.rb +1 -0
- data/app/cells/decidim/proposals/participatory_text_proposal/buttons.erb +8 -8
- data/app/cells/decidim/proposals/participatory_text_proposal_cell.rb +13 -0
- data/app/cells/decidim/proposals/proposal_link_to_collaborative_draft_cell.rb +4 -8
- data/app/cells/decidim/proposals/{proposal_link_to_collaborative_draft → proposal_link_to_rejected_emendation}/show.erb +0 -0
- data/app/cells/decidim/proposals/proposal_link_to_rejected_emendation_cell.rb +34 -0
- data/app/cells/decidim/proposals/proposal_linked_resources/show.erb +9 -0
- data/app/cells/decidim/proposals/proposal_linked_resources_cell.rb +14 -0
- data/app/cells/decidim/proposals/proposal_m_cell.rb +3 -0
- data/app/commands/decidim/proposals/admin/create_proposal.rb +10 -33
- data/app/commands/decidim/proposals/admin/import_participatory_text.rb +2 -0
- data/app/commands/decidim/proposals/admin/merge_proposals.rb +1 -0
- data/app/commands/decidim/proposals/admin/publish_participatory_text.rb +24 -1
- data/app/commands/decidim/proposals/admin/update_participatory_text.rb +11 -7
- data/app/commands/decidim/proposals/admin/update_proposal.rb +9 -1
- data/app/commands/decidim/proposals/gallery_methods.rb +67 -0
- data/app/commands/decidim/proposals/unvote_proposal.rb +1 -0
- data/app/commands/decidim/proposals/update_proposal.rb +6 -1
- data/app/commands/decidim/proposals/vote_proposal.rb +1 -0
- data/app/controllers/concerns/decidim/proposals/collaborative_orderable.rb +1 -15
- data/app/controllers/concerns/decidim/proposals/orderable.rb +1 -15
- data/app/controllers/decidim/proposals/admin/participatory_texts_controller.rb +5 -0
- data/app/controllers/decidim/proposals/application_controller.rb +1 -0
- data/app/controllers/decidim/proposals/collaborative_drafts_controller.rb +1 -0
- data/app/controllers/decidim/proposals/proposal_endorsements_controller.rb +1 -1
- data/app/controllers/decidim/proposals/proposal_votes_controller.rb +1 -1
- data/app/controllers/decidim/proposals/proposals_controller.rb +22 -23
- data/app/forms/decidim/proposals/admin/proposal_form.rb +3 -0
- data/app/forms/decidim/proposals/admin/proposals_fork_form.rb +1 -0
- data/app/forms/decidim/proposals/proposal_wizard_create_step_form.rb +1 -0
- data/app/helpers/decidim/proposals/admin/proposals_helper.rb +1 -0
- data/app/helpers/decidim/proposals/map_helper.rb +1 -1
- data/app/helpers/decidim/proposals/proposal_cells_helper.rb +2 -0
- data/app/helpers/decidim/proposals/proposal_endorsements_helper.rb +1 -0
- data/app/helpers/decidim/proposals/proposal_votes_helper.rb +5 -0
- data/app/helpers/decidim/proposals/proposal_wizard_helper.rb +1 -0
- data/app/models/decidim/proposals/collaborative_draft.rb +1 -0
- data/app/models/decidim/proposals/proposal.rb +4 -8
- data/app/models/decidim/proposals/proposal_endorsement.rb +2 -0
- data/app/models/decidim/proposals/proposal_vote.rb +2 -0
- data/app/permissions/decidim/proposals/admin/permissions.rb +1 -0
- data/app/permissions/decidim/proposals/permissions.rb +17 -0
- data/app/presenters/decidim/proposals/admin_log/value_types/proposal_state_presenter.rb +1 -0
- data/app/presenters/decidim/proposals/collaborative_draft_presenter.rb +1 -1
- data/app/presenters/decidim/proposals/proposal_presenter.rb +4 -2
- data/app/queries/decidim/proposals/metrics/endorsements_metric_manage.rb +1 -0
- data/app/queries/decidim/proposals/metrics/proposal_followers_metric_measure.rb +2 -0
- data/app/queries/decidim/proposals/metrics/proposal_participants_metric_measure.rb +3 -0
- data/app/queries/decidim/proposals/metrics/proposals_metric_manage.rb +1 -0
- data/app/queries/decidim/proposals/metrics/votes_metric_manage.rb +1 -0
- data/app/services/decidim/proposals/diff_renderer.rb +43 -0
- data/app/services/decidim/proposals/proposal_builder.rb +23 -0
- data/app/services/decidim/proposals/proposal_search.rb +5 -3
- data/app/views/decidim/proposals/admin/proposals/_form.html.erb +24 -0
- data/app/views/decidim/proposals/admin/proposals/_proposal-tr.html.erb +3 -3
- data/app/views/decidim/proposals/collaborative_drafts/_collaborative_drafts.html.erb +1 -1
- data/app/views/decidim/proposals/collaborative_drafts/show.html.erb +0 -3
- data/app/views/decidim/proposals/proposal_endorsements/_identity.html.erb +1 -1
- data/app/views/decidim/proposals/proposals/_filters.html.erb +2 -1
- data/app/views/decidim/proposals/proposals/_proposal_preview.html.erb +1 -1
- data/app/views/decidim/proposals/proposals/_proposals.html.erb +1 -1
- data/app/views/decidim/proposals/proposals/index.html.erb +1 -1
- data/app/views/decidim/proposals/proposals/participatory_texts/_index.html.erb +1 -1
- data/app/views/decidim/proposals/proposals/show.html.erb +13 -9
- data/config/locales/ar.yml +2 -0
- data/config/locales/ca.yml +20 -0
- data/config/locales/cs.yml +20 -0
- data/config/locales/de.yml +2 -0
- data/config/locales/en.yml +20 -0
- data/config/locales/es-MX.yml +18 -0
- data/config/locales/es-PY.yml +18 -0
- data/config/locales/es.yml +20 -0
- data/config/locales/fi-plain.yml +20 -0
- data/config/locales/fi.yml +20 -0
- data/config/locales/fr.yml +21 -1
- data/config/locales/hu.yml +20 -0
- data/config/locales/it.yml +16 -0
- data/config/locales/nl.yml +20 -0
- data/config/locales/sv.yml +15 -0
- data/config/locales/tr-TR.yml +7 -0
- data/lib/decidim/content_parsers/proposal_parser.rb +2 -2
- data/lib/decidim/content_renderers/proposal_renderer.rb +1 -1
- data/lib/decidim/proposals/commentable_proposal.rb +1 -0
- data/lib/decidim/proposals/component.rb +8 -3
- data/lib/decidim/proposals/engine.rb +0 -1
- data/lib/decidim/proposals/markdown_to_proposals.rb +11 -7
- data/lib/decidim/proposals/proposal_serializer.rb +20 -2
- data/lib/decidim/proposals/version.rb +1 -1
- metadata +24 -38
- data/app/assets/config/decidim_proposals_manifest.css +0 -3
- data/app/assets/javascripts/decidim/proposals/social_share.js +0 -2
- data/app/assets/stylesheets/decidim/proposals/social_share.css.scss +0 -22
- data/config/initializers/social_share_button.rb +0 -5