decidim-participatory_processes 0.21.0 → 0.22.0
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_processes/content_blocks/highlighted_processes/_all_processes.erb +4 -1
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/show.erb +5 -9
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/single_process.erb +10 -5
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb +1 -1
- data/app/cells/decidim/participatory_processes/process_filters/show.erb +2 -2
- data/app/cells/decidim/participatory_processes/process_group_m/footer.erb +4 -5
- data/app/cells/decidim/participatory_processes/process_m/data.erb +1 -1
- data/app/cells/decidim/participatory_processes/process_m/footer.erb +5 -6
- data/app/cells/decidim/participatory_processes/process_m/tags.erb +2 -2
- data/app/cells/decidim/participatory_processes/process_m_cell.rb +2 -0
- data/app/cells/decidim/participatory_processes/statistics/show.erb +2 -2
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_admin.rb +2 -1
- data/app/commands/decidim/participatory_processes/admin/notify_role_assigned_to_participatory_process.rb +22 -0
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_admin.rb +3 -1
- data/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb +11 -2
- data/app/events/decidim/participatory_process_role_assigned_event.rb +28 -0
- data/app/presenters/decidim/participatory_processes/participatory_process_metric_charts_presenter.rb +2 -2
- data/app/queries/decidim/participatory_processes/stats_participants_count.rb +2 -2
- data/app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb +1 -1
- data/app/views/decidim/participatory_processes/participatory_process_groups/show.html.erb +3 -2
- data/app/views/decidim/participatory_processes/participatory_process_steps/index.html.erb +8 -3
- data/app/views/decidim/participatory_processes/participatory_processes/_metrics.html.erb +1 -1
- data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process.html.erb +7 -5
- data/app/views/decidim/participatory_processes/participatory_processes/_statistics.html.erb +0 -0
- data/app/views/decidim/participatory_processes/participatory_processes/show.html.erb +23 -11
- data/app/views/layouts/decidim/_process_header.html.erb +1 -1
- data/app/views/layouts/decidim/_process_header_steps.html.erb +1 -1
- data/config/locales/bg-BG.yml +19 -0
- data/config/locales/ca.yml +19 -1
- data/config/locales/cs.yml +26 -8
- data/config/locales/da-DK.yml +1 -0
- data/config/locales/de.yml +49 -0
- data/config/locales/el.yml +452 -0
- data/config/locales/en.yml +19 -1
- data/config/locales/es-MX.yml +18 -0
- data/config/locales/es-PY.yml +18 -0
- data/config/locales/es.yml +18 -0
- data/config/locales/et-EE.yml +1 -0
- data/config/locales/fi-plain.yml +18 -0
- data/config/locales/fi.yml +90 -72
- data/config/locales/fr-CA.yml +453 -0
- data/config/locales/fr.yml +26 -0
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/hr-HR.yml +1 -0
- data/config/locales/it.yml +28 -2
- data/config/locales/ja-JP.yml +445 -0
- data/config/locales/lt-LT.yml +1 -0
- data/config/locales/lv-LV.yml +445 -0
- data/config/locales/mt-MT.yml +1 -0
- data/config/locales/nl.yml +26 -0
- data/config/locales/no.yml +147 -136
- data/config/locales/pl.yml +54 -5
- data/config/locales/pt-BR.yml +1 -1
- data/config/locales/pt.yml +169 -120
- data/config/locales/ro-RO.yml +461 -0
- data/config/locales/sk-SK.yml +451 -0
- data/config/locales/sk.yml +451 -0
- data/config/locales/sl.yml +5 -0
- data/config/locales/sr-CS.yml +33 -0
- data/config/locales/sv.yml +151 -112
- data/db/migrate/20200320105908_index_foreign_keys_in_decidim_attachments.rb +7 -0
- data/db/migrate/20200320105924_index_foreign_keys_in_decidim_participatory_process_user_roles.rb +7 -0
- data/db/migrate/20200320105925_index_foreign_keys_in_decidim_participatory_processes.rb +8 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/lib/decidim/participatory_processes/participatory_space.rb +5 -1
- data/lib/decidim/participatory_processes/version.rb +1 -1
- metadata +29 -8
@@ -0,0 +1,8 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class IndexForeignKeysInDecidimParticipatoryProcesses < ActiveRecord::Migration[5.2]
|
4
|
+
def change
|
5
|
+
add_index :decidim_participatory_processes, :decidim_participatory_process_group_id, name: "idx_process_on_process_group_id"
|
6
|
+
add_index :decidim_participatory_processes, :decidim_scope_id, name: "idx_process_on_scope_id"
|
7
|
+
end
|
8
|
+
end
|
data/db/seeds/city.jpeg
CHANGED
Binary file
|
data/db/seeds/city2.jpeg
CHANGED
Binary file
|
@@ -48,6 +48,10 @@ Decidim.register_participatory_space(:participatory_processes) do |participatory
|
|
48
48
|
export.serializer Decidim::ParticipatoryProcesses::ParticipatoryProcessSerializer
|
49
49
|
end
|
50
50
|
|
51
|
+
participatory_space.register_on_destroy_account do |user|
|
52
|
+
Decidim::ParticipatoryProcessUserRole.where(user: user).destroy_all
|
53
|
+
end
|
54
|
+
|
51
55
|
participatory_space.seeds do
|
52
56
|
organization = Decidim::Organization.first
|
53
57
|
seeds_root = File.join(__dir__, "..", "..", "..", "db", "seeds")
|
@@ -55,7 +59,7 @@ Decidim.register_participatory_space(:participatory_processes) do |participatory
|
|
55
59
|
Decidim::ContentBlock.create(
|
56
60
|
organization: organization,
|
57
61
|
weight: 31,
|
58
|
-
|
62
|
+
scope_name: :homepage,
|
59
63
|
manifest_name: :highlighted_processes,
|
60
64
|
published_at: Time.current
|
61
65
|
)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-participatory_processes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-09-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,42 +18,42 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.22.0
|
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
|
+
version: 0.22.0
|
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.
|
35
|
+
version: 0.22.0
|
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.
|
42
|
+
version: 0.22.0
|
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.
|
49
|
+
version: 0.22.0
|
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.
|
56
|
+
version: 0.22.0
|
57
57
|
description: Participatory processes component for decidim.
|
58
58
|
email:
|
59
59
|
- josepjaume@gmail.com
|
@@ -102,6 +102,7 @@ files:
|
|
102
102
|
- app/commands/decidim/participatory_processes/admin/destroy_participatory_process_group.rb
|
103
103
|
- app/commands/decidim/participatory_processes/admin/destroy_participatory_process_step.rb
|
104
104
|
- app/commands/decidim/participatory_processes/admin/import_participatory_process.rb
|
105
|
+
- app/commands/decidim/participatory_processes/admin/notify_role_assigned_to_participatory_process.rb
|
105
106
|
- app/commands/decidim/participatory_processes/admin/publish_participatory_process.rb
|
106
107
|
- app/commands/decidim/participatory_processes/admin/reorder_participatory_process_steps.rb
|
107
108
|
- app/commands/decidim/participatory_processes/admin/unpublish_participatory_process.rb
|
@@ -138,6 +139,7 @@ files:
|
|
138
139
|
- app/controllers/decidim/participatory_processes/participatory_process_steps_controller.rb
|
139
140
|
- app/controllers/decidim/participatory_processes/participatory_process_widgets_controller.rb
|
140
141
|
- app/controllers/decidim/participatory_processes/participatory_processes_controller.rb
|
142
|
+
- app/events/decidim/participatory_process_role_assigned_event.rb
|
141
143
|
- app/events/decidim/participatory_process_step_activated_event.rb
|
142
144
|
- app/events/decidim/participatory_process_step_changed_event.rb
|
143
145
|
- app/forms/decidim/participatory_processes/admin/participatory_process_copy_form.rb
|
@@ -228,6 +230,7 @@ files:
|
|
228
230
|
- app/views/decidim/participatory_processes/participatory_processes/_metrics.html.erb
|
229
231
|
- app/views/decidim/participatory_processes/participatory_processes/_order_by_processes.html.erb
|
230
232
|
- app/views/decidim/participatory_processes/participatory_processes/_promoted_process.html.erb
|
233
|
+
- app/views/decidim/participatory_processes/participatory_processes/_statistics.html.erb
|
231
234
|
- app/views/decidim/participatory_processes/participatory_processes/all_metrics.html.erb
|
232
235
|
- app/views/decidim/participatory_processes/participatory_processes/index.html.erb
|
233
236
|
- app/views/decidim/participatory_processes/participatory_processes/index.js.erb
|
@@ -241,9 +244,11 @@ files:
|
|
241
244
|
- app/views/layouts/decidim/participatory_process.html.erb
|
242
245
|
- config/locales/ar-SA.yml
|
243
246
|
- config/locales/ar.yml
|
247
|
+
- config/locales/bg-BG.yml
|
244
248
|
- config/locales/ca.yml
|
245
249
|
- config/locales/cs-CZ.yml
|
246
250
|
- config/locales/cs.yml
|
251
|
+
- config/locales/da-DK.yml
|
247
252
|
- config/locales/de.yml
|
248
253
|
- config/locales/el-GR.yml
|
249
254
|
- config/locales/el.yml
|
@@ -252,22 +257,35 @@ files:
|
|
252
257
|
- config/locales/es-MX.yml
|
253
258
|
- config/locales/es-PY.yml
|
254
259
|
- config/locales/es.yml
|
260
|
+
- config/locales/et-EE.yml
|
255
261
|
- config/locales/eu.yml
|
256
262
|
- config/locales/fi-pl.yml
|
257
263
|
- config/locales/fi-plain.yml
|
258
264
|
- config/locales/fi.yml
|
265
|
+
- config/locales/fr-CA.yml
|
259
266
|
- config/locales/fr.yml
|
267
|
+
- config/locales/ga-IE.yml
|
260
268
|
- config/locales/gl.yml
|
269
|
+
- config/locales/hr-HR.yml
|
261
270
|
- config/locales/hu.yml
|
262
271
|
- config/locales/id-ID.yml
|
263
272
|
- config/locales/is-IS.yml
|
264
273
|
- config/locales/it.yml
|
274
|
+
- config/locales/ja-JP.yml
|
275
|
+
- config/locales/lt-LT.yml
|
276
|
+
- config/locales/lv-LV.yml
|
277
|
+
- config/locales/mt-MT.yml
|
265
278
|
- config/locales/nl.yml
|
266
279
|
- config/locales/no.yml
|
267
280
|
- config/locales/pl.yml
|
268
281
|
- config/locales/pt-BR.yml
|
269
282
|
- config/locales/pt.yml
|
283
|
+
- config/locales/ro-RO.yml
|
270
284
|
- config/locales/ru.yml
|
285
|
+
- config/locales/sk-SK.yml
|
286
|
+
- config/locales/sk.yml
|
287
|
+
- config/locales/sl.yml
|
288
|
+
- config/locales/sr-CS.yml
|
271
289
|
- config/locales/sv.yml
|
272
290
|
- config/locales/tr-TR.yml
|
273
291
|
- config/locales/uk.yml
|
@@ -306,6 +324,9 @@ files:
|
|
306
324
|
- db/migrate/20190322125517_add_area_to_participatory_processes.rb
|
307
325
|
- db/migrate/20200114142253_add_scope_type_to_participatory_processes.rb
|
308
326
|
- db/migrate/20200204154917_add_show_metrics_to_participatory_processes.rb
|
327
|
+
- db/migrate/20200320105908_index_foreign_keys_in_decidim_attachments.rb
|
328
|
+
- db/migrate/20200320105924_index_foreign_keys_in_decidim_participatory_process_user_roles.rb
|
329
|
+
- db/migrate/20200320105925_index_foreign_keys_in_decidim_participatory_processes.rb
|
309
330
|
- db/seeds/Exampledocument.pdf
|
310
331
|
- db/seeds/city.jpeg
|
311
332
|
- db/seeds/city2.jpeg
|