decidim-participatory_processes 0.28.0 → 0.28.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/participatory_process_groups/content_blocks/main_data_cell.rb +1 -1
- data/app/cells/decidim/participatory_processes/content_blocks/extra_data_cell.rb +1 -1
- data/app/cells/decidim/participatory_processes/process_dropdown_metadata_cell.rb +1 -1
- data/app/cells/decidim/participatory_processes/process_step/show.erb +2 -2
- data/app/controllers/concerns/decidim/participatory_processes/admin/filterable.rb +21 -1
- data/app/controllers/decidim/participatory_processes/admin/categories_controller.rb +0 -2
- data/app/helpers/decidim/participatory_processes/participatory_process_helper.rb +1 -1
- data/app/views/decidim/participatory_processes/admin/participatory_process_copies/new.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/edit.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/new.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_imports/new.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/edit.html.erb +7 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/index.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/new.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_types/edit.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_types/index.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_types/new.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/edit.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/index.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/new.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_processes/edit.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_processes/index.html.erb +0 -25
- data/app/views/decidim/participatory_processes/admin/participatory_processes/new.html.erb +2 -2
- data/app/views/layouts/decidim/admin/_manage_processes.html.erb +2 -27
- data/config/locales/ar.yml +0 -3
- data/config/locales/ca.yml +11 -5
- data/config/locales/cs.yml +5 -3
- data/config/locales/de.yml +11 -4
- data/config/locales/el.yml +0 -2
- data/config/locales/en.yml +10 -3
- data/config/locales/es-MX.yml +10 -3
- data/config/locales/es-PY.yml +10 -3
- data/config/locales/es.yml +11 -4
- data/config/locales/eu.yml +14 -4
- data/config/locales/fi-plain.yml +10 -4
- data/config/locales/fi.yml +10 -4
- data/config/locales/fr-CA.yml +9 -3
- data/config/locales/fr.yml +9 -3
- data/config/locales/gl.yml +0 -2
- data/config/locales/he-IL.yml +1 -0
- data/config/locales/hu.yml +0 -2
- data/config/locales/id-ID.yml +0 -3
- data/config/locales/it.yml +0 -2
- data/config/locales/ja.yml +9 -3
- data/config/locales/lb.yml +88 -2
- data/config/locales/lt.yml +0 -2
- data/config/locales/lv.yml +0 -3
- data/config/locales/nl.yml +0 -2
- data/config/locales/no.yml +59 -2
- data/config/locales/pl.yml +71 -2
- data/config/locales/pt-BR.yml +22 -3
- data/config/locales/pt.yml +0 -2
- data/config/locales/ro-RO.yml +0 -2
- data/config/locales/sk.yml +0 -3
- data/config/locales/sv.yml +2 -2
- data/config/locales/tr-TR.yml +1 -4
- data/config/locales/zh-CN.yml +0 -3
- data/config/locales/zh-TW.yml +0 -2
- data/decidim-participatory_processes.gemspec +38 -0
- data/lib/decidim/participatory_processes/admin_engine.rb +1 -15
- data/lib/decidim/participatory_processes/content_blocks/registry_manager.rb +23 -9
- data/lib/decidim/participatory_processes/menu.rb +30 -4
- data/lib/decidim/participatory_processes/test/factories.rb +62 -38
- data/lib/decidim/participatory_processes/version.rb +1 -1
- metadata +18 -18
- data/app/cells/decidim/participatory_processes/content_blocks/hero_cell.rb +0 -29
- data/config/environment.rb +0 -3
@@ -80,10 +80,8 @@ module Decidim
|
|
80
80
|
def self.register_admin_participatory_process_components_menu!
|
81
81
|
Decidim.menu :admin_participatory_process_components_menu do |menu|
|
82
82
|
current_participatory_space.components.each do |component|
|
83
|
-
caption =
|
84
|
-
if component.primary_stat.present?
|
85
|
-
caption += content_tag(:span, component.primary_stat, class: component.primary_stat.zero? ? "component-counter component-counter--off" : "component-counter")
|
86
|
-
end
|
83
|
+
caption = decidim_escape_translated(component.name)
|
84
|
+
caption += content_tag(:span, component.primary_stat, class: "component-counter") if component.primary_stat.present?
|
87
85
|
|
88
86
|
menu.add_item [component.manifest_name, component.id].join("_"),
|
89
87
|
caption.html_safe,
|
@@ -185,6 +183,34 @@ module Decidim
|
|
185
183
|
active: is_active_link?(decidim_admin_participatory_processes.participatory_process_group_landing_page_path(participatory_process_group))
|
186
184
|
end
|
187
185
|
end
|
186
|
+
|
187
|
+
def self.register_admin_participatory_processes_manage_menu!
|
188
|
+
Decidim.menu :admin_participatory_processes_manage_menu do |menu|
|
189
|
+
menu.add_item :processes,
|
190
|
+
I18n.t("menu.participatory_processes", scope: "decidim.admin"),
|
191
|
+
decidim_admin_participatory_processes.participatory_processes_path,
|
192
|
+
position: 1,
|
193
|
+
icon_name: "treasure-map-line",
|
194
|
+
if: allowed_to?(:read, :process_list),
|
195
|
+
active: is_active_link?(decidim_admin_participatory_processes.participatory_processes_path)
|
196
|
+
|
197
|
+
menu.add_item :import_process,
|
198
|
+
I18n.t("actions.import_process", scope: "decidim.admin"),
|
199
|
+
decidim_admin_participatory_processes.new_import_path,
|
200
|
+
position: 2,
|
201
|
+
icon_name: "upload-line",
|
202
|
+
if: allowed_to?(:import, :process),
|
203
|
+
active: is_active_link?(decidim_admin_participatory_processes.new_import_path)
|
204
|
+
|
205
|
+
menu.add_item :participatory_process_types,
|
206
|
+
I18n.t("menu.participatory_process_types", scope: "decidim.admin"),
|
207
|
+
decidim_admin_participatory_processes.participatory_process_types_path,
|
208
|
+
position: 3,
|
209
|
+
icon_name: "price-tag-3-line",
|
210
|
+
if: allowed_to?(:manage, :participatory_process_type),
|
211
|
+
active: is_active_link?(decidim_admin_participatory_processes.participatory_process_types_path)
|
212
|
+
end
|
213
|
+
end
|
188
214
|
end
|
189
215
|
end
|
190
216
|
end
|
@@ -11,23 +11,26 @@ FactoryBot.define do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
factory :participatory_process, class: "Decidim::ParticipatoryProcess" do
|
14
|
-
|
14
|
+
transient do
|
15
|
+
skip_injection { false }
|
16
|
+
end
|
17
|
+
title { generate_localized_title(:participatory_process_title, skip_injection:) }
|
15
18
|
slug { generate(:participatory_process_slug) }
|
16
|
-
subtitle { generate_localized_title }
|
19
|
+
subtitle { generate_localized_title(:participatory_process_subtitle, skip_injection:) }
|
17
20
|
weight { 1 }
|
18
|
-
short_description {
|
19
|
-
description {
|
21
|
+
short_description { generate_localized_description(:participatory_process_short_description, skip_injection:) }
|
22
|
+
description { generate_localized_description(:participatory_process_description, skip_injection:) }
|
20
23
|
organization
|
21
24
|
hero_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") } # Keep after organization
|
22
25
|
banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") } # Keep after organization
|
23
26
|
published_at { Time.current }
|
24
|
-
meta_scope {
|
25
|
-
developer_group { generate_localized_title }
|
26
|
-
local_area { generate_localized_title }
|
27
|
-
target { generate_localized_title }
|
28
|
-
participatory_scope { generate_localized_title }
|
29
|
-
participatory_structure { generate_localized_title }
|
30
|
-
announcement { generate_localized_title }
|
27
|
+
meta_scope { generate_localized_word(:participatory_process_meta_scope, skip_injection:) }
|
28
|
+
developer_group { generate_localized_title(:participatory_process_developer_group, skip_injection:) }
|
29
|
+
local_area { generate_localized_title(:participatory_process_local_area, skip_injection:) }
|
30
|
+
target { generate_localized_title(:participatory_process_target, skip_injection:) }
|
31
|
+
participatory_scope { generate_localized_title(:participatory_process_participatory_scope, skip_injection:) }
|
32
|
+
participatory_structure { generate_localized_title(:participatory_process_participatory_structure, skip_injection:) }
|
33
|
+
announcement { generate_localized_title(:participatory_process_announcement, skip_injection:) }
|
31
34
|
show_metrics { true }
|
32
35
|
show_statistics { true }
|
33
36
|
private_space { false }
|
@@ -58,6 +61,7 @@ FactoryBot.define do
|
|
58
61
|
create(:participatory_process_step,
|
59
62
|
active: true,
|
60
63
|
end_date: evaluator.current_step_ends,
|
64
|
+
skip_injection: evaluator.skip_injection,
|
61
65
|
participatory_process:)
|
62
66
|
participatory_process.reload
|
63
67
|
participatory_process.steps.reload
|
@@ -81,11 +85,11 @@ FactoryBot.define do
|
|
81
85
|
|
82
86
|
trait :with_scope do
|
83
87
|
scopes_enabled { true }
|
84
|
-
scope { create :scope, organization: }
|
88
|
+
scope { create :scope, organization:, skip_injection: }
|
85
89
|
end
|
86
90
|
|
87
91
|
trait :with_content_blocks do
|
88
|
-
transient { blocks_manifests { [:
|
92
|
+
transient { blocks_manifests { [:hero] } }
|
89
93
|
|
90
94
|
after(:create) do |participatory_process, evaluator|
|
91
95
|
evaluator.blocks_manifests.each do |manifest_name|
|
@@ -94,6 +98,7 @@ FactoryBot.define do
|
|
94
98
|
organization: participatory_process.organization,
|
95
99
|
scope_name: :participatory_process_homepage,
|
96
100
|
manifest_name:,
|
101
|
+
skip_injection: evaluator.skip_injection,
|
97
102
|
scoped_resource_id: participatory_process.id
|
98
103
|
)
|
99
104
|
end
|
@@ -102,33 +107,40 @@ FactoryBot.define do
|
|
102
107
|
end
|
103
108
|
|
104
109
|
factory :participatory_process_group, class: "Decidim::ParticipatoryProcessGroup" do
|
105
|
-
|
106
|
-
|
110
|
+
transient do
|
111
|
+
skip_injection { false }
|
112
|
+
end
|
113
|
+
title { generate_localized_title(:participatory_process_group_title, skip_injection:) }
|
114
|
+
description { generate_localized_description(:participatory_process_group_description, skip_injection:) }
|
107
115
|
hero_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") }
|
108
116
|
organization
|
109
117
|
hashtag { Faker::Internet.slug }
|
110
118
|
group_url { Faker::Internet.url }
|
111
|
-
developer_group { generate_localized_title }
|
112
|
-
local_area { generate_localized_title }
|
119
|
+
developer_group { generate_localized_title(:participatory_process_group_developer_group, skip_injection:) }
|
120
|
+
local_area { generate_localized_title(:participatory_process_group_local_area, skip_injection:) }
|
113
121
|
meta_scope { Decidim::Faker::Localized.word }
|
114
|
-
target { generate_localized_title }
|
115
|
-
participatory_scope { generate_localized_title }
|
116
|
-
participatory_structure { generate_localized_title }
|
122
|
+
target { generate_localized_title(:participatory_process_group_target, skip_injection:) }
|
123
|
+
participatory_scope { generate_localized_title(:participatory_process_group_participatory_scope, skip_injection:) }
|
124
|
+
participatory_structure { generate_localized_title(:participatory_process_group_participatory_structure, skip_injection:) }
|
117
125
|
|
118
126
|
trait :promoted do
|
119
127
|
promoted { true }
|
120
128
|
end
|
121
129
|
|
122
130
|
trait :with_participatory_processes do
|
123
|
-
after(:create) do |participatory_process_group|
|
124
|
-
create_list(:participatory_process, 2, :published, organization: participatory_process_group.organization, participatory_process_group
|
131
|
+
after(:create) do |participatory_process_group, evaluator|
|
132
|
+
create_list(:participatory_process, 2, :published, organization: participatory_process_group.organization, participatory_process_group:,
|
133
|
+
skip_injection: evaluator.skip_injection)
|
125
134
|
end
|
126
135
|
end
|
127
136
|
end
|
128
137
|
|
129
138
|
factory :participatory_process_step, class: "Decidim::ParticipatoryProcessStep" do
|
130
|
-
|
131
|
-
|
139
|
+
transient do
|
140
|
+
skip_injection { false }
|
141
|
+
end
|
142
|
+
title { generate_localized_title(:participatory_process_step_title, skip_injection:) }
|
143
|
+
description { generate_localized_description(:participatory_process_step_description, skip_injection:) }
|
132
144
|
start_date { 1.month.ago }
|
133
145
|
end_date { 2.months.from_now }
|
134
146
|
position { nil }
|
@@ -145,25 +157,31 @@ FactoryBot.define do
|
|
145
157
|
end
|
146
158
|
|
147
159
|
factory :participatory_process_type, class: "Decidim::ParticipatoryProcessType" do
|
148
|
-
|
160
|
+
transient do
|
161
|
+
skip_injection { false }
|
162
|
+
end
|
163
|
+
title { generate_localized_title(:participatory_process_type_title, skip_injection:) }
|
149
164
|
organization
|
150
165
|
|
151
166
|
trait :with_active_participatory_processes do
|
152
|
-
after(:create) do |participatory_process_type|
|
153
|
-
create_list(:participatory_process, 2, :active, :published, organization: participatory_process_type.organization, participatory_process_type
|
167
|
+
after(:create) do |participatory_process_type, evaluator|
|
168
|
+
create_list(:participatory_process, 2, :active, :published, organization: participatory_process_type.organization, participatory_process_type:,
|
169
|
+
skip_injection: evaluator.skip_injection)
|
154
170
|
end
|
155
171
|
end
|
156
172
|
|
157
173
|
trait :with_past_participatory_processes do
|
158
|
-
after(:create) do |participatory_process_type|
|
159
|
-
create_list(:participatory_process, 2, :past, :published, organization: participatory_process_type.organization, participatory_process_type
|
174
|
+
after(:create) do |participatory_process_type, evaluator|
|
175
|
+
create_list(:participatory_process, 2, :past, :published, organization: participatory_process_type.organization, participatory_process_type:,
|
176
|
+
skip_injection: evaluator.skip_injection)
|
160
177
|
end
|
161
178
|
end
|
162
179
|
end
|
163
180
|
|
164
181
|
factory :process_admin, parent: :user, class: "Decidim::User" do
|
165
182
|
transient do
|
166
|
-
|
183
|
+
skip_injection { false }
|
184
|
+
participatory_process { create(:participatory_process, skip_injection:) }
|
167
185
|
end
|
168
186
|
|
169
187
|
organization { participatory_process.organization }
|
@@ -173,13 +191,14 @@ FactoryBot.define do
|
|
173
191
|
create :participatory_process_user_role,
|
174
192
|
user:,
|
175
193
|
participatory_process: evaluator.participatory_process,
|
176
|
-
role: :admin
|
194
|
+
role: :admin, skip_injection: evaluator.skip_injection
|
177
195
|
end
|
178
196
|
end
|
179
197
|
|
180
198
|
factory :process_collaborator, parent: :user, class: "Decidim::User" do
|
181
199
|
transient do
|
182
|
-
|
200
|
+
skip_injection { false }
|
201
|
+
participatory_process { create(:participatory_process, skip_injection:) }
|
183
202
|
end
|
184
203
|
|
185
204
|
organization { participatory_process.organization }
|
@@ -189,13 +208,14 @@ FactoryBot.define do
|
|
189
208
|
create :participatory_process_user_role,
|
190
209
|
user:,
|
191
210
|
participatory_process: evaluator.participatory_process,
|
192
|
-
role: :collaborator
|
211
|
+
role: :collaborator, skip_injection: evaluator.skip_injection
|
193
212
|
end
|
194
213
|
end
|
195
214
|
|
196
215
|
factory :process_moderator, parent: :user, class: "Decidim::User" do
|
197
216
|
transient do
|
198
|
-
|
217
|
+
skip_injection { false }
|
218
|
+
participatory_process { create(:participatory_process, skip_injection:) }
|
199
219
|
end
|
200
220
|
|
201
221
|
organization { participatory_process.organization }
|
@@ -205,13 +225,14 @@ FactoryBot.define do
|
|
205
225
|
create :participatory_process_user_role,
|
206
226
|
user:,
|
207
227
|
participatory_process: evaluator.participatory_process,
|
208
|
-
role: :moderator
|
228
|
+
role: :moderator, skip_injection: evaluator.skip_injection
|
209
229
|
end
|
210
230
|
end
|
211
231
|
|
212
232
|
factory :process_valuator, parent: :user, class: "Decidim::User" do
|
213
233
|
transient do
|
214
|
-
|
234
|
+
skip_injection { false }
|
235
|
+
participatory_process { create(:participatory_process, skip_injection:) }
|
215
236
|
end
|
216
237
|
|
217
238
|
organization { participatory_process.organization }
|
@@ -221,13 +242,16 @@ FactoryBot.define do
|
|
221
242
|
create :participatory_process_user_role,
|
222
243
|
user:,
|
223
244
|
participatory_process: evaluator.participatory_process,
|
224
|
-
role: :valuator
|
245
|
+
role: :valuator, skip_injection: evaluator.skip_injection
|
225
246
|
end
|
226
247
|
end
|
227
248
|
|
228
249
|
factory :participatory_process_user_role, class: "Decidim::ParticipatoryProcessUserRole" do
|
250
|
+
transient do
|
251
|
+
skip_injection { false }
|
252
|
+
end
|
229
253
|
user
|
230
|
-
participatory_process { create :participatory_process, organization: user.organization }
|
254
|
+
participatory_process { create :participatory_process, organization: user.organization, skip_injection: }
|
231
255
|
role { "admin" }
|
232
256
|
end
|
233
257
|
end
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-participatory_processes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.28.
|
4
|
+
version: 0.28.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
8
8
|
- Marc Riera Casals
|
9
9
|
- Oriol Gual Oliva
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,56 +18,56 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.28.
|
21
|
+
version: 0.28.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.28.
|
28
|
+
version: 0.28.1
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: decidim-admin
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.28.
|
35
|
+
version: 0.28.1
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.28.
|
42
|
+
version: 0.28.1
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: decidim-dev
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.28.
|
49
|
+
version: 0.28.1
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.28.
|
56
|
+
version: 0.28.1
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: decidim-meetings
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.28.
|
63
|
+
version: 0.28.1
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - '='
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: 0.28.
|
70
|
+
version: 0.28.1
|
71
71
|
description: Participatory processes component for decidim.
|
72
72
|
email:
|
73
73
|
- josepjaume@gmail.com
|
@@ -91,7 +91,6 @@ files:
|
|
91
91
|
- app/cells/decidim/participatory_processes/content_block_cell.rb
|
92
92
|
- app/cells/decidim/participatory_processes/content_blocks/extra_data/active_step.erb
|
93
93
|
- app/cells/decidim/participatory_processes/content_blocks/extra_data_cell.rb
|
94
|
-
- app/cells/decidim/participatory_processes/content_blocks/hero_cell.rb
|
95
94
|
- app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb
|
96
95
|
- app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form/show.erb
|
97
96
|
- app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_settings_form_cell.rb
|
@@ -285,7 +284,6 @@ files:
|
|
285
284
|
- app/views/layouts/decidim/admin/participatory_processes.html.erb
|
286
285
|
- app/views/layouts/decidim/participatory_process.html.erb
|
287
286
|
- config/assets.rb
|
288
|
-
- config/environment.rb
|
289
287
|
- config/locales/am-ET.yml
|
290
288
|
- config/locales/ar-SA.yml
|
291
289
|
- config/locales/ar.yml
|
@@ -318,6 +316,7 @@ files:
|
|
318
316
|
- config/locales/ga-IE.yml
|
319
317
|
- config/locales/gl.yml
|
320
318
|
- config/locales/gn-PY.yml
|
319
|
+
- config/locales/he-IL.yml
|
321
320
|
- config/locales/hr-HR.yml
|
322
321
|
- config/locales/hr.yml
|
323
322
|
- config/locales/hu.yml
|
@@ -413,6 +412,7 @@ files:
|
|
413
412
|
- db/migrate/20210415163339_allow_null_file_column_in_decidim_attachments_table.rb
|
414
413
|
- db/migrate/20211125202008_create_decidim_participatory_process_types.rb
|
415
414
|
- db/migrate/20220315100140_change_steps_dates_to_datetime.rb
|
415
|
+
- decidim-participatory_processes.gemspec
|
416
416
|
- lib/decidim/api/participatory_process_group_type.rb
|
417
417
|
- lib/decidim/api/participatory_process_input_filter.rb
|
418
418
|
- lib/decidim/api/participatory_process_input_sort.rb
|
@@ -441,23 +441,23 @@ metadata:
|
|
441
441
|
funding_uri: https://opencollective.com/decidim
|
442
442
|
homepage_uri: https://decidim.org
|
443
443
|
source_code_uri: https://github.com/decidim/decidim
|
444
|
-
post_install_message:
|
444
|
+
post_install_message:
|
445
445
|
rdoc_options: []
|
446
446
|
require_paths:
|
447
447
|
- lib
|
448
448
|
required_ruby_version: !ruby/object:Gem::Requirement
|
449
449
|
requirements:
|
450
|
-
- - "
|
450
|
+
- - "~>"
|
451
451
|
- !ruby/object:Gem::Version
|
452
|
-
version:
|
452
|
+
version: 3.1.0
|
453
453
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
454
454
|
requirements:
|
455
455
|
- - ">="
|
456
456
|
- !ruby/object:Gem::Version
|
457
457
|
version: '0'
|
458
458
|
requirements: []
|
459
|
-
rubygems_version: 3.
|
460
|
-
signing_key:
|
459
|
+
rubygems_version: 3.5.9
|
460
|
+
signing_key:
|
461
461
|
specification_version: 4
|
462
462
|
summary: Decidim participatory processes module
|
463
463
|
test_files: []
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module ParticipatoryProcesses
|
5
|
-
module ContentBlocks
|
6
|
-
class HeroCell < Decidim::ContentBlocks::ParticipatorySpaceHeroCell
|
7
|
-
include Decidim::ApplicationHelper
|
8
|
-
|
9
|
-
delegate :active_step, to: :resource
|
10
|
-
|
11
|
-
def decidim_participatory_processes
|
12
|
-
Decidim::ParticipatoryProcesses::Engine.routes.url_helpers
|
13
|
-
end
|
14
|
-
|
15
|
-
def cta_text
|
16
|
-
return if active_step.blank?
|
17
|
-
|
18
|
-
@cta_text ||= translated_attribute(active_step.cta_text).presence
|
19
|
-
end
|
20
|
-
|
21
|
-
def cta_path
|
22
|
-
return if active_step.blank?
|
23
|
-
|
24
|
-
@cta_path ||= active_step.cta_path.presence && step_cta_url(resource)
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
data/config/environment.rb
DELETED