decidim-initiatives 0.26.9 → 0.27.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives/show.erb +2 -2
- data/app/commands/decidim/initiatives/admin/create_initiative_type.rb +7 -3
- data/app/commands/decidim/initiatives/admin/create_initiative_type_scope.rb +3 -3
- data/app/commands/decidim/initiatives/admin/publish_initiative.rb +1 -1
- data/app/commands/decidim/initiatives/admin/send_initiative_to_technical_validation.rb +2 -2
- data/app/commands/decidim/initiatives/admin/unpublish_initiative.rb +1 -1
- data/app/commands/decidim/initiatives/admin/update_initiative.rb +1 -1
- data/app/commands/decidim/initiatives/admin/update_initiative_answer.rb +1 -1
- data/app/commands/decidim/initiatives/admin/update_initiative_type.rb +19 -14
- data/app/commands/decidim/initiatives/admin/update_initiative_type_scope.rb +1 -1
- data/app/commands/decidim/initiatives/admin/update_initiatives_settings.rb +46 -0
- data/app/commands/decidim/initiatives/approve_membership_request.rb +1 -1
- data/app/commands/decidim/initiatives/create_initiative.rb +2 -3
- data/app/commands/decidim/initiatives/revoke_membership_request.rb +1 -1
- data/app/commands/decidim/initiatives/send_initiative_to_technical_validation.rb +2 -2
- data/app/commands/decidim/initiatives/spawn_committee_request.rb +1 -1
- data/app/commands/decidim/initiatives/unvote_initiative.rb +1 -1
- data/app/commands/decidim/initiatives/update_initiative.rb +1 -1
- data/app/commands/decidim/initiatives/validate_mobile_phone.rb +1 -1
- data/app/commands/decidim/initiatives/validate_sms_code.rb +1 -1
- data/app/commands/decidim/initiatives/vote_initiative.rb +2 -6
- data/app/constraints/decidim/initiatives/current_initiative.rb +1 -1
- data/app/controllers/concerns/decidim/initiatives/orderable.rb +8 -0
- data/app/controllers/decidim/initiatives/admin/committee_requests_controller.rb +1 -1
- data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +4 -3
- data/app/controllers/decidim/initiatives/admin/initiatives_settings_controller.rb +49 -0
- data/app/controllers/decidim/initiatives/admin/initiatives_type_scopes_controller.rb +1 -1
- data/app/controllers/decidim/initiatives/admin/initiatives_types_controller.rb +7 -4
- data/app/controllers/decidim/initiatives/application_controller.rb +0 -7
- data/app/controllers/decidim/initiatives/committee_requests_controller.rb +2 -2
- data/app/controllers/decidim/initiatives/create_initiative_controller.rb +4 -19
- data/app/controllers/decidim/initiatives/initiatives_controller.rb +17 -24
- data/app/controllers/decidim/initiatives/initiatives_type_scopes_controller.rb +1 -1
- data/app/controllers/decidim/initiatives/initiatives_type_signature_types_controller.rb +1 -1
- data/app/forms/decidim/initiatives/admin/initiative_form.rb +4 -4
- data/app/forms/decidim/initiatives/admin/initiative_type_form.rb +2 -1
- data/app/forms/decidim/initiatives/admin/initiatives_settings_form.rb +14 -0
- data/app/forms/decidim/initiatives/initiative_form.rb +0 -3
- data/app/forms/decidim/initiatives/vote_form.rb +0 -4
- data/app/helpers/decidim/initiatives/{signature_type_options_helper.rb → create_initiative_helper.rb} +4 -4
- data/app/helpers/decidim/initiatives/initiative_helper.rb +6 -4
- data/app/mailers/decidim/initiatives/initiatives_mailer.rb +2 -2
- data/app/models/decidim/initiative.rb +60 -9
- data/app/models/decidim/initiatives_settings.rb +17 -0
- data/app/models/decidim/initiatives_type.rb +5 -0
- data/app/packs/stylesheets/decidim/initiatives/print-initiative.scss +0 -16
- data/app/permissions/decidim/initiatives/admin/permissions.rb +10 -4
- data/app/permissions/decidim/initiatives/permissions.rb +1 -1
- data/app/presenters/decidim/initiatives/admin_log/initiatives_settings_presenter.rb +27 -0
- data/app/presenters/decidim/initiatives/admin_log/initiatives_type_presenter.rb +45 -0
- data/app/presenters/decidim/initiatives/initiative_stats_presenter.rb +4 -2
- data/app/queries/decidim/initiatives/admin/admin_users.rb +1 -1
- data/app/queries/decidim/initiatives/admin/manageable_initiatives.rb +1 -1
- data/app/queries/decidim/initiatives/freetext_initiative_types.rb +1 -1
- data/app/queries/decidim/initiatives/initiative_types.rb +1 -1
- data/app/queries/decidim/initiatives/initiatives_created.rb +1 -1
- data/app/queries/decidim/initiatives/initiatives_promoted.rb +1 -1
- data/app/queries/decidim/initiatives/organization_prioritized_initiatives.rb +1 -1
- data/app/queries/decidim/initiatives/outdated_validating_initiatives.rb +1 -1
- data/app/queries/decidim/initiatives/similar_initiatives.rb +1 -1
- data/app/queries/decidim/initiatives/support_period_finished_initiatives.rb +1 -1
- data/app/queries/decidim/initiatives/user_authorizations.rb +1 -1
- data/app/services/decidim/initiatives/initiative_search.rb +11 -102
- data/app/services/decidim/initiatives/pdf_signature_example.rb +15 -16
- data/app/services/decidim/initiatives/status_change_notifier.rb +1 -1
- data/app/views/decidim/initiatives/admin/initiatives/_form.html.erb +1 -1
- data/app/views/decidim/initiatives/admin/initiatives/edit.html.erb +0 -2
- data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +0 -1
- data/app/views/decidim/initiatives/admin/initiatives_settings/_form.html.erb +10 -0
- data/app/views/decidim/initiatives/admin/initiatives_settings/edit.html.erb +6 -0
- data/app/views/decidim/initiatives/admin/initiatives_type_scopes/edit.html.erb +0 -1
- data/app/views/decidim/initiatives/admin/initiatives_type_scopes/new.html.erb +0 -1
- data/app/views/decidim/initiatives/admin/initiatives_types/_form.html.erb +5 -1
- data/app/views/decidim/initiatives/admin/initiatives_types/edit.html.erb +0 -1
- data/app/views/decidim/initiatives/admin/initiatives_types/index.html.erb +0 -2
- data/app/views/decidim/initiatives/admin/initiatives_types/new.html.erb +0 -1
- data/app/views/decidim/initiatives/create_initiative/fill_data.html.erb +15 -28
- data/app/views/decidim/initiatives/create_initiative/previous_form.html.erb +1 -1
- data/app/views/decidim/initiatives/initiatives/_author.html.erb +1 -1
- data/app/views/decidim/initiatives/initiatives/_count.html.erb +1 -1
- data/app/views/decidim/initiatives/initiatives/_filters.html.erb +5 -5
- data/app/views/decidim/initiatives/initiatives/_form.html.erb +26 -30
- data/app/views/decidim/initiatives/initiatives/print.html.erb +2 -2
- data/app/views/decidim/initiatives/initiatives/show.html.erb +4 -2
- data/app/views/decidim/initiatives/initiatives_mailer/notify_creation.html.erb +2 -2
- data/app/views/layouts/decidim/_initiative_header.html.erb +1 -1
- data/app/views/layouts/decidim/_initiative_header_steps.html.erb +3 -1
- data/app/views/layouts/decidim/initiative_creation.html.erb +4 -1
- data/app/views/layouts/decidim/initiative_signature_creation.html.erb +4 -1
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +14 -10
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +41 -29
- data/config/locales/cs.yml +42 -30
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +19 -38
- data/config/locales/el.yml +10 -6
- data/config/locales/en.yml +28 -17
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +33 -21
- data/config/locales/es-PY.yml +33 -21
- data/config/locales/es.yml +34 -22
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +80 -97
- data/config/locales/fi-plain.yml +28 -16
- data/config/locales/fi.yml +29 -17
- data/config/locales/fr-CA.yml +20 -24
- data/config/locales/fr.yml +17 -21
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +10 -5
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +29 -86
- data/config/locales/id-ID.yml +9 -5
- data/config/locales/is-IS.yml +8 -9
- data/config/locales/it.yml +12 -2
- data/config/locales/ja.yml +33 -20
- data/config/locales/ko.yml +1 -0
- data/config/locales/lb.yml +19 -15
- data/config/locales/lt.yml +1 -645
- data/config/locales/lv.yml +11 -6
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +10 -5
- data/config/locales/no.yml +11 -1
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +7 -3
- data/config/locales/pt-BR.yml +9 -6
- data/config/locales/pt.yml +10 -0
- data/config/locales/ro-RO.yml +15 -12
- data/config/locales/ru.yml +12 -10
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk.yml +13 -6
- data/config/locales/sl.yml +1 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +1 -0
- data/config/locales/sv.yml +15 -14
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +12 -1
- data/config/locales/uk.yml +12 -10
- data/config/locales/val-ES.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +10 -6
- data/config/locales/zh-TW.yml +1 -616
- data/db/migrate/20181003082010_fix_user_groups_ids_on_initiatives.rb +3 -18
- data/db/migrate/20220518053612_add_comments_enabled_to_initiative_types.rb +7 -0
- data/db/migrate/20220527130640_create_decidim_initiatives_settings.rb +10 -0
- data/lib/decidim/initiatives/admin_engine.rb +17 -2
- data/lib/decidim/initiatives/engine.rb +1 -2
- data/lib/decidim/initiatives/participatory_space.rb +3 -3
- data/lib/decidim/initiatives/test/factories.rb +34 -1
- data/lib/decidim/initiatives/version.rb +1 -1
- data/lib/gem_overrides/origami/date.rb +47 -0
- metadata +29 -56
- data/app/controllers/decidim/initiatives/admin/exports_controller.rb +0 -14
- data/config/environment.rb +0 -3
- data/config/locales/fa-IR.yml +0 -1
- data/config/locales/gn-PY.yml +0 -1
- data/config/locales/ka-GE.yml +0 -1
- data/config/locales/kaa.yml +0 -1
- data/config/locales/lo-LA.yml +0 -1
- data/config/locales/oc-FR.yml +0 -1
- data/config/locales/sq-AL.yml +0 -1
- data/config/locales/th-TH.yml +0 -1
@@ -19,6 +19,8 @@ module Decidim
|
|
19
19
|
resources :initiatives_type_scopes, except: [:index, :show]
|
20
20
|
end
|
21
21
|
|
22
|
+
resources :initiatives_settings, only: [:edit, :update], controller: "initiatives_settings"
|
23
|
+
|
22
24
|
resources :initiatives, only: [:index, :edit, :update], param: :slug do
|
23
25
|
member do
|
24
26
|
get :send_to_technical_validation
|
@@ -88,8 +90,7 @@ module Decidim
|
|
88
90
|
decidim_admin_initiatives.initiatives_path,
|
89
91
|
icon_name: "chat",
|
90
92
|
position: 2.4,
|
91
|
-
active:
|
92
|
-
is_active_link?(decidim_admin_initiatives.initiatives_types_path),
|
93
|
+
active: :inclusive,
|
93
94
|
if: allowed_to?(:enter, :space_area, space_name: :initiatives)
|
94
95
|
end
|
95
96
|
end
|
@@ -160,6 +161,20 @@ module Decidim
|
|
160
161
|
decidim_admin_initiatives.initiatives_types_path,
|
161
162
|
active: is_active_link?(decidim_admin_initiatives.initiatives_types_path),
|
162
163
|
if: allowed_to?(:manage, :initiative_type)
|
164
|
+
|
165
|
+
menu.add_item :initiatives_settings,
|
166
|
+
I18n.t("menu.initiatives_settings", scope: "decidim.admin"),
|
167
|
+
decidim_admin_initiatives.edit_initiatives_setting_path(
|
168
|
+
Decidim::InitiativesSettings.find_or_create_by!(
|
169
|
+
organization: current_organization
|
170
|
+
)
|
171
|
+
),
|
172
|
+
active: is_active_link?(
|
173
|
+
decidim_admin_initiatives.edit_initiatives_setting_path(
|
174
|
+
Decidim::InitiativesSettings.find_or_create_by!(organization: current_organization)
|
175
|
+
)
|
176
|
+
),
|
177
|
+
if: allowed_to?(:update, :initiatives_settings)
|
163
178
|
end
|
164
179
|
end
|
165
180
|
end
|
@@ -89,8 +89,7 @@ module Decidim
|
|
89
89
|
I18n.t("menu.initiatives", scope: "decidim"),
|
90
90
|
decidim_initiatives.initiatives_path,
|
91
91
|
position: 2.4,
|
92
|
-
active:
|
93
|
-
if: !Decidim::InitiativesType.joins(:scopes).where(organization: current_organization).all.empty?
|
92
|
+
active: :inclusive
|
94
93
|
end
|
95
94
|
end
|
96
95
|
|
@@ -61,7 +61,7 @@ Decidim.register_participatory_space(:initiatives) do |participatory_space|
|
|
61
61
|
title: Decidim::Faker::Localized.sentence(word_count: 5),
|
62
62
|
description: Decidim::Faker::Localized.sentence(word_count: 25),
|
63
63
|
organization: organization,
|
64
|
-
banner_image: ActiveStorage::Blob.
|
64
|
+
banner_image: ActiveStorage::Blob.create_and_upload!(
|
65
65
|
io: File.open(File.join(seeds_root, "city2.jpeg")),
|
66
66
|
filename: "banner_image.jpeg",
|
67
67
|
content_type: "image/jpeg",
|
@@ -90,7 +90,7 @@ Decidim.register_participatory_space(:initiatives) do |participatory_space|
|
|
90
90
|
signature_type: "online",
|
91
91
|
signature_start_date: Date.current - 7.days,
|
92
92
|
signature_end_date: Date.current + 7.days,
|
93
|
-
published_at:
|
93
|
+
published_at: 7.days.ago,
|
94
94
|
author: Decidim::User.reorder(Arel.sql("RANDOM()")).first,
|
95
95
|
organization: organization
|
96
96
|
}
|
@@ -112,7 +112,7 @@ Decidim.register_participatory_space(:initiatives) do |participatory_space|
|
|
112
112
|
description: Decidim::Faker::Localized.sentence(word_count: 5),
|
113
113
|
attached_to: initiative,
|
114
114
|
content_type: "image/jpeg",
|
115
|
-
file: ActiveStorage::Blob.
|
115
|
+
file: ActiveStorage::Blob.create_and_upload!(
|
116
116
|
io: File.open(File.join(seeds_root, "city.jpeg")),
|
117
117
|
filename: "city.jpeg",
|
118
118
|
content_type: "image/jpeg",
|
@@ -8,7 +8,14 @@ FactoryBot.define do
|
|
8
8
|
title { generate_localized_title }
|
9
9
|
description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
|
10
10
|
organization
|
11
|
-
|
11
|
+
# Keep banner_image after organization
|
12
|
+
banner_image do
|
13
|
+
ActiveStorage::Blob.create_and_upload!(
|
14
|
+
io: File.open(Decidim::Dev.test_file("city2.jpeg", "image/jpeg")),
|
15
|
+
filename: "city2.jpeg",
|
16
|
+
content_type: "image/jpeg"
|
17
|
+
).signed_id
|
18
|
+
end
|
12
19
|
signature_type { :online }
|
13
20
|
attachments_enabled { true }
|
14
21
|
undo_online_signatures_enabled { true }
|
@@ -18,6 +25,11 @@ FactoryBot.define do
|
|
18
25
|
minimum_committee_members { 3 }
|
19
26
|
child_scope_threshold_enabled { false }
|
20
27
|
only_global_scope_enabled { false }
|
28
|
+
comments_enabled { true }
|
29
|
+
|
30
|
+
trait :with_comments_disabled do
|
31
|
+
comments_enabled { false }
|
32
|
+
end
|
21
33
|
|
22
34
|
trait :attachments_enabled do
|
23
35
|
attachments_enabled { true }
|
@@ -264,4 +276,25 @@ FactoryBot.define do
|
|
264
276
|
state { "rejected" }
|
265
277
|
end
|
266
278
|
end
|
279
|
+
|
280
|
+
factory :initiatives_settings, class: "Decidim::InitiativesSettings" do
|
281
|
+
initiatives_order { "random" }
|
282
|
+
organization
|
283
|
+
|
284
|
+
trait :most_recent do
|
285
|
+
initiatives_order { "date" }
|
286
|
+
end
|
287
|
+
|
288
|
+
trait :most_signed do
|
289
|
+
initiatives_order { "signatures" }
|
290
|
+
end
|
291
|
+
|
292
|
+
trait :most_commented do
|
293
|
+
initiatives_order { "comments" }
|
294
|
+
end
|
295
|
+
|
296
|
+
trait :most_recently_published do
|
297
|
+
initiatives_order { "publication_date" }
|
298
|
+
end
|
299
|
+
end
|
267
300
|
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: false
|
2
|
+
|
3
|
+
module Origami
|
4
|
+
class Date < LiteralString
|
5
|
+
def self.parse(str)
|
6
|
+
#:nodoc:
|
7
|
+
raise InvalidDateError, "Not a valid Date string" unless str =~ REGEXP_TOKEN
|
8
|
+
|
9
|
+
date =
|
10
|
+
{
|
11
|
+
year: $~['year'].to_i
|
12
|
+
}
|
13
|
+
|
14
|
+
date[:month] = $~['month'].to_i if $~['month']
|
15
|
+
date[:day] = $~['day'].to_i if $~['day']
|
16
|
+
date[:hour] = $~['hour'].to_i if $~['hour']
|
17
|
+
date[:min] = $~['min'].to_i if $~['min']
|
18
|
+
date[:sec] = $~['sec'].to_i if $~['sec']
|
19
|
+
|
20
|
+
if %w[+ -].include?($~['ut'])
|
21
|
+
utc_offset = $~['ut_hour_off'].to_i * 3600 + $~['ut_min_off'].to_i * 60
|
22
|
+
utc_offset = -utc_offset if $~['ut'] == '-'
|
23
|
+
|
24
|
+
date[:utc_offset] = utc_offset
|
25
|
+
end
|
26
|
+
|
27
|
+
Origami::Date.new(**date)
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.now
|
31
|
+
now = Time.now.utc
|
32
|
+
|
33
|
+
date =
|
34
|
+
{
|
35
|
+
year: now.strftime("%Y").to_i,
|
36
|
+
month: now.strftime("%m").to_i,
|
37
|
+
day: now.strftime("%d").to_i,
|
38
|
+
hour: now.strftime("%H").to_i,
|
39
|
+
min: now.strftime("%M").to_i,
|
40
|
+
sec: now.strftime("%S").to_i,
|
41
|
+
utc_offset: now.utc_offset
|
42
|
+
}
|
43
|
+
|
44
|
+
Origami::Date.new(**date)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-initiatives
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Salvador Perez Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-admin
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.27.0.rc1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.27.0.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: decidim-comments
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.27.0.rc1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.27.0.rc1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: decidim-core
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.27.0.rc1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.27.0.rc1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: decidim-verifications
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.27.0.rc1
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.27.0.rc1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: origami
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '2.1'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: virtus-multiparams
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0.1'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0.1'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: wicked
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,29 +128,15 @@ dependencies:
|
|
142
128
|
requirements:
|
143
129
|
- - '='
|
144
130
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.
|
131
|
+
version: 0.27.0.rc1
|
146
132
|
type: :development
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
136
|
- - '='
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.
|
153
|
-
|
154
|
-
name: decidim-meetings
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - '='
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: 0.26.9
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - '='
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 0.26.9
|
167
|
-
description: Citizen initiatives plugin for decidim.
|
138
|
+
version: 0.27.0.rc1
|
139
|
+
description: Participants initiatives plugin for decidim.
|
168
140
|
email:
|
169
141
|
- jsperezg@gmail.com
|
170
142
|
executables: []
|
@@ -194,6 +166,7 @@ files:
|
|
194
166
|
- app/commands/decidim/initiatives/admin/update_initiative_answer.rb
|
195
167
|
- app/commands/decidim/initiatives/admin/update_initiative_type.rb
|
196
168
|
- app/commands/decidim/initiatives/admin/update_initiative_type_scope.rb
|
169
|
+
- app/commands/decidim/initiatives/admin/update_initiatives_settings.rb
|
197
170
|
- app/commands/decidim/initiatives/approve_membership_request.rb
|
198
171
|
- app/commands/decidim/initiatives/attachment_methods.rb
|
199
172
|
- app/commands/decidim/initiatives/create_initiative.rb
|
@@ -218,10 +191,10 @@ files:
|
|
218
191
|
- app/controllers/decidim/initiatives/admin/committee_requests_controller.rb
|
219
192
|
- app/controllers/decidim/initiatives/admin/component_permissions_controller.rb
|
220
193
|
- app/controllers/decidim/initiatives/admin/components_controller.rb
|
221
|
-
- app/controllers/decidim/initiatives/admin/exports_controller.rb
|
222
194
|
- app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
|
223
195
|
- app/controllers/decidim/initiatives/admin/initiatives_controller.rb
|
224
196
|
- app/controllers/decidim/initiatives/admin/initiatives_permissions_controller.rb
|
197
|
+
- app/controllers/decidim/initiatives/admin/initiatives_settings_controller.rb
|
225
198
|
- app/controllers/decidim/initiatives/admin/initiatives_type_scopes_controller.rb
|
226
199
|
- app/controllers/decidim/initiatives/admin/initiatives_types_controller.rb
|
227
200
|
- app/controllers/decidim/initiatives/admin/initiatives_types_permissions_controller.rb
|
@@ -253,6 +226,7 @@ files:
|
|
253
226
|
- app/forms/decidim/initiatives/admin/initiative_form.rb
|
254
227
|
- app/forms/decidim/initiatives/admin/initiative_type_form.rb
|
255
228
|
- app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb
|
229
|
+
- app/forms/decidim/initiatives/admin/initiatives_settings_form.rb
|
256
230
|
- app/forms/decidim/initiatives/committee_member_form.rb
|
257
231
|
- app/forms/decidim/initiatives/initiative_form.rb
|
258
232
|
- app/forms/decidim/initiatives/previous_form.rb
|
@@ -260,14 +234,15 @@ files:
|
|
260
234
|
- app/forms/decidim/initiatives/vote_form.rb
|
261
235
|
- app/helpers/decidim/initiatives/admin/initiatives_helper.rb
|
262
236
|
- app/helpers/decidim/initiatives/application_helper.rb
|
237
|
+
- app/helpers/decidim/initiatives/create_initiative_helper.rb
|
263
238
|
- app/helpers/decidim/initiatives/initiative_helper.rb
|
264
239
|
- app/helpers/decidim/initiatives/initiatives_helper.rb
|
265
|
-
- app/helpers/decidim/initiatives/signature_type_options_helper.rb
|
266
240
|
- app/jobs/decidim/initiatives/export_initiatives_job.rb
|
267
241
|
- app/mailers/decidim/initiatives/initiatives_mailer.rb
|
268
242
|
- app/models/concerns/decidim/initiatives/has_area.rb
|
269
243
|
- app/models/decidim/initiative.rb
|
270
244
|
- app/models/decidim/initiatives_committee_member.rb
|
245
|
+
- app/models/decidim/initiatives_settings.rb
|
271
246
|
- app/models/decidim/initiatives_type.rb
|
272
247
|
- app/models/decidim/initiatives_type_scope.rb
|
273
248
|
- app/models/decidim/initiatives_vote.rb
|
@@ -294,6 +269,8 @@ files:
|
|
294
269
|
- app/permissions/decidim/initiatives/permissions.rb
|
295
270
|
- app/presenters/decidim/initiative_presenter.rb
|
296
271
|
- app/presenters/decidim/initiatives/admin_log/initiative_presenter.rb
|
272
|
+
- app/presenters/decidim/initiatives/admin_log/initiatives_settings_presenter.rb
|
273
|
+
- app/presenters/decidim/initiatives/admin_log/initiatives_type_presenter.rb
|
297
274
|
- app/presenters/decidim/initiatives/initiative_stats_presenter.rb
|
298
275
|
- app/queries/decidim/initiatives/admin/admin_users.rb
|
299
276
|
- app/queries/decidim/initiatives/admin/manageable_initiatives.rb
|
@@ -324,6 +301,8 @@ files:
|
|
324
301
|
- app/views/decidim/initiatives/admin/initiatives/edit.html.erb
|
325
302
|
- app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.pdf.erb
|
326
303
|
- app/views/decidim/initiatives/admin/initiatives/index.html.erb
|
304
|
+
- app/views/decidim/initiatives/admin/initiatives_settings/_form.html.erb
|
305
|
+
- app/views/decidim/initiatives/admin/initiatives_settings/edit.html.erb
|
327
306
|
- app/views/decidim/initiatives/admin/initiatives_type_scopes/_form.html.erb
|
328
307
|
- app/views/decidim/initiatives/admin/initiatives_type_scopes/edit.html.erb
|
329
308
|
- app/views/decidim/initiatives/admin/initiatives_type_scopes/new.html.erb
|
@@ -391,7 +370,6 @@ files:
|
|
391
370
|
- app/views/layouts/decidim/initiative_creation.html.erb
|
392
371
|
- app/views/layouts/decidim/initiative_signature_creation.html.erb
|
393
372
|
- config/assets.rb
|
394
|
-
- config/environment.rb
|
395
373
|
- config/initializers/wicked_pdf.rb
|
396
374
|
- config/locales/am-ET.yml
|
397
375
|
- config/locales/ar-SA.yml
|
@@ -415,7 +393,6 @@ files:
|
|
415
393
|
- config/locales/et-EE.yml
|
416
394
|
- config/locales/et.yml
|
417
395
|
- config/locales/eu.yml
|
418
|
-
- config/locales/fa-IR.yml
|
419
396
|
- config/locales/fi-pl.yml
|
420
397
|
- config/locales/fi-plain.yml
|
421
398
|
- config/locales/fi.yml
|
@@ -424,7 +401,6 @@ files:
|
|
424
401
|
- config/locales/fr.yml
|
425
402
|
- config/locales/ga-IE.yml
|
426
403
|
- config/locales/gl.yml
|
427
|
-
- config/locales/gn-PY.yml
|
428
404
|
- config/locales/hr-HR.yml
|
429
405
|
- config/locales/hr.yml
|
430
406
|
- config/locales/hu.yml
|
@@ -433,13 +409,10 @@ files:
|
|
433
409
|
- config/locales/is.yml
|
434
410
|
- config/locales/it.yml
|
435
411
|
- config/locales/ja.yml
|
436
|
-
- config/locales/ka-GE.yml
|
437
|
-
- config/locales/kaa.yml
|
438
412
|
- config/locales/ko-KR.yml
|
439
413
|
- config/locales/ko.yml
|
440
414
|
- config/locales/lb-LU.yml
|
441
415
|
- config/locales/lb.yml
|
442
|
-
- config/locales/lo-LA.yml
|
443
416
|
- config/locales/lt-LT.yml
|
444
417
|
- config/locales/lt.yml
|
445
418
|
- config/locales/lv.yml
|
@@ -447,7 +420,6 @@ files:
|
|
447
420
|
- config/locales/mt.yml
|
448
421
|
- config/locales/nl.yml
|
449
422
|
- config/locales/no.yml
|
450
|
-
- config/locales/oc-FR.yml
|
451
423
|
- config/locales/om-ET.yml
|
452
424
|
- config/locales/pl.yml
|
453
425
|
- config/locales/pt-BR.yml
|
@@ -459,11 +431,9 @@ files:
|
|
459
431
|
- config/locales/sk.yml
|
460
432
|
- config/locales/sl.yml
|
461
433
|
- config/locales/so-SO.yml
|
462
|
-
- config/locales/sq-AL.yml
|
463
434
|
- config/locales/sr-CS.yml
|
464
435
|
- config/locales/sv.yml
|
465
436
|
- config/locales/sw-KE.yml
|
466
|
-
- config/locales/th-TH.yml
|
467
437
|
- config/locales/ti-ER.yml
|
468
438
|
- config/locales/tr-TR.yml
|
469
439
|
- config/locales/uk.yml
|
@@ -529,6 +499,8 @@ files:
|
|
529
499
|
- db/migrate/20200528151456_remove_user_groups_from_initiative_votes.rb
|
530
500
|
- db/migrate/20200827154214_add_commentable_counter_cache_to_initiatives.rb
|
531
501
|
- db/migrate/20210310120720_add_followable_counter_cache_to_initiatives.rb
|
502
|
+
- db/migrate/20220518053612_add_comments_enabled_to_initiative_types.rb
|
503
|
+
- db/migrate/20220527130640_create_decidim_initiatives_settings.rb
|
532
504
|
- db/seeds/city.jpeg
|
533
505
|
- db/seeds/city2.jpeg
|
534
506
|
- lib/decidim/api/initiative_api_type.rb
|
@@ -547,6 +519,7 @@ files:
|
|
547
519
|
- lib/decidim/initiatives/query_extensions.rb
|
548
520
|
- lib/decidim/initiatives/test/factories.rb
|
549
521
|
- lib/decidim/initiatives/version.rb
|
522
|
+
- lib/gem_overrides/origami/date.rb
|
550
523
|
- lib/tasks/decidim_initiatives.rake
|
551
524
|
homepage: https://github.com/decidim/decidim
|
552
525
|
licenses:
|
@@ -560,14 +533,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
560
533
|
requirements:
|
561
534
|
- - ">="
|
562
535
|
- !ruby/object:Gem::Version
|
563
|
-
version: '
|
536
|
+
version: '3.0'
|
564
537
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
565
538
|
requirements:
|
566
|
-
- - "
|
539
|
+
- - ">"
|
567
540
|
- !ruby/object:Gem::Version
|
568
|
-
version:
|
541
|
+
version: 1.3.1
|
569
542
|
requirements: []
|
570
|
-
rubygems_version: 3.
|
543
|
+
rubygems_version: 3.2.22
|
571
544
|
signing_key:
|
572
545
|
specification_version: 4
|
573
546
|
summary: Decidim initiatives module
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Initiatives
|
5
|
-
module Admin
|
6
|
-
# This controller allows exporting things.
|
7
|
-
# It is targeted for customizations for exporting things that lives under
|
8
|
-
# a participatory process.
|
9
|
-
class ExportsController < Decidim::Admin::ExportsController
|
10
|
-
include InitiativeAdmin
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
data/config/environment.rb
DELETED
data/config/locales/fa-IR.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
fa:
|
data/config/locales/gn-PY.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
gn:
|
data/config/locales/ka-GE.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ka:
|
data/config/locales/kaa.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
kaa:
|
data/config/locales/lo-LA.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
lo:
|
data/config/locales/oc-FR.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
oc:
|
data/config/locales/sq-AL.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
sq:
|
data/config/locales/th-TH.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
th:
|