decidim-assemblies 0.27.5 → 0.27.7
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/assembly_m_cell.rb +1 -1
- data/app/cells/decidim/assemblies/content_blocks/highlighted_assemblies/show.erb +1 -1
- data/app/controllers/decidim/assemblies/widgets_controller.rb +11 -1
- data/app/events/decidim/assemblies/create_assembly_member_event.rb +1 -1
- data/app/events/decidim/role_assigned_to_assembly_event.rb +0 -5
- data/app/helpers/decidim/assemblies/assemblies_helper.rb +1 -1
- data/app/permissions/decidim/assemblies/permissions.rb +12 -0
- data/config/locales/ar.yml +1 -1
- data/config/locales/bg.yml +462 -0
- data/config/locales/ca.yml +3 -3
- data/config/locales/de.yml +2 -2
- data/config/locales/el.yml +0 -1
- data/config/locales/es.yml +3 -3
- data/config/locales/eu.yml +1 -1
- data/config/locales/fi-plain.yml +1 -1
- data/config/locales/gl.yml +0 -1
- data/config/locales/he-IL.yml +110 -0
- data/config/locales/hu.yml +2 -0
- data/config/locales/id-ID.yml +1 -2
- data/config/locales/is-IS.yml +0 -1
- data/config/locales/it.yml +0 -1
- data/config/locales/ko.yml +92 -0
- data/config/locales/lb.yml +1 -1
- data/config/locales/lt.yml +0 -1
- data/config/locales/lv.yml +0 -1
- data/config/locales/nl.yml +0 -1
- data/config/locales/no.yml +0 -1
- data/config/locales/pl.yml +4 -0
- data/config/locales/pt-BR.yml +71 -59
- data/config/locales/pt.yml +0 -1
- data/config/locales/ro-RO.yml +0 -1
- data/config/locales/sk.yml +1 -0
- data/config/locales/sl.yml +0 -1
- data/config/locales/sq-AL.yml +364 -0
- data/config/locales/sv.yml +0 -1
- data/config/locales/tr-TR.yml +1 -2
- data/config/locales/zh-CN.yml +0 -1
- data/config/locales/zh-TW.yml +1 -2
- data/decidim-assemblies.gemspec +32 -0
- data/lib/decidim/assemblies/admin_engine.rb +1 -1
- data/lib/decidim/assemblies/test/factories.rb +46 -27
- data/lib/decidim/assemblies/version.rb +1 -1
- metadata +17 -16
- data/config/environment.rb +0 -3
data/config/locales/sq-AL.yml
CHANGED
@@ -1 +1,365 @@
|
|
1
|
+
---
|
1
2
|
sq:
|
3
|
+
activemodel:
|
4
|
+
attributes:
|
5
|
+
assemblies_type:
|
6
|
+
title: Titulli
|
7
|
+
assembly:
|
8
|
+
announcement: Njoftim
|
9
|
+
area_id: Zona
|
10
|
+
assembly_type: Lloji i asamblesë
|
11
|
+
assembly_type_other: Lloji i asamblesë tjetër
|
12
|
+
banner_image: Imazhi ballor
|
13
|
+
closing_date: Data e mbylljes
|
14
|
+
closing_date_reason: Arsyeja e datës së mbylljes
|
15
|
+
composition: Përbërja
|
16
|
+
copy_categories: Kopjo kategoritë
|
17
|
+
copy_components: Kopjo komponentet
|
18
|
+
copy_features: Kopjo veçoritë
|
19
|
+
created_by: Krijuar nga
|
20
|
+
created_by_other: Krijuar nga tjetër
|
21
|
+
creation_date: Data e krijimit
|
22
|
+
decidim_area_id: Zona
|
23
|
+
decidim_assemblies_type_id: Lloji i asamblesë
|
24
|
+
decidim_scope_id: Qëllimi
|
25
|
+
description: Përshkrimi
|
26
|
+
developer_group: Grupi promovues
|
27
|
+
document: Dokument
|
28
|
+
domain: Domeini
|
29
|
+
duration: Kohëzgjatja
|
30
|
+
facebook: Facebook
|
31
|
+
github: Github
|
32
|
+
hashtag: Hashtag
|
33
|
+
hero_image: Imazhi kryesor
|
34
|
+
import_attachments: Importoni bashkëngjitjet
|
35
|
+
import_categories: Importoni kategoritë
|
36
|
+
import_components: Importoni përbërësit
|
37
|
+
included_at: Përfshirë në
|
38
|
+
instagram: Instagram
|
39
|
+
internal_organisation: Organizatë e brëndshme
|
40
|
+
is_transparent: Është transparente
|
41
|
+
local_area: Zona e organizatës
|
42
|
+
parent_id: Asambleja e përgjithshme
|
43
|
+
participatory_processes_ids: Procese pjesëmarrëse të përafërta
|
44
|
+
participatory_scope: Çfarë u vendos
|
45
|
+
participatory_structure: Si u vendos
|
46
|
+
private_space: Hapësirë private
|
47
|
+
promoted: Në pah
|
48
|
+
published_at: Publikuar në
|
49
|
+
purpose_of_action: Qëllimi i aksionit
|
50
|
+
scope_id: Qëllimi
|
51
|
+
scopes_enabled: Fushveprimet e aktivizuara
|
52
|
+
short_description: Përshkrim i shkurtër
|
53
|
+
show_statistics: Trego statistikat
|
54
|
+
slug: Identifikues URL-je
|
55
|
+
special_features: Karaktersitika të veçanta
|
56
|
+
subtitle: Nëntitull
|
57
|
+
target: Kush merr pjesë
|
58
|
+
title: Titulli
|
59
|
+
twitter: X
|
60
|
+
weight: Pozicioni në rradhë
|
61
|
+
youtube: YouTube
|
62
|
+
assembly_member:
|
63
|
+
birthday: Datëlindje
|
64
|
+
birthplace: Vendi i lindjes
|
65
|
+
ceased_date: Data e përfundimit
|
66
|
+
designation_date: Data e dezignimit
|
67
|
+
full_name: Emri i plotë
|
68
|
+
gender: Gjinia
|
69
|
+
non_user_avatar: Avatar
|
70
|
+
position: Pozicioni
|
71
|
+
user_id: Perdorues ose grup
|
72
|
+
weight: Pozicioni në rradhë
|
73
|
+
assembly_user_role:
|
74
|
+
email: Email
|
75
|
+
name: Emri
|
76
|
+
role: Roli
|
77
|
+
decidim:
|
78
|
+
admin:
|
79
|
+
actions:
|
80
|
+
import_assembly: Importo
|
81
|
+
new_assembly: Asamble e re
|
82
|
+
new_assembly_type: Tip i ri asambleje
|
83
|
+
assemblies:
|
84
|
+
create:
|
85
|
+
error: Ndodhi një gabim gjatë krijimit të asamblesë.
|
86
|
+
success: Asambleja u krijua me sukses.
|
87
|
+
edit:
|
88
|
+
update: Përditëso
|
89
|
+
index:
|
90
|
+
private: Private
|
91
|
+
public: Publike
|
92
|
+
published: E publikuar
|
93
|
+
new:
|
94
|
+
create: Krijo
|
95
|
+
title: Asamble e re
|
96
|
+
update:
|
97
|
+
error: Ndodhi një gabim gjatë përditësimit të asamblesë.
|
98
|
+
success: Asambleja u përditësua me sukses.
|
99
|
+
assemblies_copies:
|
100
|
+
create:
|
101
|
+
error: Ndodhi një gabim gjatë duplikimit të asamblesë.
|
102
|
+
success: Asambleja e duplikua me sukses.
|
103
|
+
assemblies_types:
|
104
|
+
create:
|
105
|
+
error: Ndodhi një gabim gjatë krijimit të tipit të ri të asamblesë.
|
106
|
+
success: Tipi i asamblesë u krijua me sukses.
|
107
|
+
destroy:
|
108
|
+
success: Tipi i asamblesë u fshi me sukses.
|
109
|
+
new:
|
110
|
+
create: Krijo
|
111
|
+
title: Tip i ri asambleje
|
112
|
+
update:
|
113
|
+
error: Ndodhi një gabim gjatë përditësimit të tipit të asamblesë.
|
114
|
+
success: Tipi i asamblesë u përditësua me sukses.
|
115
|
+
assembly_copies:
|
116
|
+
new:
|
117
|
+
copy: Kopjo
|
118
|
+
select: Zgjidh cilën të dhënë dëshiron të duplikosh
|
119
|
+
title: Dupliko asamblenë
|
120
|
+
assembly_imports:
|
121
|
+
create:
|
122
|
+
error: Ndodhi një gabim gjatë importimit të asamblesë.
|
123
|
+
success: Asambleja u importua me sukses.
|
124
|
+
new:
|
125
|
+
import: Importo
|
126
|
+
select: Zgjidh të dhënat që dëshiron të importosh
|
127
|
+
title: Importo asamblenë
|
128
|
+
assembly_members:
|
129
|
+
create:
|
130
|
+
error: Ndodhi një gabim gjatë shtimit të anëtarit të asamblesë.
|
131
|
+
success: Anëtari i asamblesl u krijua me sukses.
|
132
|
+
destroy:
|
133
|
+
success: Anëtari i asamblesë u fshi me sukses.
|
134
|
+
edit:
|
135
|
+
update: Përditëso
|
136
|
+
index:
|
137
|
+
assembly_members_title: Anëtarët e asamblesë
|
138
|
+
new:
|
139
|
+
create: Krijo
|
140
|
+
update:
|
141
|
+
error: Ndodhi një gabim gjatë përditësimit të anëtarit të asamblesë.
|
142
|
+
success: Anëtari i asamblesë u përditësuar me sukses.
|
143
|
+
assembly_publications:
|
144
|
+
create:
|
145
|
+
error: Ndodhi një gabim gjatë publikimit të asamblesë.
|
146
|
+
success: Asambleja u publikua me sukses.
|
147
|
+
destroy:
|
148
|
+
error: Ndodhi një gabim gjatë çpublikimit të asamblesë.
|
149
|
+
success: Asambleja u çpublikua me sukses.
|
150
|
+
assembly_user_roles:
|
151
|
+
create:
|
152
|
+
error: Ndodhi një gabim gjatë shtimit të administratorit të asamblesë.
|
153
|
+
success: Administratori i asamblesë u shtua me sukses.
|
154
|
+
destroy:
|
155
|
+
success: Administratori i asamblesë u hoq me sukses.
|
156
|
+
edit:
|
157
|
+
update: Përditëso
|
158
|
+
index:
|
159
|
+
assembly_admins_title: Administratorët e asamblesë
|
160
|
+
new:
|
161
|
+
create: Krijo
|
162
|
+
update:
|
163
|
+
error: Ndodhi një gabim gjatë përditësimit të administratorit të asamblesë.
|
164
|
+
success: Administratori i asamblesë u përditësua me sukses.
|
165
|
+
filters:
|
166
|
+
decidim_assemblies_type_id_eq:
|
167
|
+
label: Tipi i asamblesë
|
168
|
+
menu:
|
169
|
+
assemblies: Asambletë
|
170
|
+
assemblies_submenu:
|
171
|
+
assembly_admins: Administratorët e asamblesë
|
172
|
+
assembly_members: Anëtarët
|
173
|
+
attachment_collections: Skedarët
|
174
|
+
attachment_files: Skedat
|
175
|
+
attachments: Skedat e bashkëlidhura
|
176
|
+
categories: Kategoritë
|
177
|
+
components: Komponentet
|
178
|
+
moderations: Moderimet
|
179
|
+
private_users: Përdoruesit privatë
|
180
|
+
assemblies_types: Tipet e asambleve
|
181
|
+
models:
|
182
|
+
assemblies_types:
|
183
|
+
fields:
|
184
|
+
created_at: Krijuar më
|
185
|
+
title: Titulli
|
186
|
+
assembly:
|
187
|
+
fields:
|
188
|
+
created_at: Krijuar më
|
189
|
+
private: Private
|
190
|
+
promoted: Në pah
|
191
|
+
published: E publikuar
|
192
|
+
title: Titulli
|
193
|
+
name: Asambleja
|
194
|
+
assembly_member:
|
195
|
+
fields:
|
196
|
+
ceased_date: Data e përfundimit
|
197
|
+
designation_date: Data e dezignimit
|
198
|
+
full_name: Emri
|
199
|
+
position: Pozicioni
|
200
|
+
name: Anëtar
|
201
|
+
positions:
|
202
|
+
other: Tjetër
|
203
|
+
president: Presidenti/ja
|
204
|
+
secretary: Sekretari/ja
|
205
|
+
vice_president: Zëvendës presidenti/ja
|
206
|
+
assembly_user_role:
|
207
|
+
fields:
|
208
|
+
email: Email
|
209
|
+
name: Emri
|
210
|
+
role: Roli
|
211
|
+
name: Administratori/ja i/e asamblesë
|
212
|
+
roles:
|
213
|
+
admin: Administrator
|
214
|
+
collaborator: Bashkëpunëtor/e
|
215
|
+
moderator: Moderator/e
|
216
|
+
valuator: Vlerësues/e
|
217
|
+
titles:
|
218
|
+
assemblies: Asambletë
|
219
|
+
assemblies_types: Tipet e asambleve
|
220
|
+
admin_log:
|
221
|
+
assembly:
|
222
|
+
create: "%{user_name} krijoi asamblenë %{resource_name}"
|
223
|
+
duplicate: "%{user_name} duplikoi asamblenë %{resource_name}"
|
224
|
+
export: "%{user_name} eksportoi asamblenë %{resource_name}"
|
225
|
+
import: "%{user_name} importoi asamblenë %{resource_name}"
|
226
|
+
publish: "%{user_name} publikoi asamblenë %{resource_name}"
|
227
|
+
unpublish: "%{user_name} çpublikoi asamblenë %{resource_name}"
|
228
|
+
update: "%{user_name} përditësoi asamblenë %{resource_name}"
|
229
|
+
assembly_member:
|
230
|
+
create: "%{user_name} krijoi përdoruesin %{resource_name} në asamblenë %{space_name}"
|
231
|
+
delete: "%{user_name} hoqi përdoruesin %{resource_name} në asamblenë %{space_name}"
|
232
|
+
update: "%{user_name} përditësoi përdoruesin %{resource_name} në asamblenë %{space_name}"
|
233
|
+
assembly_setting:
|
234
|
+
update: "%{user_name} përditësoi konfigurimet e asamblesë"
|
235
|
+
assembly_type:
|
236
|
+
create: "%{user_name} krijoi tipin e asamblesë %{resource_name}"
|
237
|
+
delete: "%{user_name} hoqi tipin e asamblesë %{resource_name}"
|
238
|
+
publish: "%{user_name} publikoi tipin e asamblesë %{resource_name}"
|
239
|
+
unpublish: "%{user_name} çpublikoi tipin e asamblesë %{resource_name}"
|
240
|
+
update: "%{user_name} përditësoi tipin e asamblesë %{resource_name}"
|
241
|
+
assembly_user_role:
|
242
|
+
create: "%{user_name} ftoi %{resource_name} në asamblenë %{space_name}"
|
243
|
+
delete: "%{user_name} hoqi pjesëmarrësin %{resource_name} nga asambleja %{space_name}"
|
244
|
+
update: "%{user_name} ndryshoi rolin e %{resource_name} në asamblenë %{space_name}"
|
245
|
+
assemblies:
|
246
|
+
admin:
|
247
|
+
assemblies:
|
248
|
+
form:
|
249
|
+
announcement_help: Teksti që vendosni këtu do i shfaqet përdoruesit nën informacionin e asamblesë.
|
250
|
+
duration: Kohëzgjatja
|
251
|
+
duration_help: Nëse kohëzgjatja e asamblesë është e kufizuar, zgjidh datën e përfundimit. Përndryshe, do shfaqet si e papërcaktuar.
|
252
|
+
filters: Filtrat
|
253
|
+
images: Imazhet
|
254
|
+
included_at_help: Zgjidh datën e shtimit të asamblesë në platformë. Nuk ka pse të jetë e njejtë me datën e krijimit.
|
255
|
+
metadata: Metadata
|
256
|
+
other: Të tjera
|
257
|
+
select_a_created_by: Zgjidh krijuesin
|
258
|
+
select_an_area: Zgjidh një sektor
|
259
|
+
select_an_assembly_type: Zgjidh një tip asambleje
|
260
|
+
select_parent_assembly: Zgjidh asamblenë prind
|
261
|
+
slug_help: '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}'
|
262
|
+
social_handlers: Rrjete sociale
|
263
|
+
title: Informacion i përgjithshëm
|
264
|
+
visbility: Vizibiliteti
|
265
|
+
assemblies_settings:
|
266
|
+
edit:
|
267
|
+
update: Përditëso
|
268
|
+
assemblies_types:
|
269
|
+
form:
|
270
|
+
title: Modifiko tipin e asamblesë
|
271
|
+
assembly_copies:
|
272
|
+
form:
|
273
|
+
slug_help: '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}'
|
274
|
+
assembly_imports:
|
275
|
+
form:
|
276
|
+
slug_help: '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}'
|
277
|
+
assembly_members:
|
278
|
+
form:
|
279
|
+
existing_user: Pjesëmarrës ekzistues
|
280
|
+
explanation: 'Udhëzime për imazhin:'
|
281
|
+
non_user: Mospjesëmarrës
|
282
|
+
non_user_avatar_help: Duhet të marrësh pëlqimin e personit para se ta publikosh si anëtar.
|
283
|
+
select_a_position: Zgjidh një pozicion
|
284
|
+
select_user: Zgjidh një pjesëmarrës
|
285
|
+
user_type: Lloji i pjesëmarrësit
|
286
|
+
index:
|
287
|
+
filter:
|
288
|
+
ceased: Përfunduar
|
289
|
+
not_ceased: E papërfunduar
|
290
|
+
content_blocks:
|
291
|
+
highlighted_assemblies:
|
292
|
+
max_results: Numri maksimal i elementeve që do shfaqen
|
293
|
+
new_import:
|
294
|
+
accepted_types:
|
295
|
+
json: JSON
|
296
|
+
assemblies:
|
297
|
+
show:
|
298
|
+
title: Rreth asamblesë
|
299
|
+
assembly_members:
|
300
|
+
index:
|
301
|
+
members: Anëtarët
|
302
|
+
assembly_types:
|
303
|
+
commission: Komisioni
|
304
|
+
consultative_advisory: Këshilluese
|
305
|
+
executive: Ekzekutive
|
306
|
+
government: Qeverisja
|
307
|
+
others: Tjetër
|
308
|
+
participatory: Pjesëmarrëse
|
309
|
+
working_group: Grup pune
|
310
|
+
content_blocks:
|
311
|
+
highlighted_assemblies:
|
312
|
+
name: Asambletë në pah
|
313
|
+
created_by:
|
314
|
+
city_council: Këshilli bashkiak
|
315
|
+
others: Të tjerët
|
316
|
+
public: Publiku
|
317
|
+
filter:
|
318
|
+
all: Gjithë tipet
|
319
|
+
commission: Komisioni
|
320
|
+
consultative_advisory: Këshilluese
|
321
|
+
executive: Ekzekutive
|
322
|
+
government: Qeverisja
|
323
|
+
help: 'Shfaq:'
|
324
|
+
others: Të tjera
|
325
|
+
participatory: Pjesëmarrëse
|
326
|
+
working_group: Grup pune
|
327
|
+
index:
|
328
|
+
title: Asambletë
|
329
|
+
last_activity:
|
330
|
+
new_assembly: Asamble e re
|
331
|
+
pages:
|
332
|
+
home:
|
333
|
+
highlighted_assemblies:
|
334
|
+
active_assemblies: Asambletë aktive
|
335
|
+
see_all_assemblies: Shiko gjithë asambletë
|
336
|
+
user_profile:
|
337
|
+
member_of:
|
338
|
+
member_of: Anëtar i
|
339
|
+
show:
|
340
|
+
area: Zona
|
341
|
+
assembly_type: Tipi i asamblesë
|
342
|
+
children: Asambletë
|
343
|
+
closing_date: Data e mbylljes
|
344
|
+
composition: Përbërja
|
345
|
+
created_by: Krijuar nga
|
346
|
+
creation_date: Data e krijimit
|
347
|
+
developer_group: Grupi promovues
|
348
|
+
duration: Kohëzgjatja
|
349
|
+
included_at: Përfshirë në
|
350
|
+
indefinite_duration: E pacaktuar
|
351
|
+
internal_organisation: Organizatë e brëndshme
|
352
|
+
local_area: Zona e organizatës
|
353
|
+
participatory_scope: Çfarë u vendos
|
354
|
+
participatory_structure: Si u vendos
|
355
|
+
private_space: Kjo është asamble private
|
356
|
+
purpose_of_action: Qëllimi i aksionit
|
357
|
+
related_participatory_processes: Procese pjesëmarrëse të përafërta
|
358
|
+
scope: Qëllimi
|
359
|
+
social_networks_title: Vizito asamblenë në
|
360
|
+
target: Kush merr pjesë
|
361
|
+
assembly_members:
|
362
|
+
assembly_member:
|
363
|
+
designated_on: Caktuar më
|
364
|
+
index:
|
365
|
+
title: Anëtarët
|
data/config/locales/sv.yml
CHANGED
data/config/locales/tr-TR.yml
CHANGED
@@ -286,7 +286,6 @@ tr:
|
|
286
286
|
select_parent_assembly: Bağlı olduğu kurulu seçin
|
287
287
|
social_handlers: Sosyal
|
288
288
|
title: Genel bilgi
|
289
|
-
visbility: görünürlük
|
290
289
|
assemblies_settings:
|
291
290
|
edit:
|
292
291
|
update: Güncelle
|
@@ -377,7 +376,7 @@ tr:
|
|
377
376
|
purpose_of_action: Eylem amacı
|
378
377
|
read_less: Daha az oku
|
379
378
|
read_more: Daha fazla oku
|
380
|
-
related_participatory_processes: İlgili
|
379
|
+
related_participatory_processes: İlgili Katılımcı süreçler
|
381
380
|
scope: kapsam
|
382
381
|
social_networks: Sosyal ağlar
|
383
382
|
target: Katılanlar
|
data/config/locales/zh-CN.yml
CHANGED
data/config/locales/zh-TW.yml
CHANGED
@@ -287,7 +287,6 @@ zh-TW:
|
|
287
287
|
select_parent_assembly: 選擇父組件
|
288
288
|
social_handlers: 社群
|
289
289
|
title: 基本資訊
|
290
|
-
visbility: 可見度
|
291
290
|
assemblies_settings:
|
292
291
|
edit:
|
293
292
|
update: 更新
|
@@ -384,7 +383,7 @@ zh-TW:
|
|
384
383
|
purpose_of_action: 行動目的
|
385
384
|
read_less: 閱讀減少
|
386
385
|
read_more: 閱讀變多
|
387
|
-
related_participatory_processes:
|
386
|
+
related_participatory_processes: 相關參與程序
|
388
387
|
scope: 範圍
|
389
388
|
social_networks: 社群網路
|
390
389
|
social_networks_title: 訪問大會
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
4
|
+
|
5
|
+
require "decidim/assemblies/version"
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.version = Decidim::Assemblies.version
|
9
|
+
s.authors = ["Josep Jaume Rey Peroy", "Marc Riera Casals", "Oriol Gual Oliva"]
|
10
|
+
s.email = ["josepjaume@gmail.com", "mrc2407@gmail.com", "oriolgual@gmail.com"]
|
11
|
+
s.license = "AGPL-3.0"
|
12
|
+
s.homepage = "https://github.com/decidim/decidim"
|
13
|
+
s.required_ruby_version = "~> 3.0.0"
|
14
|
+
|
15
|
+
s.name = "decidim-assemblies"
|
16
|
+
s.summary = "Decidim assemblies module"
|
17
|
+
s.description = "Assemblies component for decidim."
|
18
|
+
|
19
|
+
s.files = Dir.chdir(__dir__) do
|
20
|
+
`git ls-files -z`.split("\x0").select do |f|
|
21
|
+
(File.expand_path(f) == __FILE__) ||
|
22
|
+
f.start_with?(*%w(app/ config/ db/ lib/ Rakefile README.md))
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
s.add_dependency "decidim-core", Decidim::Assemblies.version
|
27
|
+
|
28
|
+
s.add_development_dependency "decidim-admin", Decidim::Assemblies.version
|
29
|
+
s.add_development_dependency "decidim-dev", Decidim::Assemblies.version
|
30
|
+
s.add_development_dependency "decidim-meetings", Decidim::Assemblies.version
|
31
|
+
s.add_development_dependency "decidim-proposals", Decidim::Assemblies.version
|
32
|
+
end
|
@@ -128,7 +128,7 @@ module Decidim
|
|
128
128
|
initializer "decidim_assemblies.admin_assemblies_components_menu" do
|
129
129
|
Decidim.menu :admin_assemblies_components_menu do |menu|
|
130
130
|
current_participatory_space.components.each do |component|
|
131
|
-
caption =
|
131
|
+
caption = decidim_escape_translated(component.name)
|
132
132
|
if component.primary_stat.present?
|
133
133
|
caption += content_tag(:span, component.primary_stat, class: component.primary_stat.zero? ? "component-counter component-counter--off" : "component-counter")
|
134
134
|
end
|
@@ -14,50 +14,56 @@ FactoryBot.define do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
factory :assemblies_type, class: "Decidim::AssembliesType" do
|
17
|
-
|
17
|
+
transient do
|
18
|
+
skip_injection { false }
|
19
|
+
end
|
20
|
+
title { generate_localized_title(:assemblies_type_title, skip_injection: skip_injection) }
|
18
21
|
organization
|
19
22
|
end
|
20
23
|
|
21
24
|
factory :assembly, class: "Decidim::Assembly" do
|
22
|
-
|
25
|
+
transient do
|
26
|
+
skip_injection { false }
|
27
|
+
end
|
28
|
+
title { generate_localized_title(:assembly_title, skip_injection: skip_injection) }
|
23
29
|
slug { generate(:assembly_slug) }
|
24
|
-
subtitle { generate_localized_title }
|
25
|
-
short_description {
|
26
|
-
description {
|
30
|
+
subtitle { generate_localized_title(:assembly_subtitle, skip_injection: skip_injection) }
|
31
|
+
short_description { generate_localized_description(:assembly_short_description, skip_injection: skip_injection) }
|
32
|
+
description { generate_localized_description(:assembly_description, skip_injection: skip_injection) }
|
27
33
|
organization
|
28
34
|
hero_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") } # Keep after organization
|
29
35
|
banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") } # Keep after organization
|
30
36
|
published_at { Time.current }
|
31
|
-
meta_scope {
|
32
|
-
developer_group { generate_localized_title }
|
33
|
-
local_area { generate_localized_title }
|
34
|
-
target { generate_localized_title }
|
35
|
-
participatory_scope { generate_localized_title }
|
36
|
-
participatory_structure { generate_localized_title }
|
37
|
+
meta_scope { generate_localized_word(:assembly_meta_scope, skip_injection: skip_injection) }
|
38
|
+
developer_group { generate_localized_title(:assembly_developer_group, skip_injection: skip_injection) }
|
39
|
+
local_area { generate_localized_title(:assembly_local_area, skip_injection: skip_injection) }
|
40
|
+
target { generate_localized_title(:assembly_target, skip_injection: skip_injection) }
|
41
|
+
participatory_scope { generate_localized_title(:assembly_participatory_scope, skip_injection: skip_injection) }
|
42
|
+
participatory_structure { generate_localized_title(:assembly_participatory_structure, skip_injection: skip_injection) }
|
37
43
|
show_statistics { true }
|
38
44
|
private_space { false }
|
39
|
-
purpose_of_action {
|
40
|
-
composition {
|
45
|
+
purpose_of_action { generate_localized_description(:assembly_purpose_of_action, skip_injection: skip_injection) }
|
46
|
+
composition { generate_localized_description(:assembly_composition, skip_injection: skip_injection) }
|
41
47
|
creation_date { 1.month.ago }
|
42
48
|
created_by { "others" }
|
43
|
-
created_by_other {
|
49
|
+
created_by_other { generate_localized_word(:assembly_created_by_other, skip_injection: skip_injection) }
|
44
50
|
duration { 2.months.from_now.at_midnight }
|
45
51
|
included_at { 1.month.ago }
|
46
52
|
closing_date { 2.months.from_now.at_midnight }
|
47
|
-
closing_date_reason {
|
48
|
-
internal_organisation {
|
53
|
+
closing_date_reason { generate_localized_description(:assembly_closing_date_reason, skip_injection: skip_injection) }
|
54
|
+
internal_organisation { generate_localized_description(:assembly_internal_organisation, skip_injection: skip_injection) }
|
49
55
|
is_transparent { true }
|
50
|
-
special_features {
|
56
|
+
special_features { generate_localized_description(:assembly_special_features, skip_injection: skip_injection) }
|
51
57
|
twitter_handler { "others" }
|
52
58
|
facebook_handler { "others" }
|
53
59
|
instagram_handler { "others" }
|
54
60
|
youtube_handler { "others" }
|
55
61
|
github_handler { "others" }
|
56
62
|
weight { 1 }
|
57
|
-
announcement { generate_localized_title }
|
63
|
+
announcement { generate_localized_title(:assembly_announcement, skip_injection: skip_injection) }
|
58
64
|
|
59
65
|
trait :with_type do
|
60
|
-
assembly_type { create :assemblies_type, organization: organization }
|
66
|
+
assembly_type { create :assemblies_type, organization: organization, skip_injection: skip_injection }
|
61
67
|
end
|
62
68
|
|
63
69
|
trait :promoted do
|
@@ -73,7 +79,7 @@ FactoryBot.define do
|
|
73
79
|
end
|
74
80
|
|
75
81
|
trait :with_parent do
|
76
|
-
parent { create :assembly, organization: organization }
|
82
|
+
parent { create :assembly, organization: organization, skip_injection: skip_injection }
|
77
83
|
end
|
78
84
|
|
79
85
|
trait :public do
|
@@ -94,13 +100,17 @@ FactoryBot.define do
|
|
94
100
|
end
|
95
101
|
|
96
102
|
factory :assembly_user_role, class: "Decidim::AssemblyUserRole" do
|
103
|
+
transient do
|
104
|
+
skip_injection { false }
|
105
|
+
end
|
97
106
|
user
|
98
|
-
assembly { create :assembly, organization: user.organization }
|
107
|
+
assembly { create :assembly, organization: user.organization, skip_injection: skip_injection }
|
99
108
|
role { "admin" }
|
100
109
|
end
|
101
110
|
|
102
111
|
factory :assembly_admin, parent: :user, class: "Decidim::User" do
|
103
112
|
transient do
|
113
|
+
skip_injection { false }
|
104
114
|
assembly { create(:assembly) }
|
105
115
|
end
|
106
116
|
|
@@ -111,12 +121,14 @@ FactoryBot.define do
|
|
111
121
|
create :assembly_user_role,
|
112
122
|
user: user,
|
113
123
|
assembly: evaluator.assembly,
|
114
|
-
role: :admin
|
124
|
+
role: :admin,
|
125
|
+
skip_injection: evaluator.skip_injection
|
115
126
|
end
|
116
127
|
end
|
117
128
|
|
118
129
|
factory :assembly_moderator, parent: :user, class: "Decidim::User" do
|
119
130
|
transient do
|
131
|
+
skip_injection { false }
|
120
132
|
assembly { create(:assembly) }
|
121
133
|
end
|
122
134
|
|
@@ -127,12 +139,14 @@ FactoryBot.define do
|
|
127
139
|
create :assembly_user_role,
|
128
140
|
user: user,
|
129
141
|
assembly: evaluator.assembly,
|
130
|
-
role: :moderator
|
142
|
+
role: :moderator,
|
143
|
+
skip_injection: evaluator.skip_injection
|
131
144
|
end
|
132
145
|
end
|
133
146
|
|
134
147
|
factory :assembly_collaborator, parent: :user, class: "Decidim::User" do
|
135
148
|
transient do
|
149
|
+
skip_injection { false }
|
136
150
|
assembly { create(:assembly) }
|
137
151
|
end
|
138
152
|
|
@@ -143,12 +157,14 @@ FactoryBot.define do
|
|
143
157
|
create :assembly_user_role,
|
144
158
|
user: user,
|
145
159
|
assembly: evaluator.assembly,
|
160
|
+
skip_injection: evaluator.skip_injection,
|
146
161
|
role: :collaborator
|
147
162
|
end
|
148
163
|
end
|
149
164
|
|
150
165
|
factory :assembly_valuator, parent: :user, class: "Decidim::User" do
|
151
166
|
transient do
|
167
|
+
skip_injection { false }
|
152
168
|
assembly { create(:assembly) }
|
153
169
|
end
|
154
170
|
|
@@ -159,13 +175,16 @@ FactoryBot.define do
|
|
159
175
|
create :assembly_user_role,
|
160
176
|
user: user,
|
161
177
|
assembly: evaluator.assembly,
|
162
|
-
role: :valuator
|
178
|
+
role: :valuator,
|
179
|
+
skip_injection: evaluator.skip_injection
|
163
180
|
end
|
164
181
|
end
|
165
182
|
|
166
183
|
factory :assembly_member, class: "Decidim::AssemblyMember" do
|
167
|
-
|
168
|
-
|
184
|
+
transient do
|
185
|
+
skip_injection { false }
|
186
|
+
end
|
187
|
+
assembly { create(:assembly, skip_injection: skip_injection) }
|
169
188
|
full_name { Faker::Name.name }
|
170
189
|
gender { Faker::Lorem.word }
|
171
190
|
birthday { Faker::Date.birthday(min_age: 18, max_age: 65) }
|
@@ -178,7 +197,7 @@ FactoryBot.define do
|
|
178
197
|
end
|
179
198
|
|
180
199
|
trait :with_user do
|
181
|
-
user { create(:user, organization: assembly.organization) }
|
200
|
+
user { create(:user, organization: assembly.organization, skip_injection: skip_injection) }
|
182
201
|
end
|
183
202
|
end
|
184
203
|
end
|