decidim-participatory_processes 0.28.5 → 0.29.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/cells/decidim/participatory_process_groups/content_blocks/extra_data_cell.rb +4 -4
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb +0 -2
- data/app/cells/decidim/participatory_processes/content_blocks/stats_cell.rb +1 -1
- data/app/cells/decidim/participatory_processes/process_filters/filter_tabs.erb +2 -2
- data/app/cells/decidim/participatory_processes/process_filters/show.erb +1 -1
- data/app/cells/decidim/participatory_processes/process_filters/type_filter.erb +1 -1
- data/app/cells/decidim/participatory_processes/process_filters_cell.rb +1 -2
- data/app/cells/decidim/participatory_processes/process_g_cell.rb +2 -2
- data/app/cells/decidim/participatory_processes/process_group_g_cell.rb +2 -2
- data/app/cells/decidim/participatory_processes/process_group_s_cell.rb +5 -1
- data/app/commands/decidim/participatory_processes/admin/copy_participatory_process.rb +5 -7
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process.rb +27 -99
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_group.rb +10 -53
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_step.rb +9 -36
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_type.rb +4 -34
- data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_step.rb +6 -37
- data/app/commands/decidim/participatory_processes/admin/import_participatory_process.rb +5 -4
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process.rb +10 -80
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_group.rb +6 -55
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_step.rb +8 -52
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_type.rb +2 -38
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_copies_controller.rb +1 -1
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_groups_controller.rb +2 -2
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_steps_controller.rb +2 -2
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_types_controller.rb +2 -2
- data/app/controllers/decidim/participatory_processes/admin/participatory_processes_controller.rb +1 -1
- data/app/controllers/decidim/participatory_processes/admin/participatory_space_private_users_controller.rb +1 -1
- data/app/controllers/decidim/participatory_processes/application_controller.rb +3 -0
- data/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb +1 -6
- data/app/events/decidim/participatory_process_role_assigned_event.rb +0 -5
- data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +3 -8
- data/app/helpers/decidim/participatory_processes/participatory_process_helper.rb +1 -1
- data/app/models/decidim/participatory_process.rb +1 -4
- data/app/models/decidim/participatory_process_step.rb +1 -1
- data/app/permissions/decidim/participatory_processes/permissions.rb +1 -1
- data/app/presenters/decidim/participatory_processes/participatory_process_group_presenter.rb +1 -1
- data/app/presenters/decidim/participatory_processes/participatory_process_presenter.rb +1 -5
- data/app/queries/decidim/participatory_processes/stats_participants_count.rb +4 -4
- data/app/serializers/decidim/participatory_processes/participatory_process_importer.rb +2 -5
- data/app/serializers/decidim/participatory_processes/participatory_process_serializer.rb +0 -3
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/index.html.erb +1 -1
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/show.html.erb +1 -1
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/index.html.erb +1 -1
- data/app/views/decidim/participatory_processes/admin/participatory_processes/_form.html.erb +5 -17
- data/app/views/decidim/participatory_processes/participatory_processes/all_metrics.html.erb +4 -1
- data/app/views/decidim/participatory_processes/participatory_processes/show.html.erb +24 -20
- data/config/locales/ar.yml +3 -15
- data/config/locales/bg.yml +3 -4
- data/config/locales/ca.yml +5 -8
- data/config/locales/cs.yml +6 -14
- data/config/locales/de.yml +4 -7
- data/config/locales/el.yml +3 -5
- data/config/locales/en.yml +2 -5
- data/config/locales/es-MX.yml +3 -6
- data/config/locales/es-PY.yml +3 -6
- data/config/locales/es.yml +3 -6
- data/config/locales/eu.yml +51 -54
- data/config/locales/fi-plain.yml +3 -6
- data/config/locales/fi.yml +15 -18
- data/config/locales/fr-CA.yml +4 -7
- data/config/locales/fr.yml +4 -7
- data/config/locales/ga-IE.yml +0 -10
- data/config/locales/gl.yml +3 -16
- data/config/locales/hu.yml +3 -5
- data/config/locales/id-ID.yml +3 -13
- data/config/locales/is-IS.yml +1 -13
- data/config/locales/it.yml +3 -16
- data/config/locales/ja.yml +2 -5
- data/config/locales/lb.yml +3 -15
- data/config/locales/lt.yml +2 -4
- data/config/locales/lv.yml +3 -14
- data/config/locales/nl.yml +2 -15
- data/config/locales/no.yml +4 -6
- data/config/locales/pl.yml +3 -4
- data/config/locales/pt-BR.yml +3 -13
- data/config/locales/pt.yml +2 -21
- data/config/locales/ro-RO.yml +1 -10
- data/config/locales/ru.yml +1 -13
- data/config/locales/sk.yml +3 -14
- data/config/locales/sr-CS.yml +0 -1
- data/config/locales/sv.yml +147 -233
- data/config/locales/tr-TR.yml +3 -16
- data/config/locales/uk.yml +1 -13
- data/config/locales/zh-CN.yml +3 -14
- data/config/locales/zh-TW.yml +2 -4
- data/db/migrate/20240529161054_add_link_to_decidim_attachments.rb +7 -0
- data/decidim-participatory_processes.gemspec +2 -2
- data/lib/decidim/api/participatory_process_group_type.rb +1 -1
- data/lib/decidim/api/participatory_process_type.rb +1 -8
- data/lib/decidim/participatory_processes/content_blocks/registry_manager.rb +1 -1
- data/lib/decidim/participatory_processes/engine.rb +1 -0
- data/lib/decidim/participatory_processes/menu.rb +11 -0
- data/lib/decidim/participatory_processes/query_extensions.rb +0 -26
- data/lib/decidim/participatory_processes/seeds.rb +4 -12
- data/lib/decidim/participatory_processes/test/factories.rb +0 -3
- data/lib/decidim/participatory_processes/version.rb +1 -1
- data/lib/tasks/decidim_participatory_processes.rake +1 -1
- metadata +16 -22
- data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_group.rb +0 -46
- data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_type.rb +0 -49
- data/app/views/decidim/participatory_processes/participatory_processes/_statistics.html.erb +0 -0
- data/app/views/layouts/decidim/_process_header.html.erb +0 -17
- data/app/views/layouts/decidim/participatory_process.html.erb +0 -18
- data/config/locales/bn-BD.yml +0 -1
- data/config/locales/bs-BA.yml +0 -33
data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_type.rb
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module ParticipatoryProcesses
|
5
|
-
module Admin
|
6
|
-
# A command with all the business logic when destroying a participatory
|
7
|
-
# process type in the system.
|
8
|
-
class DestroyParticipatoryProcessType < Decidim::Command
|
9
|
-
# Public: Initializes the command.
|
10
|
-
#
|
11
|
-
# participatory_process_type - A participatory_process_type object to
|
12
|
-
# destroy
|
13
|
-
# current_user - the user performing the action
|
14
|
-
def initialize(participatory_process_type, current_user)
|
15
|
-
@participatory_process_type = participatory_process_type
|
16
|
-
@current_user = current_user
|
17
|
-
end
|
18
|
-
|
19
|
-
# Executes the command. Broadcasts these events:
|
20
|
-
#
|
21
|
-
# - :ok when everything is valid.
|
22
|
-
# - :invalid if the form was not valid and we could not proceed.
|
23
|
-
#
|
24
|
-
# Returns nothing.
|
25
|
-
def call
|
26
|
-
destroy_participatory_process_type!
|
27
|
-
|
28
|
-
broadcast(:ok)
|
29
|
-
end
|
30
|
-
|
31
|
-
private
|
32
|
-
|
33
|
-
attr_reader :current_user
|
34
|
-
|
35
|
-
def destroy_participatory_process_type!
|
36
|
-
transaction do
|
37
|
-
Decidim.traceability.perform_action!(
|
38
|
-
"delete",
|
39
|
-
@participatory_process_type,
|
40
|
-
current_user
|
41
|
-
) do
|
42
|
-
@participatory_process_type.destroy!
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
File without changes
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<section style="background-image:url('<%= current_participatory_space.attached_uploader(:banner_image).path %>');">
|
2
|
-
<div class="process__hero">
|
3
|
-
<div class="process__hero-text">
|
4
|
-
<h1 class="h1 text-5xl">
|
5
|
-
<%= translated_attribute(current_participatory_space.title) %>
|
6
|
-
</h1>
|
7
|
-
<p class="process__hero-slogan">
|
8
|
-
<% if current_participatory_space.hashtag.present? %>
|
9
|
-
<span>
|
10
|
-
<%= link_to "##{decidim_html_escape(current_participatory_space.hashtag)}", twitter_hashtag_url(decidim_html_escape(current_participatory_space.hashtag)), target: "_blank" %>
|
11
|
-
</span>
|
12
|
-
<% end %>
|
13
|
-
<%= translated_attribute(current_participatory_space.subtitle) %>
|
14
|
-
</p>
|
15
|
-
</div>
|
16
|
-
</div>
|
17
|
-
</section>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<% add_decidim_page_title(translated_attribute(current_component.name)) if try(:current_component) %>
|
2
|
-
<% add_decidim_page_title(translated_attribute(current_participatory_space.title)) %>
|
3
|
-
<% add_decidim_meta_tags(
|
4
|
-
image_url: current_participatory_space.attached_uploader(:banner_image).path,
|
5
|
-
description: translated_attribute(current_participatory_space.short_description)
|
6
|
-
) %>
|
7
|
-
|
8
|
-
<%= append_javascript_pack_tag "decidim_participatory_processes" %>
|
9
|
-
|
10
|
-
<%= render partial: "layouts/decidim/header/follow_space_menu_bar_button", locals: { participatory_space: current_participatory_space } %>
|
11
|
-
|
12
|
-
<%= render "layouts/decidim/application" do %>
|
13
|
-
<main>
|
14
|
-
<%= yield %>
|
15
|
-
</main>
|
16
|
-
<% end %>
|
17
|
-
|
18
|
-
<% provide :meta_image_url, current_participatory_space.attached_uploader(:banner_image).path %>
|
data/config/locales/bn-BD.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
bn:
|
data/config/locales/bs-BA.yml
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
---
|
2
|
-
bs:
|
3
|
-
activemodel:
|
4
|
-
attributes:
|
5
|
-
participatory_process:
|
6
|
-
scope_type_max_depth_id: Obim dubine filtera
|
7
|
-
show_metrics: Prikaži metriku
|
8
|
-
decidim:
|
9
|
-
admin:
|
10
|
-
models:
|
11
|
-
participatory_process_user_role:
|
12
|
-
roles:
|
13
|
-
valuator: Procenjivač
|
14
|
-
participatory_process_user_roles:
|
15
|
-
edit:
|
16
|
-
title: Ažuriraj administratora participatornog procesa
|
17
|
-
new:
|
18
|
-
title: Novi administrator participatornog prostora
|
19
|
-
events:
|
20
|
-
participatory_process:
|
21
|
-
role_assigned:
|
22
|
-
email_intro: Imenovani ste na funkciju %{role} za participatorni proces "%{resource_title}".
|
23
|
-
email_outro: Dobili ste ovo obaveštenje zbog toga što ste %{role} participatornog procesa "%{resource_title}".
|
24
|
-
email_subject: Imenovani ste na funkciju %{role} %{resource_title}.
|
25
|
-
participatory_process_groups:
|
26
|
-
content_blocks:
|
27
|
-
stats:
|
28
|
-
name: Statistika
|
29
|
-
participatory_processes:
|
30
|
-
admin:
|
31
|
-
participatory_processes:
|
32
|
-
form:
|
33
|
-
scope_type_max_depth_help: Ograniči obim dubine filtera; Filter će pokazivati od opšteg ka odabranom tipu obima.
|