decidim-participatory_processes 0.24.3 → 0.25.0.rc1
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/highlighted_participatory_processes/filters.erb +0 -1
- data/app/cells/decidim/participatory_process_groups/content_blocks/statistics_cell.rb +16 -0
- data/app/cells/decidim/participatory_process_groups/content_blocks/title/show.erb +1 -1
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/single_process.erb +1 -1
- data/app/cells/decidim/participatory_processes/process_group_m_cell.rb +1 -1
- data/app/cells/decidim/participatory_processes/process_group_s_cell.rb +2 -2
- data/app/cells/decidim/participatory_processes/process_m_cell.rb +1 -1
- data/app/cells/decidim/participatory_processes/process_s_cell.rb +2 -2
- data/app/commands/decidim/participatory_processes/admin/copy_participatory_process.rb +9 -2
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process.rb +5 -10
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_group.rb +3 -3
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_groups_controller.rb +3 -3
- data/app/controllers/decidim/participatory_processes/admin/participatory_processes_controller.rb +1 -5
- data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +2 -2
- data/app/forms/decidim/participatory_processes/admin/participatory_process_group_form.rb +1 -1
- data/app/forms/decidim/participatory_processes/admin/participatory_process_import_form.rb +1 -0
- data/app/helpers/decidim/participatory_processes/participatory_process_helper.rb +1 -1
- data/app/models/decidim/participatory_process.rb +9 -5
- data/app/models/decidim/participatory_process_group.rb +2 -2
- data/app/packs/entrypoints/decidim_participatory_processes.js +4 -0
- data/app/packs/entrypoints/decidim_participatory_processes_admin.js +1 -0
- data/app/{assets/images/decidim/participatory_processes/process.svg → packs/images/decidim/participatory_processes/decidim_participatory_processes.svg} +0 -0
- data/app/packs/src/decidim/participatory_processes/admin/participatory_processes.js +18 -0
- data/app/packs/src/decidim/participatory_processes/filters.js +28 -0
- data/app/presenters/decidim/participatory_processes/participatory_process_group_presenter.rb +1 -6
- data/app/presenters/decidim/participatory_processes/participatory_process_group_stats_presenter.rb +3 -13
- data/app/presenters/decidim/participatory_processes/participatory_process_presenter.rb +2 -9
- data/app/presenters/decidim/participatory_processes/participatory_process_stats_presenter.rb +3 -13
- data/app/queries/decidim/participatory_processes/admin/admin_users.rb +23 -10
- data/app/queries/decidim/participatory_processes/admin/moderators.rb +24 -11
- data/app/queries/decidim/participatory_processes/stats_participants_count.rb +9 -0
- data/app/serializers/decidim/participatory_processes/participatory_process_serializer.rb +2 -1
- data/app/views/decidim/participatory_processes/admin/participatory_process_copies/_form.html.erb +0 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/index.html.erb +3 -1
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/show.html.erb +2 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_imports/_form.html.erb +0 -2
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/_form.html.erb +0 -2
- data/app/views/decidim/participatory_processes/admin/participatory_processes/_form.html.erb +1 -3
- data/app/views/decidim/participatory_processes/admin/participatory_processes/index.html.erb +3 -1
- data/app/views/decidim/participatory_processes/participatory_process_groups/show.html.erb +2 -2
- data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process.html.erb +1 -1
- data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process_group.html.erb +1 -1
- data/app/views/decidim/participatory_processes/participatory_processes/index.html.erb +2 -2
- data/app/views/decidim/participatory_processes/participatory_processes/show.html.erb +2 -2
- data/app/views/layouts/decidim/_process_header.html.erb +1 -1
- data/app/views/layouts/decidim/_process_header_steps.html.erb +1 -1
- data/app/views/layouts/decidim/admin/participatory_process.html.erb +2 -76
- data/app/views/layouts/decidim/admin/participatory_process_group.html.erb +1 -1
- data/app/views/layouts/decidim/participatory_process.html.erb +2 -2
- data/config/assets.rb +9 -0
- data/config/locales/ar.yml +0 -19
- data/config/locales/ca.yml +4 -20
- data/config/locales/cs.yml +5 -21
- data/config/locales/de.yml +5 -21
- data/config/locales/el.yml +0 -19
- data/config/locales/en.yml +4 -20
- data/config/locales/es-MX.yml +4 -20
- data/config/locales/es-PY.yml +4 -20
- data/config/locales/es.yml +4 -20
- data/config/locales/eu.yml +0 -17
- data/config/locales/fi-plain.yml +4 -20
- data/config/locales/fi.yml +4 -20
- data/config/locales/fr-CA.yml +2 -21
- data/config/locales/fr-LU.yml +484 -0
- data/config/locales/fr.yml +2 -21
- data/config/locales/gl.yml +4 -20
- data/config/locales/hu.yml +0 -19
- data/config/locales/id-ID.yml +0 -17
- data/config/locales/is-IS.yml +0 -15
- data/config/locales/it.yml +52 -21
- data/config/locales/ja.yml +55 -19
- data/config/locales/lb-LU.yml +1 -0
- data/config/locales/lv.yml +0 -18
- data/config/locales/nl.yml +4 -19
- data/config/locales/no.yml +0 -20
- data/config/locales/pl.yml +4 -22
- data/config/locales/pt-BR.yml +103 -17
- data/config/locales/pt.yml +0 -19
- data/config/locales/ro-RO.yml +4 -19
- data/config/locales/ru.yml +0 -17
- data/config/locales/sk.yml +0 -19
- data/config/locales/sr-CS.yml +0 -4
- data/config/locales/sv.yml +2 -19
- data/config/locales/tr-TR.yml +1 -20
- data/config/locales/uk.yml +0 -17
- data/config/locales/zh-CN.yml +0 -19
- data/db/migrate/20210415163339_allow_null_file_column_in_decidim_attachments_table.rb +7 -0
- data/lib/decidim/api/participatory_process_group_type.rb +4 -0
- data/lib/decidim/api/participatory_process_type.rb +9 -1
- data/lib/decidim/participatory_processes/admin_engine.rb +119 -37
- data/lib/decidim/participatory_processes/engine.rb +7 -10
- data/lib/decidim/participatory_processes/participatory_space.rb +40 -7
- data/lib/decidim/participatory_processes/version.rb +1 -1
- metadata +35 -25
- data/app/assets/config/admin/decidim_participatory_processes_manifest.js +0 -1
- data/app/assets/config/decidim_participatory_processes_manifest.js +0 -2
- data/app/assets/javascripts/decidim/participatory_processes/admin/participatory_processes.js.es6 +0 -20
- data/app/assets/javascripts/decidim/participatory_processes/filters.js.es6 +0 -31
- data/app/cells/decidim/participatory_process_groups/content_blocks/stats/show.erb +0 -13
- data/app/cells/decidim/participatory_process_groups/content_blocks/stats_cell.rb +0 -17
- data/app/cells/decidim/participatory_processes/statistic/show.erb +0 -9
- data/app/cells/decidim/participatory_processes/statistic_cell.rb +0 -20
- data/app/cells/decidim/participatory_processes/statistics/show.erb +0 -17
- data/app/cells/decidim/participatory_processes/statistics_cell.rb +0 -18
- data/app/helpers/decidim/participatory_processes/admin/participatory_processes_menu_helper.rb +0 -23
- data/app/views/decidim/participatory_processes/admin/shared/_secondary_nav.html.erb +0 -3
- data/config/locales/ja-JP.yml +0 -445
@@ -46,10 +46,6 @@ module Decidim
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
-
initializer "decidim_participatory_processes.assets" do |app|
|
50
|
-
app.config.assets.precompile += %w(decidim_participatory_processes_manifest.js)
|
51
|
-
end
|
52
|
-
|
53
49
|
initializer "decidim_participatory_processes.query_extensions" do
|
54
50
|
Decidim::Api::QueryType.include Decidim::ParticipatoryProcesses::QueryExtensions
|
55
51
|
end
|
@@ -61,11 +57,12 @@ module Decidim
|
|
61
57
|
|
62
58
|
initializer "decidim_participatory_processes.menu" do
|
63
59
|
Decidim.menu :menu do |menu|
|
64
|
-
menu.
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
60
|
+
menu.add_item :participatory_processes,
|
61
|
+
I18n.t("menu.processes", scope: "decidim"),
|
62
|
+
decidim_participatory_processes.participatory_processes_path,
|
63
|
+
position: 2,
|
64
|
+
if: Decidim::ParticipatoryProcess.where(organization: current_organization).published.any?,
|
65
|
+
active: %r{^/process(es|_groups)}
|
69
66
|
end
|
70
67
|
end
|
71
68
|
|
@@ -153,7 +150,7 @@ module Decidim
|
|
153
150
|
end
|
154
151
|
|
155
152
|
Decidim.content_blocks.register(:participatory_process_group_homepage, :stats) do |content_block|
|
156
|
-
content_block.cell = "decidim/participatory_process_groups/content_blocks/
|
153
|
+
content_block.cell = "decidim/participatory_process_groups/content_blocks/statistics"
|
157
154
|
content_block.public_name_key = "decidim.participatory_process_groups.content_blocks.stats.name"
|
158
155
|
content_block.default!
|
159
156
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
Decidim.register_participatory_space(:participatory_processes) do |participatory_space|
|
4
|
-
participatory_space.icon = "
|
4
|
+
participatory_space.icon = "media/images/decidim_participatory_processes.svg"
|
5
5
|
participatory_space.model_class_name = "Decidim::ParticipatoryProcess"
|
6
6
|
|
7
7
|
participatory_space.participatory_spaces do |organization|
|
@@ -74,7 +74,12 @@ Decidim.register_participatory_space(:participatory_processes) do |participatory
|
|
74
74
|
hashtag: Faker::Internet.slug,
|
75
75
|
group_url: Faker::Internet.url,
|
76
76
|
organization: organization,
|
77
|
-
hero_image:
|
77
|
+
hero_image: ActiveStorage::Blob.create_after_upload!(
|
78
|
+
io: File.open(File.join(seeds_root, "city.jpeg")),
|
79
|
+
filename: "hero_image.jpeg",
|
80
|
+
content_type: "image/jpeg",
|
81
|
+
metadata: nil
|
82
|
+
), # Keep after organization
|
78
83
|
developer_group: Decidim::Faker::Localized.sentence(word_count: 1),
|
79
84
|
local_area: Decidim::Faker::Localized.sentence(word_count: 2),
|
80
85
|
meta_scope: Decidim::Faker::Localized.word,
|
@@ -112,8 +117,18 @@ Decidim.register_participatory_space(:participatory_processes) do |participatory
|
|
112
117
|
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
113
118
|
end,
|
114
119
|
organization: organization,
|
115
|
-
hero_image:
|
116
|
-
|
120
|
+
hero_image: ActiveStorage::Blob.create_after_upload!(
|
121
|
+
io: File.open(File.join(seeds_root, "city.jpeg")),
|
122
|
+
filename: "hero_image.jpeg",
|
123
|
+
content_type: "image/jpeg",
|
124
|
+
metadata: nil
|
125
|
+
), # Keep after organization
|
126
|
+
banner_image: ActiveStorage::Blob.create_after_upload!(
|
127
|
+
io: File.open(File.join(seeds_root, "city2.jpeg")),
|
128
|
+
filename: "banner_image.jpeg",
|
129
|
+
content_type: "image/jpeg",
|
130
|
+
metadata: nil
|
131
|
+
), # Keep after organization
|
117
132
|
promoted: true,
|
118
133
|
published_at: 2.weeks.ago,
|
119
134
|
meta_scope: Decidim::Faker::Localized.word,
|
@@ -183,22 +198,40 @@ Decidim.register_participatory_space(:participatory_processes) do |participatory
|
|
183
198
|
title: Decidim::Faker::Localized.sentence(word_count: 2),
|
184
199
|
description: Decidim::Faker::Localized.sentence(word_count: 5),
|
185
200
|
attachment_collection: attachment_collection,
|
201
|
+
content_type: "application/pdf",
|
186
202
|
attached_to: process,
|
187
|
-
file:
|
203
|
+
file: ActiveStorage::Blob.create_after_upload!(
|
204
|
+
io: File.open(File.join(seeds_root, "Exampledocument.pdf")),
|
205
|
+
filename: "Exampledocument.pdf",
|
206
|
+
content_type: "application/pdf",
|
207
|
+
metadata: nil
|
208
|
+
) # Keep after attached_to
|
188
209
|
)
|
189
210
|
|
190
211
|
Decidim::Attachment.create!(
|
191
212
|
title: Decidim::Faker::Localized.sentence(word_count: 2),
|
192
213
|
description: Decidim::Faker::Localized.sentence(word_count: 5),
|
193
214
|
attached_to: process,
|
194
|
-
|
215
|
+
content_type: "image/jpeg",
|
216
|
+
file: ActiveStorage::Blob.create_after_upload!(
|
217
|
+
io: File.open(File.join(seeds_root, "city.jpeg")),
|
218
|
+
filename: "city.jpeg",
|
219
|
+
content_type: "image/jpeg",
|
220
|
+
metadata: nil
|
221
|
+
) # Keep after attached_to
|
195
222
|
)
|
196
223
|
|
197
224
|
Decidim::Attachment.create!(
|
198
225
|
title: Decidim::Faker::Localized.sentence(word_count: 2),
|
199
226
|
description: Decidim::Faker::Localized.sentence(word_count: 5),
|
200
227
|
attached_to: process,
|
201
|
-
|
228
|
+
content_type: "application/pdf",
|
229
|
+
file: ActiveStorage::Blob.create_after_upload!(
|
230
|
+
io: File.open(File.join(seeds_root, "Exampledocument.pdf")),
|
231
|
+
filename: "Exampledocument.pdf",
|
232
|
+
content_type: "application/pdf",
|
233
|
+
metadata: nil
|
234
|
+
) # Keep after attached_to
|
202
235
|
)
|
203
236
|
|
204
237
|
2.times do
|
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.25.0.rc1
|
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: 2021-
|
13
|
+
date: 2021-07-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,42 +18,56 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.25.0.rc1
|
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.25.0.rc1
|
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.25.0.rc1
|
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.25.0.rc1
|
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.25.0.rc1
|
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.25.0.rc1
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: decidim-meetings
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - '='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 0.25.0.rc1
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - '='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 0.25.0.rc1
|
57
71
|
description: Participatory processes component for decidim.
|
58
72
|
email:
|
59
73
|
- josepjaume@gmail.com
|
@@ -65,11 +79,6 @@ extra_rdoc_files: []
|
|
65
79
|
files:
|
66
80
|
- README.md
|
67
81
|
- Rakefile
|
68
|
-
- app/assets/config/admin/decidim_participatory_processes_manifest.js
|
69
|
-
- app/assets/config/decidim_participatory_processes_manifest.js
|
70
|
-
- app/assets/images/decidim/participatory_processes/process.svg
|
71
|
-
- app/assets/javascripts/decidim/participatory_processes/admin/participatory_processes.js.es6
|
72
|
-
- app/assets/javascripts/decidim/participatory_processes/filters.js.es6
|
73
82
|
- app/cells/decidim/participatory_process_activity_cell.rb
|
74
83
|
- app/cells/decidim/participatory_process_groups/content_block_cell.rb
|
75
84
|
- app/cells/decidim/participatory_process_groups/content_blocks/highlighted_participatory_processes/filters.erb
|
@@ -82,8 +91,7 @@ files:
|
|
82
91
|
- app/cells/decidim/participatory_process_groups/content_blocks/html_cell.rb
|
83
92
|
- app/cells/decidim/participatory_process_groups/content_blocks/metadata/show.erb
|
84
93
|
- app/cells/decidim/participatory_process_groups/content_blocks/metadata_cell.rb
|
85
|
-
- app/cells/decidim/participatory_process_groups/content_blocks/
|
86
|
-
- app/cells/decidim/participatory_process_groups/content_blocks/stats_cell.rb
|
94
|
+
- app/cells/decidim/participatory_process_groups/content_blocks/statistics_cell.rb
|
87
95
|
- app/cells/decidim/participatory_process_groups/content_blocks/title/show.erb
|
88
96
|
- app/cells/decidim/participatory_process_groups/content_blocks/title_cell.rb
|
89
97
|
- app/cells/decidim/participatory_process_groups/process_filters_cell.rb
|
@@ -112,10 +120,6 @@ files:
|
|
112
120
|
- app/cells/decidim/participatory_processes/process_s/image.erb
|
113
121
|
- app/cells/decidim/participatory_processes/process_s/show.erb
|
114
122
|
- app/cells/decidim/participatory_processes/process_s_cell.rb
|
115
|
-
- app/cells/decidim/participatory_processes/statistic/show.erb
|
116
|
-
- app/cells/decidim/participatory_processes/statistic_cell.rb
|
117
|
-
- app/cells/decidim/participatory_processes/statistics/show.erb
|
118
|
-
- app/cells/decidim/participatory_processes/statistics_cell.rb
|
119
123
|
- app/commands/decidim/participatory_processes/admin/activate_participatory_process_step.rb
|
120
124
|
- app/commands/decidim/participatory_processes/admin/copy_participatory_process.rb
|
121
125
|
- app/commands/decidim/participatory_processes/admin/create_participatory_process.rb
|
@@ -177,7 +181,6 @@ files:
|
|
177
181
|
- app/forms/decidim/participatory_processes/admin/participatory_process_step_form.rb
|
178
182
|
- app/forms/decidim/participatory_processes/admin/participatory_process_user_role_form.rb
|
179
183
|
- app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb
|
180
|
-
- app/helpers/decidim/participatory_processes/admin/participatory_processes_menu_helper.rb
|
181
184
|
- app/helpers/decidim/participatory_processes/admin/process_groups_for_select_helper.rb
|
182
185
|
- app/helpers/decidim/participatory_processes/admin/processes_for_select_helper.rb
|
183
186
|
- app/helpers/decidim/participatory_processes/application_helper.rb
|
@@ -187,6 +190,11 @@ files:
|
|
187
190
|
- app/models/decidim/participatory_process_group.rb
|
188
191
|
- app/models/decidim/participatory_process_step.rb
|
189
192
|
- app/models/decidim/participatory_process_user_role.rb
|
193
|
+
- app/packs/entrypoints/decidim_participatory_processes.js
|
194
|
+
- app/packs/entrypoints/decidim_participatory_processes_admin.js
|
195
|
+
- app/packs/images/decidim/participatory_processes/decidim_participatory_processes.svg
|
196
|
+
- app/packs/src/decidim/participatory_processes/admin/participatory_processes.js
|
197
|
+
- app/packs/src/decidim/participatory_processes/filters.js
|
190
198
|
- app/permissions/decidim/participatory_processes/permissions.rb
|
191
199
|
- app/presenters/decidim/participatory_processes/admin_log/participatory_process_group_presenter.rb
|
192
200
|
- app/presenters/decidim/participatory_processes/admin_log/participatory_process_presenter.rb
|
@@ -249,7 +257,6 @@ files:
|
|
249
257
|
- app/views/decidim/participatory_processes/admin/participatory_processes/edit.html.erb
|
250
258
|
- app/views/decidim/participatory_processes/admin/participatory_processes/index.html.erb
|
251
259
|
- app/views/decidim/participatory_processes/admin/participatory_processes/new.html.erb
|
252
|
-
- app/views/decidim/participatory_processes/admin/shared/_secondary_nav.html.erb
|
253
260
|
- app/views/decidim/participatory_processes/participatory_process_groups/show.html.erb
|
254
261
|
- app/views/decidim/participatory_processes/participatory_process_groups/show.js.erb
|
255
262
|
- app/views/decidim/participatory_processes/participatory_process_steps/_timeline.html.erb
|
@@ -272,6 +279,7 @@ files:
|
|
272
279
|
- app/views/layouts/decidim/admin/participatory_process_groups.html.erb
|
273
280
|
- app/views/layouts/decidim/admin/participatory_processes.html.erb
|
274
281
|
- app/views/layouts/decidim/participatory_process.html.erb
|
282
|
+
- config/assets.rb
|
275
283
|
- config/locales/am-ET.yml
|
276
284
|
- config/locales/ar-SA.yml
|
277
285
|
- config/locales/ar.yml
|
@@ -298,6 +306,7 @@ files:
|
|
298
306
|
- config/locales/fi-plain.yml
|
299
307
|
- config/locales/fi.yml
|
300
308
|
- config/locales/fr-CA.yml
|
309
|
+
- config/locales/fr-LU.yml
|
301
310
|
- config/locales/fr.yml
|
302
311
|
- config/locales/ga-IE.yml
|
303
312
|
- config/locales/gl.yml
|
@@ -308,10 +317,10 @@ files:
|
|
308
317
|
- config/locales/is-IS.yml
|
309
318
|
- config/locales/is.yml
|
310
319
|
- config/locales/it.yml
|
311
|
-
- config/locales/ja-JP.yml
|
312
320
|
- config/locales/ja.yml
|
313
321
|
- config/locales/ko-KR.yml
|
314
322
|
- config/locales/ko.yml
|
323
|
+
- config/locales/lb-LU.yml
|
315
324
|
- config/locales/lt-LT.yml
|
316
325
|
- config/locales/lt.yml
|
317
326
|
- config/locales/lv.yml
|
@@ -385,6 +394,7 @@ files:
|
|
385
394
|
- db/migrate/20201030133444_add_promoted_flag_to_decidim_participatory_process_groups.rb
|
386
395
|
- db/migrate/20210204154593_add_weight_field_to_participatory_processes.rb
|
387
396
|
- db/migrate/20210310120750_add_followable_counter_cache_to_participatory_processes.rb
|
397
|
+
- db/migrate/20210415163339_allow_null_file_column_in_decidim_attachments_table.rb
|
388
398
|
- db/seeds/Exampledocument.pdf
|
389
399
|
- db/seeds/city.jpeg
|
390
400
|
- db/seeds/city2.jpeg
|
@@ -418,11 +428,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
418
428
|
version: '2.7'
|
419
429
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
420
430
|
requirements:
|
421
|
-
- - "
|
431
|
+
- - ">"
|
422
432
|
- !ruby/object:Gem::Version
|
423
|
-
version:
|
433
|
+
version: 1.3.1
|
424
434
|
requirements: []
|
425
|
-
rubygems_version: 3.1.
|
435
|
+
rubygems_version: 3.1.4
|
426
436
|
signing_key:
|
427
437
|
specification_version: 4
|
428
438
|
summary: Decidim participatory processes module
|
@@ -1 +0,0 @@
|
|
1
|
-
//= link decidim/participatory_processes/admin/participatory_processes.js
|
data/app/assets/javascripts/decidim/participatory_processes/admin/participatory_processes.js.es6
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
$(() => {
|
2
|
-
((exports) => {
|
3
|
-
const $participatoryProcessScopeEnabled = $("#participatory_process_scopes_enabled");
|
4
|
-
const $participatoryProcessScopeId = $("#participatory_process_scope_id");
|
5
|
-
const $participatoryProcessScopeTypeId = $("#participatory_process_scope_type_max_depth_id");
|
6
|
-
|
7
|
-
if ($(".edit_participatory_process, .new_participatory_process").length > 0) {
|
8
|
-
$participatoryProcessScopeEnabled.on("change", (event) => {
|
9
|
-
const checked = event.target.checked;
|
10
|
-
exports.theDataPicker.enabled($participatoryProcessScopeId, checked);
|
11
|
-
if (checked === true) {
|
12
|
-
$participatoryProcessScopeTypeId.removeAttr("disabled");
|
13
|
-
} else {
|
14
|
-
$participatoryProcessScopeTypeId.attr("disabled", true)
|
15
|
-
}
|
16
|
-
})
|
17
|
-
exports.theDataPicker.enabled($participatoryProcessScopeId, $participatoryProcessScopeEnabled.prop("checked"));
|
18
|
-
}
|
19
|
-
})(window);
|
20
|
-
});
|
@@ -1,31 +0,0 @@
|
|
1
|
-
$(() => {
|
2
|
-
((exports) => {
|
3
|
-
const $processesGrid = $("#processes-grid");
|
4
|
-
const $loading = $processesGrid.find(".loading");
|
5
|
-
const filterLinksSelector = ".order-by__tabs a"
|
6
|
-
|
7
|
-
$loading.hide();
|
8
|
-
|
9
|
-
$processesGrid.on("click", filterLinksSelector, (event) => {
|
10
|
-
const $processesGridCards = $processesGrid.find(".card-grid .column");
|
11
|
-
let $target = $(event.target);
|
12
|
-
|
13
|
-
// IE11 matches the <strong> element inside the filtering anchor element
|
14
|
-
// as the `event.target` breaking the functionality below.
|
15
|
-
if (!$target.is("a")) {
|
16
|
-
$target = $target.parents("a");
|
17
|
-
}
|
18
|
-
|
19
|
-
$(filterLinksSelector).removeClass("is-active");
|
20
|
-
$target.addClass("is-active");
|
21
|
-
|
22
|
-
$processesGridCards.hide();
|
23
|
-
$loading.show();
|
24
|
-
|
25
|
-
if (exports.history) {
|
26
|
-
exports.history.pushState(null, null, $target.attr("href"));
|
27
|
-
}
|
28
|
-
});
|
29
|
-
})(window);
|
30
|
-
|
31
|
-
});
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<section class="section" id="participatory_process_group-statistics">
|
2
|
-
<h2 class="section-heading">
|
3
|
-
<%= t("decidim.participatory_process_groups.content_blocks.stats.name") %>
|
4
|
-
</h2>
|
5
|
-
|
6
|
-
<div class="space-stats">
|
7
|
-
<% if stats.collection.present? %>
|
8
|
-
<%= cell("decidim/participatory_processes/statistic", collection: stats.collection) %>
|
9
|
-
<% else %>
|
10
|
-
<span class="muted"><%= t("decidim.participatory_processes.statistics.no_stats") %></span>
|
11
|
-
<% end %>
|
12
|
-
</div>
|
13
|
-
</section>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module ParticipatoryProcessGroups
|
5
|
-
module ContentBlocks
|
6
|
-
class StatsCell < Decidim::ViewModel
|
7
|
-
def stats
|
8
|
-
@stats ||= Decidim::ParticipatoryProcesses::ParticipatoryProcessGroupStatsPresenter.new(participatory_process_group: participatory_process_group)
|
9
|
-
end
|
10
|
-
|
11
|
-
def participatory_process_group
|
12
|
-
@participatory_process_group ||= Decidim::ParticipatoryProcessGroup.find(model.scoped_resource_id)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module ParticipatoryProcesses
|
5
|
-
# This cell renders a Statistic of a ParticipatoryProcesses
|
6
|
-
class StatisticCell < Decidim::ViewModel
|
7
|
-
include ActionView::Helpers::NumberHelper
|
8
|
-
|
9
|
-
private
|
10
|
-
|
11
|
-
def stat_number
|
12
|
-
number_with_delimiter(model[:stat_number])
|
13
|
-
end
|
14
|
-
|
15
|
-
def stat_title
|
16
|
-
t(model[:stat_title], scope: "decidim.participatory_processes.statistics")
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|