decidim-assemblies 0.21.0 → 0.23.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/decidim/assemblies/assembly.svg +1 -3
  3. data/app/assets/javascripts/decidim/assemblies/orgchart.js.es6 +698 -0
  4. data/app/cells/decidim/assemblies/assembly_m/footer.erb +2 -2
  5. data/app/cells/decidim/assemblies/assembly_m_cell.rb +4 -0
  6. data/app/cells/decidim/assemblies/assembly_member/show.erb +4 -4
  7. data/app/cells/decidim/assemblies/content_blocks/highlighted_assemblies/show.erb +10 -11
  8. data/app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_cell.rb +1 -0
  9. data/app/commands/decidim/assemblies/admin/create_assembly_admin.rb +2 -1
  10. data/app/commands/decidim/assemblies/admin/create_assembly_member.rb +12 -3
  11. data/app/commands/decidim/assemblies/admin/import_assembly.rb +72 -0
  12. data/app/commands/decidim/assemblies/admin/notify_role_assigned_to_assembly.rb +22 -0
  13. data/app/commands/decidim/assemblies/admin/update_assemblies_setting.rb +46 -0
  14. data/app/commands/decidim/assemblies/admin/update_assembly.rb +10 -5
  15. data/app/commands/decidim/assemblies/admin/update_assembly_admin.rb +2 -1
  16. data/app/controllers/decidim/assemblies/admin/assemblies_settings_controller.rb +49 -0
  17. data/app/controllers/decidim/assemblies/admin/assembly_exports_controller.rb +24 -0
  18. data/app/controllers/decidim/assemblies/admin/assembly_imports_controller.rb +31 -0
  19. data/app/controllers/decidim/assemblies/admin/assembly_user_roles_controller.rb +2 -1
  20. data/app/controllers/decidim/assemblies/assemblies_controller.rb +5 -1
  21. data/app/controllers/decidim/assemblies/{assembly_widgets_controller.rb → widgets_controller.rb} +2 -2
  22. data/app/events/decidim/assemblies/create_assembly_member_event.rb +17 -0
  23. data/app/events/decidim/role_assigned_to_assembly_event.rb +28 -0
  24. data/app/forms/decidim/assemblies/admin/assemblies_setting_form.rb +14 -0
  25. data/app/forms/decidim/assemblies/admin/assembly_form.rb +19 -10
  26. data/app/forms/decidim/assemblies/admin/assembly_import_form.rb +83 -0
  27. data/app/forms/decidim/assemblies/admin/assembly_user_role_form.rb +3 -2
  28. data/app/helpers/decidim/assemblies/assemblies_helper.rb +6 -3
  29. data/app/models/decidim/assemblies_setting.rb +17 -0
  30. data/app/models/decidim/assemblies_type.rb +3 -0
  31. data/app/models/decidim/assembly.rb +14 -1
  32. data/app/permissions/decidim/assemblies/permissions.rb +35 -2
  33. data/app/presenters/decidim/assemblies/admin_log/assemblies_setting_presenter.rb +27 -0
  34. data/app/presenters/decidim/assemblies/admin_log/assemblies_type_presenter.rb +2 -2
  35. data/app/presenters/decidim/assemblies/admin_log/assembly_member_presenter.rb +2 -2
  36. data/app/presenters/decidim/assemblies/admin_log/assembly_presenter.rb +2 -2
  37. data/app/presenters/decidim/assemblies/admin_log/assembly_user_role_presenter.rb +2 -2
  38. data/app/presenters/decidim/assemblies/assembly_presenter.rb +29 -0
  39. data/app/presenters/decidim/assemblies/assembly_stats_presenter.rb +1 -1
  40. data/app/queries/decidim/assemblies/parent_assemblies_for_select.rb +20 -1
  41. data/app/serializers/decidim/assemblies/assembly_importer.rb +172 -0
  42. data/app/serializers/decidim/assemblies/assembly_serializer.rb +147 -0
  43. data/app/views/decidim/assemblies/_filter_by_type.html.erb +11 -9
  44. data/app/views/decidim/assemblies/admin/assemblies/index.html.erb +13 -2
  45. data/app/views/decidim/assemblies/admin/assemblies_settings/_form.html.erb +10 -0
  46. data/app/views/decidim/assemblies/admin/assemblies_settings/edit.html.erb +6 -0
  47. data/app/views/decidim/assemblies/admin/assembly_imports/_form.html.erb +46 -0
  48. data/app/views/decidim/assemblies/admin/assembly_imports/new.html.erb +7 -0
  49. data/app/views/decidim/assemblies/admin/assembly_members/index.html.erb +2 -2
  50. data/app/views/decidim/assemblies/assemblies/_parent_assemblies.html.erb +2 -2
  51. data/app/views/decidim/assemblies/assemblies/_promoted_assembly.html.erb +3 -3
  52. data/app/views/decidim/assemblies/assemblies/index.html.erb +11 -8
  53. data/app/views/decidim/assemblies/assemblies/show.html.erb +10 -9
  54. data/app/views/decidim/assemblies/assembly_members/index.html.erb +1 -1
  55. data/app/views/layouts/decidim/admin/assemblies.html.erb +5 -0
  56. data/app/views/layouts/decidim/assembly.html.erb +1 -0
  57. data/config/locales/am-ET.yml +1 -0
  58. data/config/locales/bg-BG.yml +7 -0
  59. data/config/locales/bg.yml +7 -0
  60. data/config/locales/ca.yml +72 -1
  61. data/config/locales/cs.yml +118 -47
  62. data/config/locales/da-DK.yml +1 -0
  63. data/config/locales/da.yml +1 -0
  64. data/config/locales/de.yml +133 -39
  65. data/config/locales/el.yml +474 -0
  66. data/config/locales/en.yml +71 -0
  67. data/config/locales/eo.yml +1 -0
  68. data/config/locales/es-MX.yml +71 -0
  69. data/config/locales/es-PY.yml +71 -0
  70. data/config/locales/es.yml +71 -0
  71. data/config/locales/et-EE.yml +1 -0
  72. data/config/locales/et.yml +1 -0
  73. data/config/locales/fi-plain.yml +72 -1
  74. data/config/locales/fi.yml +79 -8
  75. data/config/locales/fr-CA.yml +481 -0
  76. data/config/locales/fr.yml +93 -1
  77. data/config/locales/ga-IE.yml +1 -0
  78. data/config/locales/gl.yml +37 -16
  79. data/config/locales/hr-HR.yml +1 -0
  80. data/config/locales/hr.yml +1 -0
  81. data/config/locales/hu.yml +53 -2
  82. data/config/locales/is.yml +263 -0
  83. data/config/locales/it.yml +159 -76
  84. data/config/locales/ja-JP.yml +471 -0
  85. data/config/locales/ja.yml +477 -0
  86. data/config/locales/ko-KR.yml +1 -0
  87. data/config/locales/ko.yml +1 -0
  88. data/config/locales/lt-LT.yml +1 -0
  89. data/config/locales/lt.yml +1 -0
  90. data/config/locales/lv.yml +454 -0
  91. data/config/locales/mt-MT.yml +1 -0
  92. data/config/locales/mt.yml +1 -0
  93. data/config/locales/nl.yml +77 -0
  94. data/config/locales/no.yml +79 -10
  95. data/config/locales/om-ET.yml +1 -0
  96. data/config/locales/pl.yml +240 -152
  97. data/config/locales/pt-BR.yml +1 -1
  98. data/config/locales/pt.yml +207 -119
  99. data/config/locales/ro-RO.yml +441 -0
  100. data/config/locales/si-LK.yml +1 -0
  101. data/config/locales/sk-SK.yml +168 -0
  102. data/config/locales/sk.yml +172 -0
  103. data/config/locales/sl.yml +283 -0
  104. data/config/locales/so-SO.yml +1 -0
  105. data/config/locales/sr-CS.yml +73 -0
  106. data/config/locales/sv.yml +178 -89
  107. data/config/locales/sw-KE.yml +1 -0
  108. data/config/locales/ti-ER.yml +1 -0
  109. data/config/locales/tr-TR.yml +237 -144
  110. data/config/locales/vi-VN.yml +1 -0
  111. data/config/locales/vi.yml +1 -0
  112. data/config/locales/zh-CN.yml +471 -0
  113. data/config/locales/zh-TW.yml +1 -0
  114. data/db/migrate/20200320105906_index_foreign_keys_in_decidim_assemblies.rb +7 -0
  115. data/db/migrate/20200320105907_index_foreign_keys_in_decidim_assembly_user_roles.rb +7 -0
  116. data/db/migrate/20200416132109_remove_legacy_decidim_assembly_type.rb +8 -0
  117. data/db/migrate/20200430202456_create_decidim_assemblies_settings.rb +10 -0
  118. data/db/seeds/city.jpeg +0 -0
  119. data/db/seeds/city2.jpeg +0 -0
  120. data/lib/decidim/assemblies/admin_engine.rb +8 -0
  121. data/lib/decidim/assemblies/engine.rb +1 -1
  122. data/lib/decidim/assemblies/participatory_space.rb +26 -13
  123. data/lib/decidim/assemblies/test/factories.rb +8 -3
  124. data/lib/decidim/assemblies/version.rb +1 -1
  125. metadata +74 -14
@@ -0,0 +1 @@
1
+ zh-TW:
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class IndexForeignKeysInDecidimAssemblies < ActiveRecord::Migration[5.2]
4
+ def change
5
+ add_index :decidim_assemblies, :decidim_scope_id
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class IndexForeignKeysInDecidimAssemblyUserRoles < ActiveRecord::Migration[5.2]
4
+ def change
5
+ add_index :decidim_assembly_user_roles, :decidim_user_id
6
+ end
7
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ class RemoveLegacyDecidimAssemblyType < ActiveRecord::Migration[5.2]
4
+ def change
5
+ remove_column :decidim_assemblies, :assembly_type, :string
6
+ remove_column :decidim_assemblies, :assembly_type_other, :jsonb
7
+ end
8
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ class CreateDecidimAssembliesSettings < ActiveRecord::Migration[5.2]
4
+ def change
5
+ create_table :decidim_assemblies_settings do |t|
6
+ t.boolean :enable_organization_chart, default: true
7
+ t.references :decidim_organization, foreign_key: true
8
+ end
9
+ end
10
+ end
data/db/seeds/city.jpeg CHANGED
Binary file
data/db/seeds/city2.jpeg CHANGED
Binary file
@@ -16,6 +16,7 @@ module Decidim
16
16
 
17
17
  routes do
18
18
  resources :assemblies_types
19
+ resource :assemblies_settings, only: [:edit, :update], controller: "assemblies_settings"
19
20
 
20
21
  resources :assemblies, param: :slug, except: [:show, :destroy] do
21
22
  resource :publish, controller: "assembly_publications", only: [:create, :destroy]
@@ -30,6 +31,12 @@ module Decidim
30
31
 
31
32
  resources :attachment_collections, controller: "assembly_attachment_collections"
32
33
  resources :attachments, controller: "assembly_attachments"
34
+
35
+ resource :export, controller: "assembly_exports", only: :create
36
+
37
+ collection do
38
+ resources :imports, controller: "assembly_imports", only: [:new, :create]
39
+ end
33
40
  end
34
41
 
35
42
  scope "/assemblies/:assembly_slug" do
@@ -40,6 +47,7 @@ module Decidim
40
47
  member do
41
48
  put :publish
42
49
  put :unpublish
50
+ get :share
43
51
  end
44
52
  resources :exports, only: :create
45
53
  end
@@ -25,7 +25,7 @@ module Decidim
25
25
 
26
26
  resources :assemblies, only: [:index, :show], param: :slug, path: "assemblies" do
27
27
  resources :assembly_members, only: :index, path: "members"
28
- resource :assembly_widget, only: :show, path: "embed"
28
+ resource :widget, only: :show, path: "embed"
29
29
  end
30
30
 
31
31
  scope "/assemblies/:assembly_slug/f/:component_id" do
@@ -28,6 +28,19 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
28
28
  context.layout = "layouts/decidim/admin/assembly"
29
29
  end
30
30
 
31
+ participatory_space.exports :assemblies do |export|
32
+ export.collection do |assembly|
33
+ Decidim::Assembly.where(id: assembly.id)
34
+ end
35
+
36
+ export.serializer Decidim::Assemblies::AssemblySerializer
37
+ end
38
+
39
+ participatory_space.register_on_destroy_account do |user|
40
+ Decidim::AssemblyUserRole.where(user: user).destroy_all
41
+ Decidim::AssemblyMember.where(user: user).destroy_all
42
+ end
43
+
31
44
  participatory_space.seeds do
32
45
  organization = Decidim::Organization.first
33
46
  seeds_root = File.join(__dir__, "..", "..", "..", "db", "seeds")
@@ -35,7 +48,7 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
35
48
  Decidim::ContentBlock.create(
36
49
  organization: organization,
37
50
  weight: 32,
38
- scope: :homepage,
51
+ scope_name: :homepage,
39
52
  manifest_name: :highlighted_assemblies,
40
53
  published_at: Time.current
41
54
  )
@@ -52,11 +65,11 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
52
65
  description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
53
66
  Decidim::Faker::Localized.paragraph(3)
54
67
  end,
55
- hero_image: File.new(File.join(seeds_root, "city.jpeg")),
56
- banner_image: File.new(File.join(seeds_root, "city2.jpeg")),
68
+ organization: organization,
69
+ hero_image: File.new(File.join(seeds_root, "city.jpeg")), # Keep after organization
70
+ banner_image: File.new(File.join(seeds_root, "city2.jpeg")), # Keep after organization
57
71
  promoted: true,
58
72
  published_at: 2.weeks.ago,
59
- organization: organization,
60
73
  meta_scope: Decidim::Faker::Localized.word,
61
74
  developer_group: Decidim::Faker::Localized.sentence(1),
62
75
  local_area: Decidim::Faker::Localized.sentence(2),
@@ -135,11 +148,11 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
135
148
  description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
136
149
  Decidim::Faker::Localized.paragraph(3)
137
150
  end,
138
- hero_image: File.new(File.join(seeds_root, "city.jpeg")),
139
- banner_image: File.new(File.join(seeds_root, "city2.jpeg")),
151
+ organization: organization,
152
+ hero_image: File.new(File.join(seeds_root, "city.jpeg")), # Keep after organization
153
+ banner_image: File.new(File.join(seeds_root, "city2.jpeg")), # Keep after organization
140
154
  promoted: true,
141
155
  published_at: 2.weeks.ago,
142
- organization: organization,
143
156
  meta_scope: Decidim::Faker::Localized.word,
144
157
  developer_group: Decidim::Faker::Localized.sentence(1),
145
158
  local_area: Decidim::Faker::Localized.sentence(2),
@@ -161,23 +174,23 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
161
174
  Decidim::Attachment.create!(
162
175
  title: Decidim::Faker::Localized.sentence(2),
163
176
  description: Decidim::Faker::Localized.sentence(5),
164
- file: File.new(File.join(seeds_root, "Exampledocument.pdf")),
165
177
  attachment_collection: attachment_collection,
166
- attached_to: current_assembly
178
+ attached_to: current_assembly,
179
+ file: File.new(File.join(seeds_root, "Exampledocument.pdf")) # Keep after attached_to
167
180
  )
168
181
 
169
182
  Decidim::Attachment.create!(
170
183
  title: Decidim::Faker::Localized.sentence(2),
171
184
  description: Decidim::Faker::Localized.sentence(5),
172
- file: File.new(File.join(seeds_root, "city.jpeg")),
173
- attached_to: current_assembly
185
+ attached_to: current_assembly,
186
+ file: File.new(File.join(seeds_root, "city.jpeg")) # Keep after attached_to
174
187
  )
175
188
 
176
189
  Decidim::Attachment.create!(
177
190
  title: Decidim::Faker::Localized.sentence(2),
178
191
  description: Decidim::Faker::Localized.sentence(5),
179
- file: File.new(File.join(seeds_root, "Exampledocument.pdf")),
180
- attached_to: current_assembly
192
+ attached_to: current_assembly,
193
+ file: File.new(File.join(seeds_root, "Exampledocument.pdf")) # Keep after attached_to
181
194
  )
182
195
 
183
196
  2.times do
@@ -8,6 +8,11 @@ FactoryBot.define do
8
8
  "#{Faker::Internet.slug(nil, "-")}-#{n}"
9
9
  end
10
10
 
11
+ factory :assemblies_setting, class: "Decidim::AssembliesSetting" do
12
+ enable_organization_chart { true }
13
+ organization
14
+ end
15
+
11
16
  factory :assemblies_type, class: "Decidim::AssembliesType" do
12
17
  title { generate_localized_title }
13
18
  organization
@@ -19,10 +24,10 @@ FactoryBot.define do
19
24
  subtitle { generate_localized_title }
20
25
  short_description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
21
26
  description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
22
- hero_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") }
23
- banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") }
24
- published_at { Time.current }
25
27
  organization
28
+ hero_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") } # Keep after organization
29
+ banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") } # Keep after organization
30
+ published_at { Time.current }
26
31
  meta_scope { Decidim::Faker::Localized.word }
27
32
  developer_group { generate_localized_title }
28
33
  local_area { generate_localized_title }
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-assemblies version.
5
5
  module Assemblies
6
6
  def self.version
7
- "0.21.0"
7
+ "0.23.2"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-assemblies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.23.2
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: 2020-04-08 00:00:00.000000000 Z
13
+ date: 2021-02-09 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.0
21
+ version: 0.23.2
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.21.0
28
+ version: 0.23.2
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.21.0
35
+ version: 0.23.2
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.21.0
42
+ version: 0.23.2
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.21.0
49
+ version: 0.23.2
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.21.0
56
+ version: 0.23.2
57
57
  description: Assemblies component for decidim.
58
58
  email:
59
59
  - josepjaume@gmail.com
@@ -71,6 +71,7 @@ files:
71
71
  - app/assets/javascripts/decidim/assemblies/admin/assemblies.js.es6
72
72
  - app/assets/javascripts/decidim/assemblies/admin/assembly_members.js.es6
73
73
  - app/assets/javascripts/decidim/assemblies/assemblies.js.es6
74
+ - app/assets/javascripts/decidim/assemblies/orgchart.js.es6
74
75
  - app/cells/decidim/assemblies/assembly_cell.rb
75
76
  - app/cells/decidim/assemblies/assembly_m/footer.erb
76
77
  - app/cells/decidim/assemblies/assembly_m/tags.erb
@@ -90,8 +91,11 @@ files:
90
91
  - app/commands/decidim/assemblies/admin/destroy_assemblies_type.rb
91
92
  - app/commands/decidim/assemblies/admin/destroy_assembly_admin.rb
92
93
  - app/commands/decidim/assemblies/admin/destroy_assembly_member.rb
94
+ - app/commands/decidim/assemblies/admin/import_assembly.rb
95
+ - app/commands/decidim/assemblies/admin/notify_role_assigned_to_assembly.rb
93
96
  - app/commands/decidim/assemblies/admin/publish_assembly.rb
94
97
  - app/commands/decidim/assemblies/admin/unpublish_assembly.rb
98
+ - app/commands/decidim/assemblies/admin/update_assemblies_setting.rb
95
99
  - app/commands/decidim/assemblies/admin/update_assemblies_type.rb
96
100
  - app/commands/decidim/assemblies/admin/update_assembly.rb
97
101
  - app/commands/decidim/assemblies/admin/update_assembly_admin.rb
@@ -102,10 +106,13 @@ files:
102
106
  - app/controllers/concerns/decidim/assemblies/admin/filterable.rb
103
107
  - app/controllers/decidim/assemblies/admin/application_controller.rb
104
108
  - app/controllers/decidim/assemblies/admin/assemblies_controller.rb
109
+ - app/controllers/decidim/assemblies/admin/assemblies_settings_controller.rb
105
110
  - app/controllers/decidim/assemblies/admin/assemblies_types_controller.rb
106
111
  - app/controllers/decidim/assemblies/admin/assembly_attachment_collections_controller.rb
107
112
  - app/controllers/decidim/assemblies/admin/assembly_attachments_controller.rb
108
113
  - app/controllers/decidim/assemblies/admin/assembly_copies_controller.rb
114
+ - app/controllers/decidim/assemblies/admin/assembly_exports_controller.rb
115
+ - app/controllers/decidim/assemblies/admin/assembly_imports_controller.rb
109
116
  - app/controllers/decidim/assemblies/admin/assembly_members_controller.rb
110
117
  - app/controllers/decidim/assemblies/admin/assembly_publications_controller.rb
111
118
  - app/controllers/decidim/assemblies/admin/assembly_user_roles_controller.rb
@@ -120,27 +127,34 @@ files:
120
127
  - app/controllers/decidim/assemblies/application_controller.rb
121
128
  - app/controllers/decidim/assemblies/assemblies_controller.rb
122
129
  - app/controllers/decidim/assemblies/assembly_members_controller.rb
123
- - app/controllers/decidim/assemblies/assembly_widgets_controller.rb
130
+ - app/controllers/decidim/assemblies/widgets_controller.rb
131
+ - app/events/decidim/assemblies/create_assembly_member_event.rb
132
+ - app/events/decidim/role_assigned_to_assembly_event.rb
133
+ - app/forms/decidim/assemblies/admin/assemblies_setting_form.rb
124
134
  - app/forms/decidim/assemblies/admin/assemblies_type_form.rb
125
135
  - app/forms/decidim/assemblies/admin/assembly_copy_form.rb
126
136
  - app/forms/decidim/assemblies/admin/assembly_form.rb
137
+ - app/forms/decidim/assemblies/admin/assembly_import_form.rb
127
138
  - app/forms/decidim/assemblies/admin/assembly_member_form.rb
128
139
  - app/forms/decidim/assemblies/admin/assembly_user_role_form.rb
129
140
  - app/helpers/decidim/assemblies/admin/assemblies_helper.rb
130
141
  - app/helpers/decidim/assemblies/assemblies_helper.rb
131
142
  - app/helpers/decidim/assemblies/filter_assemblies_helper.rb
143
+ - app/models/decidim/assemblies_setting.rb
132
144
  - app/models/decidim/assemblies_type.rb
133
145
  - app/models/decidim/assembly.rb
134
146
  - app/models/decidim/assembly_member.rb
135
147
  - app/models/decidim/assembly_user_role.rb
136
148
  - app/permissions/decidim/assemblies/permissions.rb
137
149
  - app/presenters/decidim/admin/assembly_member_presenter.rb
150
+ - app/presenters/decidim/assemblies/admin_log/assemblies_setting_presenter.rb
138
151
  - app/presenters/decidim/assemblies/admin_log/assemblies_type_presenter.rb
139
152
  - app/presenters/decidim/assemblies/admin_log/assembly_member_presenter.rb
140
153
  - app/presenters/decidim/assemblies/admin_log/assembly_presenter.rb
141
154
  - app/presenters/decidim/assemblies/admin_log/assembly_user_role_presenter.rb
142
155
  - app/presenters/decidim/assemblies/admin_log/value_types/member_position_presenter.rb
143
156
  - app/presenters/decidim/assemblies/admin_log/value_types/role_presenter.rb
157
+ - app/presenters/decidim/assemblies/assembly_presenter.rb
144
158
  - app/presenters/decidim/assemblies/assembly_stats_presenter.rb
145
159
  - app/presenters/decidim/assembly_member_presenter.rb
146
160
  - app/presenters/decidim/assembly_presenter.rb
@@ -160,6 +174,8 @@ files:
160
174
  - app/queries/decidim/assemblies/promoted_assemblies.rb
161
175
  - app/queries/decidim/assemblies/published_assemblies.rb
162
176
  - app/queries/decidim/assemblies/visible_assemblies.rb
177
+ - app/serializers/decidim/assemblies/assembly_importer.rb
178
+ - app/serializers/decidim/assemblies/assembly_serializer.rb
163
179
  - app/services/decidim/assemblies/assembly_search.rb
164
180
  - app/types/decidim/assemblies/assemblies_type_type.rb
165
181
  - app/types/decidim/assemblies/assembly_member_type.rb
@@ -170,12 +186,16 @@ files:
170
186
  - app/views/decidim/assemblies/admin/assemblies/edit.html.erb
171
187
  - app/views/decidim/assemblies/admin/assemblies/index.html.erb
172
188
  - app/views/decidim/assemblies/admin/assemblies/new.html.erb
189
+ - app/views/decidim/assemblies/admin/assemblies_settings/_form.html.erb
190
+ - app/views/decidim/assemblies/admin/assemblies_settings/edit.html.erb
173
191
  - app/views/decidim/assemblies/admin/assemblies_types/_form.html.erb
174
192
  - app/views/decidim/assemblies/admin/assemblies_types/edit.html.erb
175
193
  - app/views/decidim/assemblies/admin/assemblies_types/index.html.erb
176
194
  - app/views/decidim/assemblies/admin/assemblies_types/new.html.erb
177
195
  - app/views/decidim/assemblies/admin/assembly_copies/_form.html.erb
178
196
  - app/views/decidim/assemblies/admin/assembly_copies/new.html.erb
197
+ - app/views/decidim/assemblies/admin/assembly_imports/_form.html.erb
198
+ - app/views/decidim/assemblies/admin/assembly_imports/new.html.erb
179
199
  - app/views/decidim/assemblies/admin/assembly_members/_form.html.erb
180
200
  - app/views/decidim/assemblies/admin/assembly_members/edit.html.erb
181
201
  - app/views/decidim/assemblies/admin/assembly_members/index.html.erb
@@ -200,38 +220,74 @@ files:
200
220
  - app/views/layouts/decidim/admin/assemblies.html.erb
201
221
  - app/views/layouts/decidim/admin/assembly.html.erb
202
222
  - app/views/layouts/decidim/assembly.html.erb
223
+ - config/locales/am-ET.yml
203
224
  - config/locales/ar-SA.yml
204
225
  - config/locales/ar.yml
226
+ - config/locales/bg-BG.yml
227
+ - config/locales/bg.yml
205
228
  - config/locales/ca.yml
206
229
  - config/locales/cs-CZ.yml
207
230
  - config/locales/cs.yml
231
+ - config/locales/da-DK.yml
232
+ - config/locales/da.yml
208
233
  - config/locales/de.yml
209
234
  - config/locales/el-GR.yml
210
235
  - config/locales/el.yml
211
236
  - config/locales/en.yml
212
237
  - config/locales/eo-UY.yml
238
+ - config/locales/eo.yml
213
239
  - config/locales/es-MX.yml
214
240
  - config/locales/es-PY.yml
215
241
  - config/locales/es.yml
242
+ - config/locales/et-EE.yml
243
+ - config/locales/et.yml
216
244
  - config/locales/eu.yml
217
245
  - config/locales/fi-pl.yml
218
246
  - config/locales/fi-plain.yml
219
247
  - config/locales/fi.yml
248
+ - config/locales/fr-CA.yml
220
249
  - config/locales/fr.yml
250
+ - config/locales/ga-IE.yml
221
251
  - config/locales/gl.yml
252
+ - config/locales/hr-HR.yml
253
+ - config/locales/hr.yml
222
254
  - config/locales/hu.yml
223
255
  - config/locales/id-ID.yml
224
256
  - config/locales/is-IS.yml
257
+ - config/locales/is.yml
225
258
  - config/locales/it.yml
259
+ - config/locales/ja-JP.yml
260
+ - config/locales/ja.yml
261
+ - config/locales/ko-KR.yml
262
+ - config/locales/ko.yml
263
+ - config/locales/lt-LT.yml
264
+ - config/locales/lt.yml
265
+ - config/locales/lv.yml
266
+ - config/locales/mt-MT.yml
267
+ - config/locales/mt.yml
226
268
  - config/locales/nl.yml
227
269
  - config/locales/no.yml
270
+ - config/locales/om-ET.yml
228
271
  - config/locales/pl.yml
229
272
  - config/locales/pt-BR.yml
230
273
  - config/locales/pt.yml
274
+ - config/locales/ro-RO.yml
231
275
  - config/locales/ru.yml
276
+ - config/locales/si-LK.yml
277
+ - config/locales/sk-SK.yml
278
+ - config/locales/sk.yml
279
+ - config/locales/sl.yml
280
+ - config/locales/so-SO.yml
281
+ - config/locales/sr-CS.yml
232
282
  - config/locales/sv.yml
283
+ - config/locales/sw-KE.yml
284
+ - config/locales/ti-ER.yml
233
285
  - config/locales/tr-TR.yml
234
286
  - config/locales/uk.yml
287
+ - config/locales/vi-VN.yml
288
+ - config/locales/vi.yml
289
+ - config/locales/zh-CN.yml
290
+ - config/locales/zh-TW.yml
235
291
  - db/migrate/20170727190859_add_assemblies.rb
236
292
  - db/migrate/20170822153055_add_scopes_enabled_to_assemblies.rb
237
293
  - db/migrate/20180109105917_add_assembly_user_roles.rb
@@ -246,6 +302,10 @@ files:
246
302
  - db/migrate/20190215093700_reset_negative_children_count_counters.rb
247
303
  - db/migrate/20200108113855_create_decidim_assembly_types.rb
248
304
  - db/migrate/20200108123050_migrate_decidim_assembly_types.rb
305
+ - db/migrate/20200320105906_index_foreign_keys_in_decidim_assemblies.rb
306
+ - db/migrate/20200320105907_index_foreign_keys_in_decidim_assembly_user_roles.rb
307
+ - db/migrate/20200416132109_remove_legacy_decidim_assembly_type.rb
308
+ - db/migrate/20200430202456_create_decidim_assemblies_settings.rb
249
309
  - db/seeds/Exampledocument.pdf
250
310
  - db/seeds/city.jpeg
251
311
  - db/seeds/city2.jpeg
@@ -262,7 +322,7 @@ homepage: https://github.com/decidim/decidim
262
322
  licenses:
263
323
  - AGPL-3.0
264
324
  metadata: {}
265
- post_install_message:
325
+ post_install_message:
266
326
  rdoc_options: []
267
327
  require_paths:
268
328
  - lib
@@ -270,15 +330,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
270
330
  requirements:
271
331
  - - ">="
272
332
  - !ruby/object:Gem::Version
273
- version: '2.5'
333
+ version: '2.6'
274
334
  required_rubygems_version: !ruby/object:Gem::Requirement
275
335
  requirements:
276
336
  - - ">="
277
337
  - !ruby/object:Gem::Version
278
338
  version: '0'
279
339
  requirements: []
280
- rubygems_version: 3.1.2
281
- signing_key:
340
+ rubygems_version: 3.0.3
341
+ signing_key:
282
342
  specification_version: 4
283
343
  summary: Decidim assemblies module
284
344
  test_files: []