decidim-assemblies 0.31.6 → 0.32.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -12
- data/app/cells/decidim/assemblies/content_blocks/main_data_cell.rb +1 -0
- data/app/commands/decidim/assemblies/admin/create_assembly.rb +4 -4
- data/app/commands/decidim/assemblies/admin/duplicate_assembly.rb +2 -3
- data/app/commands/decidim/assemblies/admin/update_assembly.rb +3 -3
- data/app/controllers/concerns/decidim/assemblies/admin/filterable.rb +6 -2
- data/app/controllers/concerns/decidim/assemblies/assembly_breadcrumb.rb +0 -3
- data/app/controllers/decidim/assemblies/admin/assemblies_controller.rb +2 -2
- data/app/controllers/decidim/assemblies/admin/assembly_duplicates_controller.rb +1 -1
- data/app/controllers/decidim/assemblies/admin/assembly_imports_controller.rb +1 -1
- data/app/controllers/decidim/assemblies/admin/concerns/assembly_admin.rb +1 -0
- data/app/controllers/decidim/assemblies/admin/members_controller.rb +14 -0
- data/app/controllers/decidim/assemblies/admin/members_csv_imports_controller.rb +22 -0
- data/app/controllers/decidim/assemblies/{participatory_space_private_users_controller.rb → members_controller.rb} +2 -2
- data/app/forms/decidim/assemblies/admin/assembly_duplicate_form.rb +2 -1
- data/app/forms/decidim/assemblies/admin/assembly_form.rb +9 -7
- data/app/forms/decidim/assemblies/admin/assembly_import_form.rb +1 -1
- data/app/helpers/decidim/assemblies/assemblies_helper.rb +2 -2
- data/app/helpers/decidim/assemblies/filter_assemblies_helper.rb +2 -1
- data/app/models/decidim/assembly.rb +12 -15
- data/app/packs/src/decidim/assemblies/controllers/assembly_admin/assembly_admin.test.js +1 -130
- data/app/packs/src/decidim/assemblies/controllers/assembly_admin/controller.js +0 -28
- data/app/permissions/decidim/assemblies/permissions.rb +9 -9
- data/app/presenters/decidim/assemblies/admin_log/assembly_presenter.rb +1 -2
- data/app/presenters/decidim/assemblies/assembly_presenter.rb +0 -4
- data/app/queries/decidim/assemblies/admin/admin_users.rb +1 -1
- data/app/serializers/decidim/assemblies/assembly_importer.rb +12 -15
- data/app/serializers/decidim/assemblies/assembly_serializer.rb +1 -1
- data/app/serializers/decidim/assemblies/open_data_assembly_serializer.rb +2 -8
- data/app/views/decidim/assemblies/admin/assemblies/_assemblies_thead.html.erb +1 -1
- data/app/views/decidim/assemblies/admin/assemblies/_assembly_row.html.erb +6 -7
- data/app/views/decidim/assemblies/admin/assemblies/_form.html.erb +33 -17
- data/app/views/decidim/assemblies/admin/assemblies/edit.html.erb +3 -2
- data/app/views/decidim/assemblies/admin/assemblies/index.html.erb +2 -1
- data/app/views/decidim/assemblies/admin/assemblies/manage_trash.html.erb +2 -2
- data/app/views/decidim/assemblies/admin/assemblies/new.html.erb +2 -2
- data/app/views/decidim/assemblies/admin/assembly_duplicates/_form.html.erb +3 -0
- data/app/views/decidim/assemblies/admin/assembly_duplicates/new.html.erb +2 -2
- data/app/views/decidim/assemblies/admin/assembly_imports/new.html.erb +2 -2
- data/app/views/decidim/assemblies/admin/assembly_user_roles/edit.html.erb +2 -2
- data/app/views/decidim/assemblies/admin/assembly_user_roles/index.html.erb +2 -2
- data/app/views/decidim/assemblies/admin/assembly_user_roles/new.html.erb +2 -2
- data/app/views/decidim/assemblies/assemblies/show.html.erb +10 -4
- data/app/views/decidim/assemblies/members/index.html.erb +24 -0
- data/config/locales/ar.yml +0 -26
- data/config/locales/bg.yml +0 -26
- data/config/locales/bs-BA.yml +0 -8
- data/config/locales/ca-IT.yml +37 -36
- data/config/locales/ca.yml +37 -36
- data/config/locales/cs.yml +36 -35
- data/config/locales/de.yml +25 -34
- data/config/locales/el.yml +0 -26
- data/config/locales/en.yml +36 -34
- data/config/locales/es-MX.yml +36 -35
- data/config/locales/es-PY.yml +36 -35
- data/config/locales/es.yml +36 -35
- data/config/locales/eu.yml +38 -37
- data/config/locales/fi-plain.yml +36 -35
- data/config/locales/fi.yml +36 -35
- data/config/locales/fr-CA.yml +34 -39
- data/config/locales/fr.yml +35 -40
- data/config/locales/ga-IE.yml +0 -12
- data/config/locales/gl.yml +0 -24
- data/config/locales/he-IL.yml +0 -11
- data/config/locales/hu.yml +0 -26
- data/config/locales/id-ID.yml +0 -22
- data/config/locales/is-IS.yml +1 -10
- data/config/locales/it.yml +0 -28
- data/config/locales/ja.yml +23 -35
- data/config/locales/kaa.yml +0 -1
- data/config/locales/ko.yml +0 -9
- data/config/locales/lb.yml +0 -24
- data/config/locales/lt.yml +0 -25
- data/config/locales/lv.yml +0 -25
- data/config/locales/nl.yml +0 -26
- data/config/locales/no.yml +0 -26
- data/config/locales/pl.yml +0 -26
- data/config/locales/pt-BR.yml +6 -30
- data/config/locales/pt.yml +0 -28
- data/config/locales/ro-RO.yml +2 -25
- data/config/locales/ru.yml +0 -15
- data/config/locales/sk.yml +0 -374
- data/config/locales/sl.yml +0 -11
- data/config/locales/sq-AL.yml +0 -17
- data/config/locales/sr-CS.yml +0 -8
- data/config/locales/sv.yml +16 -29
- data/config/locales/tr-TR.yml +4 -30
- data/config/locales/uk.yml +0 -15
- data/config/locales/zh-CN.yml +0 -25
- data/config/locales/zh-TW.yml +0 -26
- data/db/data/20260104094930_remove_assemblies_types_references.rb +25 -0
- data/db/data/20260111185230_replace_legacy_fields_to_access_mode_for_assemblies.rb +25 -0
- data/db/data/20260210195653_move_announcement_to_content_block_on_assemblies.rb +40 -0
- data/db/migrate/20180226103942_add_parent_child_relation_to_assemblies.rb +4 -4
- data/db/migrate/20190215093700_reset_negative_children_count_counters.rb +6 -2
- data/db/migrate/20210310120444_add_followable_counter_cache_to_assemblies.rb +6 -2
- data/db/migrate/20251112114736_remove_legacy_images_from_assemblies_module.rb +8 -0
- data/db/migrate/20251205120000_add_has_members_to_decidim_assemblies.rb +7 -0
- data/db/migrate/20260104093601_remove_assemblies_types.rb +12 -0
- data/db/migrate/20260111120000_add_access_mode_to_assemblies.rb +11 -0
- data/decidim-assemblies.gemspec +8 -9
- data/lib/decidim/api/assembly_type.rb +1 -8
- data/lib/decidim/assemblies/admin_engine.rb +10 -4
- data/lib/decidim/assemblies/content_blocks/registry_manager.rb +5 -0
- data/lib/decidim/assemblies/engine.rb +26 -42
- data/lib/decidim/assemblies/menu.rb +5 -5
- data/lib/decidim/assemblies/participatory_space.rb +0 -2
- data/lib/decidim/assemblies/seeds.rb +1 -2
- data/lib/decidim/assemblies/test/factories.rb +8 -20
- data/lib/decidim/assemblies/version.rb +1 -1
- metadata +25 -30
- data/app/cells/decidim/assemblies/assembly_dropdown_metadata_cell.rb +0 -19
- data/app/commands/decidim/assemblies/admin/create_assemblies_type.rb +0 -17
- data/app/commands/decidim/assemblies/admin/update_assemblies_type.rb +0 -13
- data/app/controllers/decidim/assemblies/admin/participatory_space_private_users_controller.rb +0 -22
- data/app/controllers/decidim/assemblies/admin/participatory_space_private_users_csv_imports_controller.rb +0 -22
- data/app/forms/decidim/assemblies/admin/assemblies_type_form.rb +0 -17
- data/app/models/decidim/assemblies_type.rb +0 -27
- data/app/presenters/decidim/assemblies/admin_log/assemblies_type_presenter.rb +0 -43
- data/app/presenters/decidim/log/value_types/assembly_type_presenter.rb +0 -29
- data/app/queries/decidim/assemblies/filtered_assemblies.rb +0 -22
- data/app/views/decidim/assemblies/pages/user_profile/_member_of.html.erb +0 -9
- data/app/views/decidim/assemblies/participatory_space_private_users/index.html.erb +0 -23
data/config/locales/sv.yml
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
---
|
|
2
1
|
sv:
|
|
3
2
|
activemodel:
|
|
4
3
|
attributes:
|
|
@@ -26,6 +25,7 @@ sv:
|
|
|
26
25
|
duration: Varaktighet
|
|
27
26
|
facebook: Facebook
|
|
28
27
|
github: GitHub
|
|
28
|
+
has_members: Det här samrådet har medlemmar
|
|
29
29
|
hero_image: Startbild
|
|
30
30
|
import_attachments: Importera bilagor
|
|
31
31
|
import_categories: Importera kategorier
|
|
@@ -40,7 +40,6 @@ sv:
|
|
|
40
40
|
participatory_processes_ids: Relaterade deltagandeprocesser
|
|
41
41
|
participatory_scope: Vad beslutas
|
|
42
42
|
participatory_structure: Hur fattas beslut
|
|
43
|
-
private_space: Privat utrymme
|
|
44
43
|
promoted: Utvald
|
|
45
44
|
published_at: Publicerad
|
|
46
45
|
purpose_of_action: Syfte
|
|
@@ -102,13 +101,14 @@ sv:
|
|
|
102
101
|
edit:
|
|
103
102
|
update: Uppdatera
|
|
104
103
|
index:
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
access_modes:
|
|
105
|
+
open: Öppen
|
|
106
|
+
restricted: Begränsad
|
|
107
|
+
transparent: Transparent
|
|
107
108
|
published: Publicerad
|
|
108
109
|
unpublished: Ej publicerade
|
|
109
110
|
new:
|
|
110
111
|
create: Skapa
|
|
111
|
-
title: Nytt samråd
|
|
112
112
|
update:
|
|
113
113
|
error: Det gick inte att uppdatera samrådet.
|
|
114
114
|
success: Samrådet har uppdaterats.
|
|
@@ -142,11 +142,8 @@ sv:
|
|
|
142
142
|
success: Administratören har tagits bort från samrådet.
|
|
143
143
|
edit:
|
|
144
144
|
update: Uppdatera
|
|
145
|
-
index:
|
|
146
|
-
assembly_admins_title: Administratörer för samråd
|
|
147
145
|
new:
|
|
148
146
|
create: Skapa
|
|
149
|
-
title: Ny administratör av samråd
|
|
150
147
|
update:
|
|
151
148
|
error: Det gick inte att uppdatera administratör för samrådet.
|
|
152
149
|
success: Administratören för samrådet har uppdaterats.
|
|
@@ -168,15 +165,15 @@ sv:
|
|
|
168
165
|
components: Komponenter
|
|
169
166
|
info: Om samrådet
|
|
170
167
|
landing_page: Landningssida
|
|
168
|
+
members: Medlemmar
|
|
171
169
|
moderations: Moderering
|
|
172
|
-
private_users: Medlemmar
|
|
173
170
|
see_assembly: Visa samråd
|
|
174
171
|
models:
|
|
175
172
|
assembly:
|
|
176
173
|
fields:
|
|
174
|
+
access_mode: Åtkomstläge
|
|
177
175
|
actions: Åtgärder
|
|
178
176
|
created_at: Skapad
|
|
179
|
-
private: Privat
|
|
180
177
|
promoted: Utvald
|
|
181
178
|
published: Publicerad
|
|
182
179
|
title: Titel
|
|
@@ -203,9 +200,6 @@ sv:
|
|
|
203
200
|
taxonomy_filters:
|
|
204
201
|
space_filter_for:
|
|
205
202
|
assemblies: Alla samråd
|
|
206
|
-
titles:
|
|
207
|
-
assemblies: Samråd
|
|
208
|
-
assemblies_types: Typer av samråd
|
|
209
203
|
tooltips:
|
|
210
204
|
deleted_assemblies_info: Ett samråd kan endast tas bort om status är "Avpublicerad".
|
|
211
205
|
admin_log:
|
|
@@ -241,16 +235,21 @@ sv:
|
|
|
241
235
|
admin:
|
|
242
236
|
assemblies:
|
|
243
237
|
form:
|
|
244
|
-
|
|
238
|
+
access:
|
|
239
|
+
label: Åtkomst
|
|
240
|
+
options:
|
|
241
|
+
open: Alla kan se och delta i sammankomsten.
|
|
242
|
+
restricted: Endast medlemmar kan se och delta.
|
|
243
|
+
transparent: Alla kan se sammankomsten, men bara medlemmar kan delta.
|
|
245
244
|
define_taxonomy_filters: Ställ in filter innan du använder den här inställningen.
|
|
246
245
|
duration: Varaktighet
|
|
247
246
|
duration_help: Välj ett slutdatum om samrådet är tidsbegränsat.
|
|
247
|
+
has_members_help: Du kommer att kunna skapa och publicera medlemmar
|
|
248
248
|
images: Bilder
|
|
249
249
|
included_at_help: Markera datumet när samrådet lades till på plattformen. Det behöver inte nödvändigtvis vara samma som datumet det skapades.
|
|
250
250
|
metadata: Metadata
|
|
251
251
|
no_taxonomy_filters_found: Inga filter för kategorier hittades.
|
|
252
252
|
other: Övrigt
|
|
253
|
-
private_notice: Du kommer att kunna hantera medlemmar om samrådet gjorts privat
|
|
254
253
|
select_a_created_by: Välj en skapad av
|
|
255
254
|
select_parent_assembly: Välj överordnat samråd
|
|
256
255
|
slug_help_html: 'URL-slugs används till att generera URL:er till samrådet. Använd bara bokstäver, siffror och bindestreck, och de måste börja med en bokstav. Exempel: %{url}'
|
|
@@ -275,7 +274,6 @@ sv:
|
|
|
275
274
|
max_results: Maximalt antal element att visa
|
|
276
275
|
imports:
|
|
277
276
|
attachment_error: Bilagan "%{title}" kunde inte importeras (%{error}).
|
|
278
|
-
banner_image_error: Bannerbilden kunde inte importeras (%{error}).
|
|
279
277
|
hero_image_error: Startbilden kunde inte importeras (%{error}).
|
|
280
278
|
new_import:
|
|
281
279
|
accepted_types:
|
|
@@ -304,9 +302,6 @@ sv:
|
|
|
304
302
|
type: Typ
|
|
305
303
|
show:
|
|
306
304
|
title: Om det här samrådet
|
|
307
|
-
assembly_members:
|
|
308
|
-
index:
|
|
309
|
-
members: Medlemmar
|
|
310
305
|
content_blocks:
|
|
311
306
|
children_assemblies:
|
|
312
307
|
name: Samråd
|
|
@@ -341,16 +336,9 @@ sv:
|
|
|
341
336
|
highlighted_assemblies:
|
|
342
337
|
active_spaces: Pågående samråd
|
|
343
338
|
see_all_spaces: Visa alla samråd
|
|
344
|
-
user_profile:
|
|
345
|
-
member_of:
|
|
346
|
-
member_of: Medlem av
|
|
347
339
|
show:
|
|
348
340
|
duration: Varaktighet
|
|
349
|
-
private_space: Det här är ett privat samråd
|
|
350
341
|
social_networks_title: Besök samrådet på
|
|
351
|
-
assembly_members:
|
|
352
|
-
index:
|
|
353
|
-
title: Medlemmar
|
|
354
342
|
download_your_data:
|
|
355
343
|
show:
|
|
356
344
|
assemblies: Exportera samråd
|
|
@@ -377,18 +365,17 @@ sv:
|
|
|
377
365
|
value_types:
|
|
378
366
|
assembly_presenter:
|
|
379
367
|
not_found: 'Samrådet hittades inte i databasen (ID: %{id})'
|
|
380
|
-
assembly_type_presenter:
|
|
381
|
-
not_found: 'Typen av samråd hittades inte i databasen (ID: %{id})'
|
|
382
368
|
menu:
|
|
383
369
|
assemblies: Samråd
|
|
384
370
|
open_data:
|
|
385
371
|
help:
|
|
386
372
|
assemblies:
|
|
387
|
-
|
|
373
|
+
access_mode: Åtkomstläge. Huruvida sammankomsten är öppen, begränsad eller transparent.
|
|
388
374
|
area: Samrådets område
|
|
389
375
|
assembly_type: Typ av samråd
|
|
390
376
|
closing_date: Slutdatum för samrådet
|
|
391
377
|
closing_date_reason: Anledning till att samrådet avslutades
|
|
378
|
+
component_settings: Inställningar för samrådet
|
|
392
379
|
composition: Samrådets sammansättning
|
|
393
380
|
created_at: Datum när processen skapades
|
|
394
381
|
created_by: Initiativtagare till samrådet
|
data/config/locales/tr-TR.yml
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
---
|
|
2
1
|
tr:
|
|
3
2
|
activemodel:
|
|
4
3
|
attributes:
|
|
@@ -18,7 +17,7 @@ tr:
|
|
|
18
17
|
decidim_scope_id: kapsam
|
|
19
18
|
description: Açıklama
|
|
20
19
|
developer_group: Tanıtım grubu
|
|
21
|
-
document: Belge
|
|
20
|
+
document: Belge
|
|
22
21
|
domain: domain
|
|
23
22
|
duplicate_categories: Yinelenen kategoriler
|
|
24
23
|
duplicate_features: Yinelenen özellikler
|
|
@@ -26,9 +25,9 @@ tr:
|
|
|
26
25
|
facebook: Facebook
|
|
27
26
|
github: GitHub
|
|
28
27
|
hero_image: Ana resim
|
|
29
|
-
import_attachments: Eki içe aktar
|
|
30
|
-
import_categories: Kategorileri içe aktar
|
|
31
|
-
import_components: Bireşenleri içe aktar
|
|
28
|
+
import_attachments: Eki içe aktar
|
|
29
|
+
import_categories: Kategorileri içe aktar
|
|
30
|
+
import_components: Bireşenleri içe aktar
|
|
32
31
|
included_at: Dahil
|
|
33
32
|
instagram: Instagram
|
|
34
33
|
is_transparent: Şeffaf mı
|
|
@@ -38,7 +37,6 @@ tr:
|
|
|
38
37
|
participatory_processes_ids: İlgili Katılımcı süreçler
|
|
39
38
|
participatory_scope: Karar nedir
|
|
40
39
|
participatory_structure: Nasıl karar verilir
|
|
41
|
-
private_space: Özel alan
|
|
42
40
|
promoted: Tanıtılan
|
|
43
41
|
published_at: Yayınlandı
|
|
44
42
|
purpose_of_action: Eylem amacı
|
|
@@ -88,12 +86,9 @@ tr:
|
|
|
88
86
|
edit:
|
|
89
87
|
update: Güncelle
|
|
90
88
|
index:
|
|
91
|
-
private: Kişisel
|
|
92
|
-
public: Genel
|
|
93
89
|
published: Yayınlanan
|
|
94
90
|
new:
|
|
95
91
|
create: Oluştur
|
|
96
|
-
title: Yeni kurul
|
|
97
92
|
update:
|
|
98
93
|
error: Bu kurul güncellenirken bir hata oluştu.
|
|
99
94
|
success: Kurul başarıyla güncellendi.
|
|
@@ -119,11 +114,8 @@ tr:
|
|
|
119
114
|
success: Yönetici bu kuruldan başarıyla kaldırıldı.
|
|
120
115
|
edit:
|
|
121
116
|
update: Güncelle
|
|
122
|
-
index:
|
|
123
|
-
assembly_admins_title: Kurul yöneticileri
|
|
124
117
|
new:
|
|
125
118
|
create: Oluştur
|
|
126
|
-
title: Yeni Meclis Yöneticisi
|
|
127
119
|
update:
|
|
128
120
|
error: Bu kurul için bir yönetici güncellenirken bir sorun oluştu.
|
|
129
121
|
success: Yönetici bu kurul için başarıyla güncellendi.
|
|
@@ -138,12 +130,10 @@ tr:
|
|
|
138
130
|
info: Bu meclis hakkında
|
|
139
131
|
landing_page:
|
|
140
132
|
moderations: Yönetim
|
|
141
|
-
private_users: Üyeler
|
|
142
133
|
models:
|
|
143
134
|
assembly:
|
|
144
135
|
fields:
|
|
145
136
|
created_at: Düzenlendi
|
|
146
|
-
private: Özel
|
|
147
137
|
promoted: Vurgulanan
|
|
148
138
|
published: Yayınlanan
|
|
149
139
|
title: Başlık
|
|
@@ -165,9 +155,6 @@ tr:
|
|
|
165
155
|
admin: Yönetici
|
|
166
156
|
collaborator: İşbirlikçi
|
|
167
157
|
moderator: Moderatör
|
|
168
|
-
titles:
|
|
169
|
-
assemblies: Kurullar
|
|
170
|
-
assemblies_types: Kurul türleri
|
|
171
158
|
tooltips:
|
|
172
159
|
deleted_assemblies_info: Bir meclis yalnızca eğer statüsü "Yayınlanmamış" ise silinebilir.
|
|
173
160
|
admin_log:
|
|
@@ -225,9 +212,6 @@ tr:
|
|
|
225
212
|
filters:
|
|
226
213
|
names:
|
|
227
214
|
all: Tümü
|
|
228
|
-
assembly_members:
|
|
229
|
-
index:
|
|
230
|
-
members: Üyeler
|
|
231
215
|
content_blocks:
|
|
232
216
|
highlighted_assemblies:
|
|
233
217
|
name: Vurgulanan kurullar
|
|
@@ -247,16 +231,8 @@ tr:
|
|
|
247
231
|
working_group: Çalışma Grubu
|
|
248
232
|
index:
|
|
249
233
|
title: Kurullar
|
|
250
|
-
pages:
|
|
251
|
-
user_profile:
|
|
252
|
-
member_of:
|
|
253
|
-
member_of: Üyesi
|
|
254
234
|
show:
|
|
255
235
|
duration: Süre
|
|
256
|
-
private_space: Bu özel bir kurul
|
|
257
|
-
assembly_members:
|
|
258
|
-
index:
|
|
259
|
-
title: Üyeler
|
|
260
236
|
events:
|
|
261
237
|
assemblies:
|
|
262
238
|
create_assembly_member:
|
|
@@ -280,8 +256,6 @@ tr:
|
|
|
280
256
|
value_types:
|
|
281
257
|
assembly_presenter:
|
|
282
258
|
not_found: 'Kurul veritabanında bulunamadı (ID: %{id})'
|
|
283
|
-
assembly_type_presenter:
|
|
284
|
-
not_found: 'Kurul türü veritabanında bulunamadı (ID: %{id})'
|
|
285
259
|
menu:
|
|
286
260
|
assemblies: Kurullar
|
|
287
261
|
open_data:
|
data/config/locales/uk.yml
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
---
|
|
2
1
|
uk:
|
|
3
2
|
activemodel:
|
|
4
3
|
attributes:
|
|
@@ -30,7 +29,6 @@ uk:
|
|
|
30
29
|
participatory_processes_ids: Пов'язані рухи співучасті
|
|
31
30
|
participatory_scope: Що вирішується
|
|
32
31
|
participatory_structure: Як це вирішується
|
|
33
|
-
private_space: Приватний простір
|
|
34
32
|
promoted: Висвітлено
|
|
35
33
|
published_at: 'Оприлюднено:'
|
|
36
34
|
purpose_of_action: Мета дії
|
|
@@ -80,12 +78,9 @@ uk:
|
|
|
80
78
|
edit:
|
|
81
79
|
update: Оновити
|
|
82
80
|
index:
|
|
83
|
-
private: Приватні
|
|
84
|
-
public: Громадяни
|
|
85
81
|
published: Оприлюднено
|
|
86
82
|
new:
|
|
87
83
|
create: Додати
|
|
88
|
-
title: Додати збори
|
|
89
84
|
update:
|
|
90
85
|
error: При спробі оновити ці збори сталася помилка.
|
|
91
86
|
success: Збори успішно оновлено.
|
|
@@ -104,8 +99,6 @@ uk:
|
|
|
104
99
|
success: Учасника цих зборів успішно видалено.
|
|
105
100
|
edit:
|
|
106
101
|
update: Оновити
|
|
107
|
-
index:
|
|
108
|
-
assembly_admins_title: Учасники зборів
|
|
109
102
|
new:
|
|
110
103
|
create: Створити
|
|
111
104
|
update:
|
|
@@ -124,7 +117,6 @@ uk:
|
|
|
124
117
|
assembly:
|
|
125
118
|
fields:
|
|
126
119
|
created_at: 'Додано:'
|
|
127
|
-
private: Приватні
|
|
128
120
|
promoted: Висвітлено
|
|
129
121
|
published: Оприлюднено
|
|
130
122
|
title: Назва
|
|
@@ -146,8 +138,6 @@ uk:
|
|
|
146
138
|
admin: Адміністратор
|
|
147
139
|
collaborator: Співробітник
|
|
148
140
|
moderator: Модератор
|
|
149
|
-
titles:
|
|
150
|
-
assemblies: Збори
|
|
151
141
|
admin_log:
|
|
152
142
|
assembly:
|
|
153
143
|
create: "%{user_name} додав збори %{resource_name}"
|
|
@@ -183,13 +173,8 @@ uk:
|
|
|
183
173
|
public: Громадяни
|
|
184
174
|
index:
|
|
185
175
|
title: Збори
|
|
186
|
-
pages:
|
|
187
|
-
user_profile:
|
|
188
|
-
member_of:
|
|
189
|
-
member_of: 'Входить у склад:'
|
|
190
176
|
show:
|
|
191
177
|
duration: Тривалість
|
|
192
|
-
private_space: Це приватні збори
|
|
193
178
|
log:
|
|
194
179
|
value_types:
|
|
195
180
|
assembly_presenter:
|
data/config/locales/zh-CN.yml
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
---
|
|
2
1
|
zh-CN:
|
|
3
2
|
activemodel:
|
|
4
3
|
attributes:
|
|
@@ -31,7 +30,6 @@ zh-CN:
|
|
|
31
30
|
participatory_processes_ids: 相关的参与进程
|
|
32
31
|
participatory_scope: 决定的内容
|
|
33
32
|
participatory_structure: 如何决定
|
|
34
|
-
private_space: 私有空间
|
|
35
33
|
promoted: 高亮
|
|
36
34
|
published_at: 发布于
|
|
37
35
|
purpose_of_action: 行动的目的
|
|
@@ -73,12 +71,9 @@ zh-CN:
|
|
|
73
71
|
edit:
|
|
74
72
|
update: 更新
|
|
75
73
|
index:
|
|
76
|
-
private: 非公开的
|
|
77
|
-
public: 公开的
|
|
78
74
|
published: 已发布
|
|
79
75
|
new:
|
|
80
76
|
create: 创建
|
|
81
|
-
title: 新建程序集
|
|
82
77
|
update:
|
|
83
78
|
error: 更新这个组件时出现问题。
|
|
84
79
|
success: 程序更新成功。
|
|
@@ -104,8 +99,6 @@ zh-CN:
|
|
|
104
99
|
success: 管理员已成功从此组件中移除。
|
|
105
100
|
edit:
|
|
106
101
|
update: 更新
|
|
107
|
-
index:
|
|
108
|
-
assembly_admins_title: 集合管理员
|
|
109
102
|
new:
|
|
110
103
|
create: 创建
|
|
111
104
|
update:
|
|
@@ -120,12 +113,10 @@ zh-CN:
|
|
|
120
113
|
attachments: 附件
|
|
121
114
|
components: 组件
|
|
122
115
|
moderations: 版面
|
|
123
|
-
private_users: 成员
|
|
124
116
|
models:
|
|
125
117
|
assembly:
|
|
126
118
|
fields:
|
|
127
119
|
created_at: 创建于
|
|
128
|
-
private: 非公开的
|
|
129
120
|
promoted: 高亮
|
|
130
121
|
published: 已发布
|
|
131
122
|
title: 标题
|
|
@@ -147,9 +138,6 @@ zh-CN:
|
|
|
147
138
|
admin: 管理员
|
|
148
139
|
collaborator: 协作者
|
|
149
140
|
moderator: 版主
|
|
150
|
-
titles:
|
|
151
|
-
assemblies: 程序集
|
|
152
|
-
assemblies_types: 程序集类型
|
|
153
141
|
admin_log:
|
|
154
142
|
assembly:
|
|
155
143
|
create: "%{user_name} 创建了 %{resource_name} 程序集"
|
|
@@ -194,9 +182,6 @@ zh-CN:
|
|
|
194
182
|
filters:
|
|
195
183
|
names:
|
|
196
184
|
all: 所有的
|
|
197
|
-
assembly_members:
|
|
198
|
-
index:
|
|
199
|
-
members: 成员
|
|
200
185
|
content_blocks:
|
|
201
186
|
highlighted_assemblies:
|
|
202
187
|
name: 突出显示的会议
|
|
@@ -216,16 +201,8 @@ zh-CN:
|
|
|
216
201
|
working_group: 工作组
|
|
217
202
|
index:
|
|
218
203
|
title: 程序集
|
|
219
|
-
pages:
|
|
220
|
-
user_profile:
|
|
221
|
-
member_of:
|
|
222
|
-
member_of: 成员
|
|
223
204
|
show:
|
|
224
205
|
duration: 期限
|
|
225
|
-
private_space: 这是一个私人装饰
|
|
226
|
-
assembly_members:
|
|
227
|
-
index:
|
|
228
|
-
title: 成员
|
|
229
206
|
events:
|
|
230
207
|
assemblies:
|
|
231
208
|
create_assembly_member:
|
|
@@ -248,8 +225,6 @@ zh-CN:
|
|
|
248
225
|
value_types:
|
|
249
226
|
assembly_presenter:
|
|
250
227
|
not_found: '在数据库中找不到程序集 (ID: %{id})'
|
|
251
|
-
assembly_type_presenter:
|
|
252
|
-
not_found: '在数据库中找不到程序集类型 (ID: %{id})'
|
|
253
228
|
menu:
|
|
254
229
|
assemblies: 程序集
|
|
255
230
|
participatory_processes:
|
data/config/locales/zh-TW.yml
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
---
|
|
2
1
|
zh-TW:
|
|
3
2
|
activemodel:
|
|
4
3
|
attributes:
|
|
@@ -36,7 +35,6 @@ zh-TW:
|
|
|
36
35
|
participatory_processes_ids: 相關參與程序
|
|
37
36
|
participatory_scope: 決定了什麼
|
|
38
37
|
participatory_structure: 如何決定
|
|
39
|
-
private_space: 私人空間
|
|
40
38
|
promoted: 重點顯示
|
|
41
39
|
published_at: 發佈於
|
|
42
40
|
purpose_of_action: 行動目的
|
|
@@ -88,12 +86,9 @@ zh-TW:
|
|
|
88
86
|
edit:
|
|
89
87
|
update: 更新
|
|
90
88
|
index:
|
|
91
|
-
private: 不公開
|
|
92
|
-
public: 公開
|
|
93
89
|
published: 已發佈
|
|
94
90
|
new:
|
|
95
91
|
create: 創建
|
|
96
|
-
title: 新大會
|
|
97
92
|
update:
|
|
98
93
|
error: 更新此大會時出現問題
|
|
99
94
|
success: 此大會成功更新
|
|
@@ -119,8 +114,6 @@ zh-TW:
|
|
|
119
114
|
success: 管理員已成功從此大會中刪除
|
|
120
115
|
edit:
|
|
121
116
|
update: 更新
|
|
122
|
-
index:
|
|
123
|
-
assembly_admins_title: 大會管理員
|
|
124
117
|
new:
|
|
125
118
|
create: 建立
|
|
126
119
|
update:
|
|
@@ -135,12 +128,10 @@ zh-TW:
|
|
|
135
128
|
attachments: 附件
|
|
136
129
|
components: 元件
|
|
137
130
|
moderations: 版主
|
|
138
|
-
private_users: 成員
|
|
139
131
|
models:
|
|
140
132
|
assembly:
|
|
141
133
|
fields:
|
|
142
134
|
created_at: 建立於
|
|
143
|
-
private: 不公開
|
|
144
135
|
promoted: 重點顯示
|
|
145
136
|
published: 已發佈
|
|
146
137
|
title: 標題
|
|
@@ -162,9 +153,6 @@ zh-TW:
|
|
|
162
153
|
admin: 管理員
|
|
163
154
|
collaborator: 合作者
|
|
164
155
|
moderator: 版主
|
|
165
|
-
titles:
|
|
166
|
-
assemblies: 大會
|
|
167
|
-
assemblies_types: 大會類型
|
|
168
156
|
admin_log:
|
|
169
157
|
assembly:
|
|
170
158
|
create: "%{user_name} 建立了 %{resource_name} 大會"
|
|
@@ -194,7 +182,6 @@ zh-TW:
|
|
|
194
182
|
admin:
|
|
195
183
|
assemblies:
|
|
196
184
|
form:
|
|
197
|
-
announcement_help: 您在此處輸入的文字將顯示至使用者的正下方大會信息
|
|
198
185
|
duration: 持續時間
|
|
199
186
|
duration_help: 如果此大會的持續時間有限,請選擇結束日期。 否則,它將顯示為不確定。
|
|
200
187
|
images: 圖片
|
|
@@ -224,9 +211,6 @@ zh-TW:
|
|
|
224
211
|
all: 全部
|
|
225
212
|
show:
|
|
226
213
|
title: 關於這個大會
|
|
227
|
-
assembly_members:
|
|
228
|
-
index:
|
|
229
|
-
members: 成員
|
|
230
214
|
content_blocks:
|
|
231
215
|
highlighted_assemblies:
|
|
232
216
|
name: 關注的大會
|
|
@@ -248,17 +232,9 @@ zh-TW:
|
|
|
248
232
|
title: 大會
|
|
249
233
|
last_activity:
|
|
250
234
|
new_assembly: '新大會:'
|
|
251
|
-
pages:
|
|
252
|
-
user_profile:
|
|
253
|
-
member_of:
|
|
254
|
-
member_of: 的成員
|
|
255
235
|
show:
|
|
256
236
|
duration: 持續時間
|
|
257
|
-
private_space: 這是一個私人大會
|
|
258
237
|
social_networks_title: 訪問大會
|
|
259
|
-
assembly_members:
|
|
260
|
-
index:
|
|
261
|
-
title: 成員
|
|
262
238
|
events:
|
|
263
239
|
assemblies:
|
|
264
240
|
create_assembly_member:
|
|
@@ -282,8 +258,6 @@ zh-TW:
|
|
|
282
258
|
value_types:
|
|
283
259
|
assembly_presenter:
|
|
284
260
|
not_found: '在資料庫中找不到該大會 (ID: %{id})'
|
|
285
|
-
assembly_type_presenter:
|
|
286
|
-
not_found: '在資料庫中找不到該大會類型 (ID: %{id})'
|
|
287
261
|
menu:
|
|
288
262
|
assemblies: 大會
|
|
289
263
|
participatory_processes:
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
class RemoveAssembliesTypesReferences < ActiveRecord::Migration[7.2]
|
|
4
|
+
class ActionLog < ApplicationRecord
|
|
5
|
+
self.table_name = :decidim_action_logs
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class Version < ApplicationRecord
|
|
9
|
+
self.table_name = "versions"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class Notification < ApplicationRecord
|
|
13
|
+
self.table_name = "decidim_notifications"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def up
|
|
17
|
+
ActionLog.where(resource_type: "Decidim::AssembliesType").delete_all
|
|
18
|
+
Version.where(item_type: "Decidim::AssembliesType").delete_all
|
|
19
|
+
Notification.where(decidim_resource_type: "Decidim::AssembliesType").delete_all
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def down
|
|
23
|
+
raise ActiveRecord::IrreversibleMigration
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
class ReplaceLegacyFieldsToAccessModeForAssemblies < ActiveRecord::Migration[7.2]
|
|
4
|
+
def up
|
|
5
|
+
say_with_time "Backfilling assemblies access_mode from legacy flags" do
|
|
6
|
+
Decidim::Assembly.reset_column_information
|
|
7
|
+
Decidim::Assembly.find_each do |assembly|
|
|
8
|
+
mode = if assembly.private_space && !assembly.is_transparent
|
|
9
|
+
:restricted
|
|
10
|
+
elsif assembly.private_space && assembly.is_transparent
|
|
11
|
+
:transparent
|
|
12
|
+
else
|
|
13
|
+
:open
|
|
14
|
+
end
|
|
15
|
+
# Use write_attribute to avoid validations/callbacks
|
|
16
|
+
assembly.write_attribute(:access_mode, Decidim::Assembly.access_modes[mode])
|
|
17
|
+
assembly.save!(validate: false)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def down
|
|
23
|
+
raise ActiveRecord::IrreversibleMigration
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
class MoveAnnouncementToContentBlockOnAssemblies < ActiveRecord::Migration[7.2]
|
|
4
|
+
class Assembly < ApplicationRecord
|
|
5
|
+
self.table_name = "decidim_assemblies"
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class ContentBlock < ApplicationRecord
|
|
9
|
+
self.table_name = "decidim_content_blocks"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def up
|
|
13
|
+
Assembly.find_each do |assembly|
|
|
14
|
+
announcement = assembly.announcement
|
|
15
|
+
next if announcement.blank? || announcement == {}
|
|
16
|
+
|
|
17
|
+
content_block = ContentBlock.find_or_initialize_by(
|
|
18
|
+
decidim_organization_id: assembly.decidim_organization_id,
|
|
19
|
+
scope_name: :assembly_homepage,
|
|
20
|
+
manifest_name: :announcement,
|
|
21
|
+
scoped_resource_id: assembly.id
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
settings = announcement.each_with_object({}) do |(locale, value), acc|
|
|
25
|
+
next if locale.to_s == "machine_translations"
|
|
26
|
+
|
|
27
|
+
acc["announcement_#{locale}"] = value
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
next if settings.empty?
|
|
31
|
+
|
|
32
|
+
content_block.settings = (content_block.settings || {}).merge(settings)
|
|
33
|
+
content_block.save!
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def down
|
|
38
|
+
raise ActiveRecord::IrreversibleMigration
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -7,10 +7,10 @@ class AddParentChildRelationToAssemblies < ActiveRecord::Migration[5.1]
|
|
|
7
7
|
# required so that test suite works in ci env
|
|
8
8
|
enable_extension "ltree"
|
|
9
9
|
rescue StandardError
|
|
10
|
-
raise
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
raise <<~MSG.squish
|
|
11
|
+
Decidim requires the ltree extension to be enabled in your PostgreSQL.
|
|
12
|
+
You can do so by running `CREATE EXTENSION IF NOT EXISTS "ltree";` on the current DB as a PostgreSQL
|
|
13
|
+
super user.
|
|
14
14
|
MSG
|
|
15
15
|
end
|
|
16
16
|
end
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
class ResetNegativeChildrenCountCounters < ActiveRecord::Migration[5.2]
|
|
4
|
+
class Assembly < ApplicationRecord
|
|
5
|
+
self.table_name = :decidim_assemblies
|
|
6
|
+
end
|
|
7
|
+
|
|
4
8
|
def change
|
|
5
|
-
ids =
|
|
6
|
-
ids.each { |id|
|
|
9
|
+
ids = Assembly.unscoped.where("children_count < 0").pluck(:id)
|
|
10
|
+
ids.each { |id| Assembly.unscoped.reset_counters(id, :children_count) }
|
|
7
11
|
end
|
|
8
12
|
end
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
class AddFollowableCounterCacheToAssemblies < ActiveRecord::Migration[5.2]
|
|
4
|
+
class Assembly < ApplicationRecord
|
|
5
|
+
self.table_name = :decidim_assemblies
|
|
6
|
+
end
|
|
7
|
+
|
|
4
8
|
def change
|
|
5
9
|
add_column :decidim_assemblies, :follows_count, :integer, null: false, default: 0, index: true
|
|
6
10
|
|
|
7
11
|
reversible do |dir|
|
|
8
12
|
dir.up do
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
Assembly.reset_column_information
|
|
14
|
+
Assembly.unscoped.find_each do |record|
|
|
11
15
|
record.class.reset_counters(record.id, :follows)
|
|
12
16
|
end
|
|
13
17
|
end
|