decidim-assemblies 0.28.2 → 0.29.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/assemblies/content_blocks/highlighted_assemblies_cell.rb +0 -4
- data/app/cells/decidim/assemblies/content_blocks/stats_cell.rb +1 -1
- data/app/commands/decidim/assemblies/admin/create_assemblies_type.rb +3 -31
- data/app/commands/decidim/assemblies/admin/create_assembly.rb +30 -89
- data/app/commands/decidim/assemblies/admin/create_assembly_member.rb +14 -66
- data/app/commands/decidim/assemblies/admin/destroy_assembly_member.rb +5 -37
- data/app/commands/decidim/assemblies/admin/import_assembly.rb +1 -1
- data/app/commands/decidim/assemblies/admin/update_assemblies_type.rb +2 -35
- data/app/commands/decidim/assemblies/admin/update_assembly.rb +22 -99
- data/app/commands/decidim/assemblies/admin/update_assembly_member.rb +8 -69
- data/app/controllers/decidim/assemblies/admin/assemblies_controller.rb +1 -1
- data/app/controllers/decidim/assemblies/admin/assemblies_types_controller.rb +4 -4
- data/app/controllers/decidim/assemblies/admin/assembly_members_controller.rb +1 -1
- data/app/controllers/decidim/assemblies/admin/participatory_space_private_users_controller.rb +1 -1
- data/app/controllers/decidim/assemblies/admin/participatory_space_private_users_csv_imports_controller.rb +1 -1
- data/app/controllers/decidim/assemblies/application_controller.rb +4 -1
- data/app/controllers/decidim/assemblies/assemblies_controller.rb +0 -3
- data/app/controllers/decidim/assemblies/assembly_members_controller.rb +0 -2
- data/app/forms/decidim/assemblies/admin/assembly_form.rb +0 -1
- data/app/helpers/decidim/assemblies/assemblies_helper.rb +0 -26
- data/app/permissions/decidim/assemblies/permissions.rb +1 -1
- data/app/presenters/decidim/assemblies/admin_log/assembly_presenter.rb +0 -1
- data/app/serializers/decidim/assemblies/assembly_importer.rb +0 -1
- data/app/serializers/decidim/assemblies/assembly_serializer.rb +1 -2
- data/app/views/decidim/assemblies/admin/assemblies/_form.html.erb +5 -9
- data/app/views/decidim/assemblies/admin/assembly_members/index.html.erb +1 -1
- data/app/views/decidim/assemblies/admin/assembly_user_roles/index.html.erb +1 -1
- data/app/views/decidim/assemblies/assemblies/show.html.erb +21 -17
- data/app/views/decidim/assemblies/assembly_members/index.html.erb +2 -1
- data/config/locales/ar.yml +0 -6
- data/config/locales/bg.yml +2 -7
- data/config/locales/ca.yml +1 -6
- data/config/locales/cs.yml +1 -6
- data/config/locales/de.yml +2 -7
- data/config/locales/el.yml +0 -6
- data/config/locales/en.yml +2 -7
- data/config/locales/es-MX.yml +2 -7
- data/config/locales/es-PY.yml +1 -6
- data/config/locales/es.yml +1 -6
- data/config/locales/eu.yml +2 -7
- data/config/locales/fi-plain.yml +1 -6
- data/config/locales/fi.yml +1 -6
- data/config/locales/fr-CA.yml +2 -7
- data/config/locales/fr.yml +2 -7
- data/config/locales/ga-IE.yml +0 -3
- data/config/locales/gl.yml +0 -6
- data/config/locales/he-IL.yml +0 -4
- data/config/locales/hu.yml +1 -7
- data/config/locales/id-ID.yml +0 -5
- data/config/locales/is-IS.yml +0 -4
- data/config/locales/it.yml +0 -6
- data/config/locales/ja.yml +2 -7
- data/config/locales/lb.yml +0 -5
- data/config/locales/lt.yml +0 -6
- data/config/locales/lv.yml +0 -5
- data/config/locales/nl.yml +0 -6
- data/config/locales/no.yml +0 -6
- data/config/locales/pl.yml +1 -6
- data/config/locales/pt-BR.yml +0 -6
- data/config/locales/pt.yml +0 -6
- data/config/locales/ro-RO.yml +0 -6
- data/config/locales/ru.yml +0 -5
- data/config/locales/sk.yml +0 -3
- data/config/locales/sl.yml +0 -2
- data/config/locales/sq-AL.yml +2 -3
- data/config/locales/sv.yml +0 -6
- data/config/locales/tr-TR.yml +0 -5
- data/config/locales/uk.yml +0 -5
- data/config/locales/zh-CN.yml +0 -5
- data/config/locales/zh-TW.yml +0 -6
- data/db/migrate/20240712061153_change_show_statistics_from_decidim_assemblies.rb +11 -0
- data/decidim-assemblies.gemspec +1 -1
- data/lib/decidim/api/assembly_type.rb +3 -4
- data/lib/decidim/assemblies/content_blocks/registry_manager.rb +1 -1
- data/lib/decidim/assemblies/engine.rb +1 -0
- data/lib/decidim/assemblies/menu.rb +11 -0
- data/lib/decidim/assemblies/seeds.rb +1 -11
- data/lib/decidim/assemblies/test/factories.rb +0 -1
- data/lib/decidim/assemblies/version.rb +1 -1
- metadata +16 -17
- data/app/commands/decidim/assemblies/admin/destroy_assemblies_type.rb +0 -45
- data/app/views/layouts/decidim/assembly.html.erb +0 -18
data/config/locales/pt.yml
CHANGED
@@ -44,7 +44,6 @@ pt:
|
|
44
44
|
scope_id: Âmbito
|
45
45
|
scopes_enabled: Âmbitos ativados
|
46
46
|
short_description: Pequena descrição
|
47
|
-
show_statistics: Mostrar estatísticas
|
48
47
|
slug: Campo de dados dinâmicos de URL
|
49
48
|
special_features: Características especiais
|
50
49
|
subtitle: Subtítulo
|
@@ -265,7 +264,6 @@ pt:
|
|
265
264
|
form:
|
266
265
|
existing_user: Participante existente
|
267
266
|
explanation: 'Orientações para imagem:'
|
268
|
-
image_guide: De preferência uma imagem em formato paisagem sem texto algum.
|
269
267
|
non_user: Não participante
|
270
268
|
non_user_avatar_help: Deve obter o consentimento das pessoas antes de as publicar como membros.
|
271
269
|
select_a_position: Selecione uma posição
|
@@ -318,11 +316,7 @@ pt:
|
|
318
316
|
show:
|
319
317
|
assembly_type: Tipo de reunião
|
320
318
|
duration: Duração
|
321
|
-
is_transparent:
|
322
|
-
'false': opaco
|
323
|
-
'true': transparente
|
324
319
|
private_space: Esta é uma reunião privada
|
325
|
-
related_participatory_processes: Processos participativos relacionados
|
326
320
|
assembly_members:
|
327
321
|
assembly_member:
|
328
322
|
designated_on: Designado em
|
data/config/locales/ro-RO.yml
CHANGED
@@ -51,7 +51,6 @@ ro:
|
|
51
51
|
scope_id: Domeniu de interes
|
52
52
|
scopes_enabled: Domenii activate
|
53
53
|
short_description: Descriere scurtă
|
54
|
-
show_statistics: Arată statistici
|
55
54
|
slug: URL slug
|
56
55
|
special_features: Funcționalități speciale
|
57
56
|
subtitle: Subtitlu
|
@@ -287,7 +286,6 @@ ro:
|
|
287
286
|
form:
|
288
287
|
existing_user: Participant existent
|
289
288
|
explanation: 'Îndrumare pentru imagine:'
|
290
|
-
image_guide: Este de preferat o imagine pe format orizontal care să nu conțină text deloc.
|
291
289
|
non_user: Non participant
|
292
290
|
non_user_avatar_help: Ar trebui să obţii consimţământul persoanelor înainte de a îi publica drept membri.
|
293
291
|
select_a_position: Selectaţi o poziţie
|
@@ -357,11 +355,7 @@ ro:
|
|
357
355
|
show:
|
358
356
|
assembly_type: Tipul grupului de lucru
|
359
357
|
duration: Durată
|
360
|
-
is_transparent:
|
361
|
-
'false': opac
|
362
|
-
'true': transparent
|
363
358
|
private_space: Acesta este un grup de lucru privat
|
364
|
-
related_participatory_processes: Procese participative asociate
|
365
359
|
social_networks_title: Vizitează adunarea pe
|
366
360
|
assembly_members:
|
367
361
|
assembly_member:
|
data/config/locales/ru.yml
CHANGED
@@ -43,7 +43,6 @@ ru:
|
|
43
43
|
scope_id: Охват
|
44
44
|
scopes_enabled: Охваты включены
|
45
45
|
short_description: Краткое описание
|
46
|
-
show_statistics: Показывать статистику
|
47
46
|
slug: Сокращенный веб-адрес
|
48
47
|
special_features: Особенности
|
49
48
|
subtitle: Подзаголовок
|
@@ -261,11 +260,7 @@ ru:
|
|
261
260
|
show:
|
262
261
|
assembly_type: Вид собрания
|
263
262
|
duration: Длительность
|
264
|
-
is_transparent:
|
265
|
-
'false': непрозрачное
|
266
|
-
'true': прозрачное
|
267
263
|
private_space: Это частное собрание
|
268
|
-
related_participatory_processes: Сопутствующие движения соучастия
|
269
264
|
assembly_members:
|
270
265
|
assembly_member:
|
271
266
|
designated_on: 'Полномочия предоставлены:'
|
data/config/locales/sk.yml
CHANGED
@@ -44,7 +44,6 @@ sk:
|
|
44
44
|
scope_id: Rozsah
|
45
45
|
scopes_enabled: Povolené rozsahy
|
46
46
|
short_description: Stručný opis
|
47
|
-
show_statistics: Zobraziť štatistiky
|
48
47
|
slug: URL krátky odkaz
|
49
48
|
special_features: Špeciálne funkcie
|
50
49
|
subtitle: Podnadpis
|
@@ -135,8 +134,6 @@ sk:
|
|
135
134
|
assemblies_types:
|
136
135
|
form:
|
137
136
|
title: Názov
|
138
|
-
show:
|
139
|
-
related_participatory_processes: Súvisiace participatívne procesy
|
140
137
|
events:
|
141
138
|
assemblies:
|
142
139
|
create_assembly_member:
|
data/config/locales/sl.yml
CHANGED
@@ -41,7 +41,6 @@ sl:
|
|
41
41
|
scope_id: Obseg
|
42
42
|
scopes_enabled: Omogočeni obsegi
|
43
43
|
short_description: Kratek opis
|
44
|
-
show_statistics: Pokaži statistike
|
45
44
|
special_features: Posebne funkcije
|
46
45
|
subtitle: Podnapis
|
47
46
|
target: Kdor je prisostoval
|
@@ -190,7 +189,6 @@ sl:
|
|
190
189
|
show:
|
191
190
|
assembly_type: Vrsta združbe
|
192
191
|
duration: Trajanje
|
193
|
-
related_participatory_processes: Povezani participativni procesi
|
194
192
|
help:
|
195
193
|
participatory_spaces:
|
196
194
|
assemblies:
|
data/config/locales/sq-AL.yml
CHANGED
@@ -50,7 +50,6 @@ sq:
|
|
50
50
|
scope_id: Qëllimi
|
51
51
|
scopes_enabled: Fushveprimet e aktivizuara
|
52
52
|
short_description: Përshkrim i shkurtër
|
53
|
-
show_statistics: Trego statistikat
|
54
53
|
slug: Identifikues URL-je
|
55
54
|
special_features: Karaktersitika të veçanta
|
56
55
|
subtitle: Nëntitull
|
@@ -284,7 +283,7 @@ sq:
|
|
284
283
|
slug_help_html: 'Për gjenerimin e URL së kësaj asambleje përdoren URL slugs. Pranohen vetëm gërma, numra dhe viza horizontale, dhe duhet të fillojë me gërmë. Shembull: %{url}'
|
285
284
|
social_handlers: Rrjete sociale
|
286
285
|
title: Informacion i përgjithshëm
|
287
|
-
|
286
|
+
visibility: Vizibiliteti
|
288
287
|
assemblies_types:
|
289
288
|
form:
|
290
289
|
title: Modifiko tipin e asamblesë
|
@@ -298,6 +297,7 @@ sq:
|
|
298
297
|
form:
|
299
298
|
existing_user: Pjesëmarrës ekzistues
|
300
299
|
explanation: 'Udhëzime për imazhin:'
|
300
|
+
image_guide: Preferohet imazh me format portret (vertikal) pa tekst.
|
301
301
|
non_user: Mospjesëmarrës
|
302
302
|
non_user_avatar_help: Duhet të marrësh pëlqimin e personit para se ta publikosh si anëtar.
|
303
303
|
select_a_position: Zgjidh një pozicion
|
@@ -382,7 +382,6 @@ sq:
|
|
382
382
|
assembly_type: Tipi i asamblesë
|
383
383
|
duration: Kohëzgjatja
|
384
384
|
private_space: Kjo është asamble private
|
385
|
-
related_participatory_processes: Procese pjesëmarrëse të përafërta
|
386
385
|
social_networks_title: Vizito asamblenë në
|
387
386
|
assembly_members:
|
388
387
|
assembly_member:
|
data/config/locales/sv.yml
CHANGED
@@ -49,7 +49,6 @@ sv:
|
|
49
49
|
scope_id: Omfång
|
50
50
|
scopes_enabled: Omfång är aktiverade
|
51
51
|
short_description: Kort beskrivning
|
52
|
-
show_statistics: Visa statistik
|
53
52
|
slug: URL-slug
|
54
53
|
special_features: Specialfunktioner
|
55
54
|
subtitle: Underrubrik
|
@@ -272,7 +271,6 @@ sv:
|
|
272
271
|
form:
|
273
272
|
existing_user: Befintlig deltagare
|
274
273
|
explanation: 'Vägledning för bild:'
|
275
|
-
image_guide: Helst en porträttbild utan text.
|
276
274
|
non_user: Ej deltagande
|
277
275
|
non_user_avatar_help: Du bör få samtycke av personerna innan du publicerar dem som medlem.
|
278
276
|
select_a_position: Välj en position
|
@@ -342,11 +340,7 @@ sv:
|
|
342
340
|
show:
|
343
341
|
assembly_type: Typ av grupp
|
344
342
|
duration: Varaktighet
|
345
|
-
is_transparent:
|
346
|
-
'false': ogenomskinlig
|
347
|
-
'true': transparent
|
348
343
|
private_space: Detta är en privat grupp
|
349
|
-
related_participatory_processes: Relaterade dialoger
|
350
344
|
assembly_members:
|
351
345
|
assembly_member:
|
352
346
|
designated_on: Utsedd den
|
data/config/locales/tr-TR.yml
CHANGED
@@ -51,7 +51,6 @@ tr:
|
|
51
51
|
scope_id: kapsam
|
52
52
|
scopes_enabled: Kapsamlar etkin
|
53
53
|
short_description: Kısa Açıklama
|
54
|
-
show_statistics: İstatistikleri göster
|
55
54
|
slug: URL sümüklü böcek
|
56
55
|
special_features: Özel özellikler
|
57
56
|
subtitle: Alt Başlık
|
@@ -325,11 +324,7 @@ tr:
|
|
325
324
|
show:
|
326
325
|
assembly_type: Kurul türü
|
327
326
|
duration: Süre
|
328
|
-
is_transparent:
|
329
|
-
'false': opak
|
330
|
-
'true': şeffaf
|
331
327
|
private_space: Bu özel bir kurul
|
332
|
-
related_participatory_processes: İlgili Katılımcı süreçler
|
333
328
|
assembly_members:
|
334
329
|
assembly_member:
|
335
330
|
designated_on: Üzerinde belirlenen
|
data/config/locales/uk.yml
CHANGED
@@ -43,7 +43,6 @@ uk:
|
|
43
43
|
scope_id: Обсяг
|
44
44
|
scopes_enabled: Обсяги увімкнено
|
45
45
|
short_description: Стислий опис
|
46
|
-
show_statistics: Показувати статистику
|
47
46
|
slug: Скорочена веб-адреса
|
48
47
|
special_features: Особливості
|
49
48
|
subtitle: Підзаголовок
|
@@ -261,11 +260,7 @@ uk:
|
|
261
260
|
show:
|
262
261
|
assembly_type: Різновид зборів
|
263
262
|
duration: Тривалість
|
264
|
-
is_transparent:
|
265
|
-
'false': непрозорі
|
266
|
-
'true': прозорі
|
267
263
|
private_space: Це приватні збори
|
268
|
-
related_participatory_processes: Пов'язані рухи співучасті
|
269
264
|
assembly_members:
|
270
265
|
assembly_member:
|
271
266
|
designated_on: 'Надано повноваження:'
|
data/config/locales/zh-CN.yml
CHANGED
@@ -44,7 +44,6 @@ zh-CN:
|
|
44
44
|
scope_id: 范围
|
45
45
|
scopes_enabled: 范围已启用
|
46
46
|
short_description: 简短描述
|
47
|
-
show_statistics: 显示统计
|
48
47
|
slug: URL 名称
|
49
48
|
special_features: 特殊功能
|
50
49
|
subtitle: 字幕
|
@@ -301,11 +300,7 @@ zh-CN:
|
|
301
300
|
show:
|
302
301
|
assembly_type: 程序集类型
|
303
302
|
duration: 期限
|
304
|
-
is_transparent:
|
305
|
-
'false': 不透明度
|
306
|
-
'true': 透明度
|
307
303
|
private_space: 这是一个私人装饰
|
308
|
-
related_participatory_processes: 相关的参与进程
|
309
304
|
assembly_members:
|
310
305
|
assembly_member:
|
311
306
|
designated_on: 指定于
|
data/config/locales/zh-TW.yml
CHANGED
@@ -51,7 +51,6 @@ zh-TW:
|
|
51
51
|
scope_id: 範圍
|
52
52
|
scopes_enabled: 啟用範圍
|
53
53
|
short_description: 簡短說明
|
54
|
-
show_statistics: 顯示統計資料
|
55
54
|
slug: URL名稱
|
56
55
|
special_features: 特殊功能
|
57
56
|
subtitle: 子標題
|
@@ -280,7 +279,6 @@ zh-TW:
|
|
280
279
|
form:
|
281
280
|
existing_user: 現有參與者
|
282
281
|
explanation: '圖像的指導'
|
283
|
-
image_guide: 最好是沒有任何文字的肖像圖像
|
284
282
|
non_user: 非參與者
|
285
283
|
non_user_avatar_help: 在發佈他們為會員之前,您應該徵得他們的同意
|
286
284
|
select_a_position: 選擇一個位置
|
@@ -337,11 +335,7 @@ zh-TW:
|
|
337
335
|
show:
|
338
336
|
assembly_type: 大會類型
|
339
337
|
duration: 持續時間
|
340
|
-
is_transparent:
|
341
|
-
'false': 不透明
|
342
|
-
'true': 透明
|
343
338
|
private_space: 這是一個私人大會
|
344
|
-
related_participatory_processes: 相關參與程序
|
345
339
|
social_networks_title: 訪問大會
|
346
340
|
assembly_members:
|
347
341
|
assembly_member:
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class ChangeShowStatisticsFromDecidimAssemblies < ActiveRecord::Migration[7.0]
|
4
|
+
def up
|
5
|
+
change_column_default :decidim_assemblies, :show_statistics, from: false, to: true
|
6
|
+
end
|
7
|
+
|
8
|
+
def down
|
9
|
+
change_column_default :decidim_assemblies, :show_statistics, from: true, to: false
|
10
|
+
end
|
11
|
+
end
|
data/decidim-assemblies.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
"homepage_uri" => "https://decidim.org",
|
18
18
|
"source_code_uri" => "https://github.com/decidim/decidim"
|
19
19
|
}
|
20
|
-
s.required_ruby_version = "~> 3.
|
20
|
+
s.required_ruby_version = "~> 3.2.0"
|
21
21
|
|
22
22
|
s.name = "decidim-assemblies"
|
23
23
|
s.summary = "Decidim assemblies module"
|
@@ -31,7 +31,6 @@ module Decidim
|
|
31
31
|
field :target, Decidim::Core::TranslatedFieldType, "Who participates in this assembly", null: true
|
32
32
|
field :participatory_scope, Decidim::Core::TranslatedFieldType, "What is decided on this assembly", null: true
|
33
33
|
field :participatory_structure, Decidim::Core::TranslatedFieldType, "How it is decided on this assembly", null: true
|
34
|
-
field :show_statistics, Boolean, "If this assembly should show statistics", null: true
|
35
34
|
field :scopes_enabled, Boolean, "If this assembly has scopes enabled", null: true
|
36
35
|
field :private_space, Boolean, "If this assembly is a private space", null: true
|
37
36
|
field :area, Decidim::Core::AreaApiType, "Area of this assembly", null: true
|
@@ -54,12 +53,12 @@ module Decidim
|
|
54
53
|
field :twitter_handler, String, "Twitter handler", null: true
|
55
54
|
field :instagram_handler, String, "Instagram handler", null: true
|
56
55
|
field :facebook_handler, String, "Facebook handler", null: true
|
57
|
-
field :youtube_handler, String, "
|
58
|
-
field :github_handler, String, "
|
56
|
+
field :youtube_handler, String, "YouTube handler", null: true
|
57
|
+
field :github_handler, String, "GitHub handler", null: true
|
59
58
|
field :announcement, Decidim::Core::TranslatedFieldType, "Highlighted announcement for this assembly", null: true
|
60
59
|
|
61
60
|
field :members, [Decidim::Assemblies::AssemblyMemberType, { null: true }], "Members of this assembly", null: false
|
62
|
-
field :children, [Decidim::Assemblies::AssemblyType, { null: true }], "
|
61
|
+
field :children, [Decidim::Assemblies::AssemblyType, { null: true }], "Children of this assembly", null: false
|
63
62
|
|
64
63
|
def hero_image
|
65
64
|
object.attached_uploader(:hero_image).path
|
@@ -82,7 +82,7 @@ module Decidim
|
|
82
82
|
content_block.public_name_key = "decidim.content_blocks.last_activity.name"
|
83
83
|
content_block.settings_form_cell = "decidim/content_blocks/last_activity_settings_form"
|
84
84
|
content_block.settings do |settings|
|
85
|
-
settings.attribute :max_last_activity_users, type: :integer, default: Decidim
|
85
|
+
settings.attribute :max_last_activity_users, type: :integer, default: Decidim.default_max_last_activity_users
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
@@ -14,6 +14,17 @@ module Decidim
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
+
def self.register_mobile_menu!
|
18
|
+
Decidim.menu :mobile_menu do |menu|
|
19
|
+
menu.add_item :assemblies,
|
20
|
+
I18n.t("menu.assemblies", scope: "decidim"),
|
21
|
+
decidim_assemblies.assemblies_path,
|
22
|
+
position: 2.2,
|
23
|
+
if: OrganizationPublishedAssemblies.new(current_organization, current_user).any?,
|
24
|
+
active: :inclusive
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
17
28
|
def self.register_home_content_block_menu!
|
18
29
|
Decidim.menu :home_content_block_menu do |menu|
|
19
30
|
menu.add_item :assemblies,
|
@@ -111,17 +111,7 @@ module Decidim
|
|
111
111
|
# Create users with specific roles
|
112
112
|
Decidim::AssemblyUserRole::ROLES.each do |role|
|
113
113
|
email = "assembly_#{assembly.id}_#{role}@example.org"
|
114
|
-
|
115
|
-
user = Decidim::User.find_or_initialize_by(email:)
|
116
|
-
user.update!(
|
117
|
-
name: ::Faker::Name.name,
|
118
|
-
nickname: ::Faker::Twitter.unique.screen_name,
|
119
|
-
password: "decidim123456789",
|
120
|
-
organization:,
|
121
|
-
confirmed_at: Time.current,
|
122
|
-
locale: I18n.default_locale,
|
123
|
-
tos_agreement: true
|
124
|
-
)
|
114
|
+
user = find_or_initialize_user_by(email:)
|
125
115
|
|
126
116
|
Decidim::AssemblyUserRole.find_or_create_by!(
|
127
117
|
user:,
|
@@ -35,7 +35,6 @@ FactoryBot.define do
|
|
35
35
|
target { generate_localized_title(:assembly_target, skip_injection:) }
|
36
36
|
participatory_scope { generate_localized_title(:assembly_participatory_scope, skip_injection:) }
|
37
37
|
participatory_structure { generate_localized_title(:assembly_participatory_structure, skip_injection:) }
|
38
|
-
show_statistics { true }
|
39
38
|
private_space { false }
|
40
39
|
purpose_of_action { generate_localized_description(:assembly_purpose_of_action, skip_injection:) }
|
41
40
|
composition { generate_localized_description(:assembly_composition, skip_injection:) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-assemblies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.29.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -18,70 +18,70 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.29.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.29.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.29.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.29.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.29.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.29.0.rc1
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: decidim-meetings
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.
|
63
|
+
version: 0.29.0.rc1
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - '='
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: 0.
|
70
|
+
version: 0.29.0.rc1
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: decidim-proposals
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
77
|
+
version: 0.29.0.rc1
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - '='
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.
|
84
|
+
version: 0.29.0.rc1
|
85
85
|
description: Assemblies component for decidim.
|
86
86
|
email:
|
87
87
|
- josepjaume@gmail.com
|
@@ -121,7 +121,6 @@ files:
|
|
121
121
|
- app/commands/decidim/assemblies/admin/create_assemblies_type.rb
|
122
122
|
- app/commands/decidim/assemblies/admin/create_assembly.rb
|
123
123
|
- app/commands/decidim/assemblies/admin/create_assembly_member.rb
|
124
|
-
- app/commands/decidim/assemblies/admin/destroy_assemblies_type.rb
|
125
124
|
- app/commands/decidim/assemblies/admin/destroy_assembly_member.rb
|
126
125
|
- app/commands/decidim/assemblies/admin/import_assembly.rb
|
127
126
|
- app/commands/decidim/assemblies/admin/update_assemblies_type.rb
|
@@ -248,7 +247,6 @@ files:
|
|
248
247
|
- app/views/layouts/decidim/admin/assemblies_imports.html.erb
|
249
248
|
- app/views/layouts/decidim/admin/assemblies_types.html.erb
|
250
249
|
- app/views/layouts/decidim/admin/assembly.html.erb
|
251
|
-
- app/views/layouts/decidim/assembly.html.erb
|
252
250
|
- config/assets.rb
|
253
251
|
- config/locales/am-ET.yml
|
254
252
|
- config/locales/ar-SA.yml
|
@@ -352,6 +350,7 @@ files:
|
|
352
350
|
- db/migrate/20210310120444_add_followable_counter_cache_to_assemblies.rb
|
353
351
|
- db/migrate/20210507063604_add_announcement_to_assemblies.rb
|
354
352
|
- db/migrate/20210907120249_remove_designation_mode_from_assembly_members.rb
|
353
|
+
- db/migrate/20240712061153_change_show_statistics_from_decidim_assemblies.rb
|
355
354
|
- decidim-assemblies.gemspec
|
356
355
|
- lib/decidim/api/assemblies_type_type.rb
|
357
356
|
- lib/decidim/api/assembly_member_type.rb
|
@@ -385,14 +384,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
385
384
|
requirements:
|
386
385
|
- - "~>"
|
387
386
|
- !ruby/object:Gem::Version
|
388
|
-
version: 3.
|
387
|
+
version: 3.2.0
|
389
388
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
390
389
|
requirements:
|
391
|
-
- - "
|
390
|
+
- - ">"
|
392
391
|
- !ruby/object:Gem::Version
|
393
|
-
version:
|
392
|
+
version: 1.3.1
|
394
393
|
requirements: []
|
395
|
-
rubygems_version: 3.
|
394
|
+
rubygems_version: 3.4.10
|
396
395
|
signing_key:
|
397
396
|
specification_version: 4
|
398
397
|
summary: Decidim assemblies module
|
@@ -1,45 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Assemblies
|
5
|
-
module Admin
|
6
|
-
# A command with all the business logic when destroying an assembly
|
7
|
-
# type in the system.
|
8
|
-
class DestroyAssembliesType < Decidim::Command
|
9
|
-
# Public: Initializes the command.
|
10
|
-
#
|
11
|
-
# assemblies_type - the AssemblyMember to destroy
|
12
|
-
# current_user - the user performing the action
|
13
|
-
def initialize(assemblies_type, current_user)
|
14
|
-
@assemblies_type = assemblies_type
|
15
|
-
@current_user = current_user
|
16
|
-
end
|
17
|
-
|
18
|
-
# Executes the command. Broadcasts these events:
|
19
|
-
#
|
20
|
-
# - :ok when everything is valid.
|
21
|
-
# - :invalid if the form was not valid and we could not proceed.
|
22
|
-
#
|
23
|
-
# Returns nothing.
|
24
|
-
def call
|
25
|
-
destroy_assembly_type!
|
26
|
-
broadcast(:ok)
|
27
|
-
end
|
28
|
-
|
29
|
-
private
|
30
|
-
|
31
|
-
attr_reader :current_user
|
32
|
-
|
33
|
-
def destroy_assembly_type!
|
34
|
-
Decidim.traceability.perform_action!(
|
35
|
-
"delete",
|
36
|
-
@assemblies_type,
|
37
|
-
current_user
|
38
|
-
) do
|
39
|
-
@assemblies_type.destroy!
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<% add_decidim_page_title(translated_attribute(current_component.name)) if try(:current_component) %>
|
2
|
-
<% add_decidim_page_title(translated_attribute(current_participatory_space.title)) %>
|
3
|
-
<% add_decidim_meta_tags(
|
4
|
-
image_url: current_participatory_space.attached_uploader(:banner_image).path,
|
5
|
-
description: translated_attribute(current_participatory_space.short_description)
|
6
|
-
) %>
|
7
|
-
|
8
|
-
<%= append_javascript_pack_tag "decidim_assemblies" %>
|
9
|
-
|
10
|
-
<%= render partial: "layouts/decidim/header/follow_space_menu_bar_button", locals: { participatory_space: current_participatory_space } %>
|
11
|
-
|
12
|
-
<%= render "layouts/decidim/application" do %>
|
13
|
-
<main>
|
14
|
-
<%= yield %>
|
15
|
-
</main>
|
16
|
-
<% end %>
|
17
|
-
|
18
|
-
<% provide :meta_image_url, current_participatory_space.attached_uploader(:banner_image).path %>
|