decidim-assemblies 0.26.4 → 0.27.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/assemblies/content_blocks/highlighted_assemblies/show.erb +2 -2
- data/app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_cell.rb +5 -5
- data/app/commands/decidim/assemblies/admin/copy_assembly.rb +10 -7
- data/app/commands/decidim/assemblies/admin/create_assemblies_type.rb +1 -1
- data/app/commands/decidim/assemblies/admin/create_assembly.rb +1 -1
- data/app/commands/decidim/assemblies/admin/create_assembly_member.rb +12 -12
- data/app/commands/decidim/assemblies/admin/destroy_assemblies_type.rb +1 -1
- data/app/commands/decidim/assemblies/admin/destroy_assembly_admin.rb +1 -1
- data/app/commands/decidim/assemblies/admin/destroy_assembly_member.rb +1 -1
- data/app/commands/decidim/assemblies/admin/import_assembly.rb +11 -7
- data/app/commands/decidim/assemblies/admin/notify_role_assigned_to_assembly.rb +1 -1
- data/app/commands/decidim/assemblies/admin/publish_assembly.rb +1 -1
- data/app/commands/decidim/assemblies/admin/unpublish_assembly.rb +1 -1
- data/app/commands/decidim/assemblies/admin/update_assemblies_setting.rb +1 -1
- data/app/commands/decidim/assemblies/admin/update_assemblies_type.rb +1 -1
- data/app/commands/decidim/assemblies/admin/update_assembly.rb +1 -1
- data/app/commands/decidim/assemblies/admin/update_assembly_member.rb +11 -11
- data/app/controllers/decidim/assemblies/admin/assembly_copies_controller.rb +1 -1
- data/app/controllers/decidim/assemblies/admin/assembly_imports_controller.rb +1 -1
- data/app/controllers/decidim/assemblies/admin/reminders_controller.rb +14 -0
- data/app/controllers/decidim/assemblies/assemblies_controller.rb +6 -6
- data/app/events/decidim/role_assigned_to_assembly_event.rb +1 -1
- data/app/forms/decidim/assemblies/admin/assembly_import_form.rb +5 -6
- data/app/helpers/decidim/assemblies/filter_assemblies_helper.rb +10 -6
- data/app/models/decidim/assembly.rb +10 -4
- data/app/packs/src/decidim/assemblies/orgchart.js +52 -46
- data/app/permissions/decidim/assemblies/permissions.rb +45 -11
- data/app/presenters/decidim/assemblies/admin_log/assembly_presenter.rb +1 -1
- data/app/presenters/decidim/assemblies/assembly_stats_presenter.rb +4 -1
- data/app/presenters/decidim/assembly_member_presenter.rb +3 -5
- data/app/queries/decidim/assemblies/admin/admin_users.rb +1 -1
- data/app/queries/decidim/assemblies/admin/assembly_members.rb +1 -1
- data/app/queries/decidim/assemblies/assemblies_with_user_role.rb +1 -1
- data/app/queries/decidim/assemblies/filtered_assemblies.rb +1 -1
- data/app/queries/decidim/assemblies/organization_assemblies.rb +1 -1
- data/app/queries/decidim/assemblies/organization_prioritized_assemblies.rb +2 -2
- data/app/queries/decidim/assemblies/organization_published_assemblies.rb +2 -2
- data/app/queries/decidim/assemblies/parent_assemblies.rb +1 -1
- data/app/queries/decidim/assemblies/parent_assemblies_for_select.rb +1 -1
- data/app/queries/decidim/assemblies/prioritized_assemblies.rb +1 -1
- data/app/queries/decidim/assemblies/promoted_assemblies.rb +1 -1
- data/app/queries/decidim/assemblies/published_assemblies.rb +1 -1
- data/app/queries/decidim/assemblies/visible_assemblies.rb +1 -1
- data/app/serializers/decidim/assemblies/assembly_importer.rb +3 -4
- data/app/views/decidim/assemblies/_filter_by_type.html.erb +1 -1
- data/app/views/decidim/assemblies/admin/assemblies/index.html.erb +2 -2
- data/app/views/decidim/assemblies/assemblies/_promoted_assembly.html.erb +1 -1
- data/app/views/decidim/assemblies/assemblies/index.html.erb +3 -1
- data/app/views/decidim/assemblies/assemblies/show.html.erb +3 -1
- data/app/views/layouts/decidim/_assembly_header.html.erb +1 -1
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +1 -1
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +6 -2
- data/config/locales/cs.yml +14 -10
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +6 -2
- data/config/locales/el.yml +1 -7
- data/config/locales/en.yml +5 -2
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +6 -2
- data/config/locales/es-PY.yml +6 -2
- data/config/locales/es.yml +6 -2
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +1 -7
- data/config/locales/fi-plain.yml +6 -2
- data/config/locales/fi.yml +6 -2
- data/config/locales/fr-CA.yml +6 -2
- data/config/locales/fr.yml +11 -7
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +2 -7
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +3 -44
- data/config/locales/id-ID.yml +1 -1
- data/config/locales/is-IS.yml +2 -3
- data/config/locales/it.yml +1 -7
- data/config/locales/ja.yml +6 -2
- data/config/locales/ko.yml +1 -0
- data/config/locales/lb.yml +1 -6
- data/config/locales/lt.yml +1 -469
- data/config/locales/lv.yml +1 -1
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +18 -29
- data/config/locales/no.yml +1 -7
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +2 -2
- data/config/locales/pt-BR.yml +2 -8
- data/config/locales/pt.yml +1 -7
- data/config/locales/ro-RO.yml +1 -11
- data/config/locales/ru.yml +1 -3
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk.yml +1 -2
- data/config/locales/sl.yml +1 -8
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +1 -0
- data/config/locales/sv.yml +2 -7
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +1 -7
- data/config/locales/uk.yml +1 -3
- data/config/locales/val-ES.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +1 -7
- data/config/locales/zh-TW.yml +1 -0
- data/lib/decidim/assemblies/admin_engine.rb +5 -4
- data/lib/decidim/assemblies/participatory_space.rb +9 -9
- data/lib/decidim/assemblies/version.rb +1 -1
- metadata +13 -16
- data/app/services/decidim/assemblies/assembly_search.rb +0 -18
- data/config/locales/gn-PY.yml +0 -1
- data/config/locales/lo-LA.yml +0 -1
- data/config/locales/oc-FR.yml +0 -1
data/config/locales/pl.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
pl:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -73,7 +74,7 @@ pl:
|
|
73
74
|
assembly:
|
74
75
|
attributes:
|
75
76
|
document:
|
76
|
-
|
77
|
+
allowed_file_content_types: 'Nieprawidłowy typ dokumentu. Akceptowane formaty to: %{types}'
|
77
78
|
activerecord:
|
78
79
|
models:
|
79
80
|
decidim/assembly:
|
@@ -276,7 +277,6 @@ pl:
|
|
276
277
|
duration_help: Jeśli czas trwania tego zespołu jest ograniczony, wybierz datę końcową. W przeciwnym razie pojawi się jako nieokreślony.
|
277
278
|
filters: Filtry
|
278
279
|
images: Obrazy
|
279
|
-
included_at_help: Wybierz datę dodania tego zespołu do Decidim. To niekoniecznie musi być ta sama data co data utworzenia.
|
280
280
|
metadata: Metadane
|
281
281
|
other: Inny
|
282
282
|
select_a_created_by: Wybierz utworzony przez
|
data/config/locales/pt-BR.yml
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
---
|
2
|
+
pt:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
4
5
|
assemblies_setting:
|
@@ -67,12 +68,6 @@ pt-BR:
|
|
67
68
|
email: E-mail
|
68
69
|
name: Nome
|
69
70
|
role: Cargo
|
70
|
-
errors:
|
71
|
-
models:
|
72
|
-
assembly:
|
73
|
-
attributes:
|
74
|
-
document:
|
75
|
-
invalid_document_type: 'Tipo de documento inválido. Formatos aceitos são: %{valid_mime_types}'
|
76
71
|
activerecord:
|
77
72
|
models:
|
78
73
|
decidim/assembly:
|
@@ -266,7 +261,6 @@ pt-BR:
|
|
266
261
|
duration_help: Se a duração desse assembly for limitada, selecione a data final. Caso contrário, aparecerá como indefinido.
|
267
262
|
filters: Filtros
|
268
263
|
images: Imagens
|
269
|
-
included_at_help: Selecione a data em que esta montagem foi adicionada ao Decidim. Não precisa necessariamente ser o mesmo que a data de criação.
|
270
264
|
metadata: Metadados
|
271
265
|
other: De outros
|
272
266
|
select_a_created_by: Selecione um criado por
|
data/config/locales/pt.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
pt:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -68,12 +69,6 @@ pt:
|
|
68
69
|
email: E-mail
|
69
70
|
name: Nome
|
70
71
|
role: Função
|
71
|
-
errors:
|
72
|
-
models:
|
73
|
-
assembly:
|
74
|
-
attributes:
|
75
|
-
document:
|
76
|
-
invalid_document_type: 'Tipo de documento inválido. Os formatos aceites são: %{valid_mime_types}'
|
77
72
|
activerecord:
|
78
73
|
models:
|
79
74
|
decidim/assembly:
|
@@ -270,7 +265,6 @@ pt:
|
|
270
265
|
duration_help: Se a duração desta reunião for limitada, selecione a data final. Caso contrário, aparecerá como indefinida.
|
271
266
|
filters: Filtros
|
272
267
|
images: Imagens
|
273
|
-
included_at_help: Selecione a data em que esta reunião foi adicionada ao Decidim. Não necessita necessariamente de ser a mesma que a data de criação.
|
274
268
|
metadata: Metadados
|
275
269
|
other: Outros
|
276
270
|
select_a_created_by: Selecione um criado por
|
data/config/locales/ro-RO.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
ro:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -68,12 +69,6 @@ ro:
|
|
68
69
|
email: E-mail
|
69
70
|
name: Nume
|
70
71
|
role: Rol
|
71
|
-
errors:
|
72
|
-
models:
|
73
|
-
assembly:
|
74
|
-
attributes:
|
75
|
-
document:
|
76
|
-
invalid_document_type: 'Tip de document invalid. Formatele acceptate sunt: %{valid_mime_types}'
|
77
72
|
activerecord:
|
78
73
|
models:
|
79
74
|
decidim/assembly:
|
@@ -273,7 +268,6 @@ ro:
|
|
273
268
|
duration_help: În cazul în care durata acestui grup de lucru este limitată, selectaţi data de încheiere. În caz contrar, va apărea ca nelimitată.
|
274
269
|
filters: Filtre
|
275
270
|
images: Imagini
|
276
|
-
included_at_help: Selectați data la care aceast grup de lucru a fost adăugat în Decidem. Nu trebuie să fie neapărat aceeași dată cu data creării.
|
277
271
|
metadata: Metadate
|
278
272
|
other: Altul
|
279
273
|
select_a_created_by: Selectați după persoana care a creat
|
@@ -322,9 +316,6 @@ ro:
|
|
322
316
|
new_import:
|
323
317
|
accepted_types:
|
324
318
|
json: JSON
|
325
|
-
assemblies:
|
326
|
-
show:
|
327
|
-
title: Despre această adunare
|
328
319
|
assembly_members:
|
329
320
|
index:
|
330
321
|
members: Membri
|
@@ -392,7 +383,6 @@ ro:
|
|
392
383
|
related_participatory_processes: Procese participative asociate
|
393
384
|
scope: Domeniu de interes
|
394
385
|
social_networks: Rețele sociale
|
395
|
-
social_networks_title: Vizitează adunarea pe
|
396
386
|
target: Cine participă
|
397
387
|
assembly_members:
|
398
388
|
assembly_member:
|
data/config/locales/ru.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
ru:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -222,7 +223,6 @@ ru:
|
|
222
223
|
assemblies:
|
223
224
|
form:
|
224
225
|
duration_help: Если длительность этого собрания ограничена, выберите дату окончания. В противном случае оно будет отображаться как бессрочное.
|
225
|
-
included_at_help: Выберите дату, когда это собрание было добавлено в Десидим. Она не обязательно должна совпадать с датой создания.
|
226
226
|
select_a_created_by: Укажите, кем создано
|
227
227
|
select_an_area: Выберите участок
|
228
228
|
select_an_assembly_type: Выберите вид собрания
|
@@ -269,8 +269,6 @@ ru:
|
|
269
269
|
public: Граждане
|
270
270
|
index:
|
271
271
|
title: Собрания
|
272
|
-
last_activity:
|
273
|
-
new_assembly: Добавить собрание
|
274
272
|
pages:
|
275
273
|
home:
|
276
274
|
highlighted_assemblies:
|
data/config/locales/si-LK.yml
CHANGED
data/config/locales/sk.yml
CHANGED
data/config/locales/sl.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
sl:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -59,12 +60,6 @@ sl:
|
|
59
60
|
email: Email
|
60
61
|
name: Ime
|
61
62
|
role: Vloga
|
62
|
-
errors:
|
63
|
-
models:
|
64
|
-
assembly:
|
65
|
-
attributes:
|
66
|
-
document:
|
67
|
-
invalid_document_type: 'Neveljavna vrsta dokumenta. Sprejemljive oblike so: %{valid_mime_types}'
|
68
63
|
activerecord:
|
69
64
|
models:
|
70
65
|
decidim/assembly:
|
@@ -210,8 +205,6 @@ sl:
|
|
210
205
|
commission: Provizija
|
211
206
|
index:
|
212
207
|
title: Združbe
|
213
|
-
last_activity:
|
214
|
-
new_assembly: Nova združba
|
215
208
|
pages:
|
216
209
|
home:
|
217
210
|
highlighted_assemblies:
|
data/config/locales/so-SO.yml
CHANGED
data/config/locales/sr-CS.yml
CHANGED
data/config/locales/sv.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
sv:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -68,12 +69,6 @@ sv:
|
|
68
69
|
email: E-post
|
69
70
|
name: Namn
|
70
71
|
role: Roll
|
71
|
-
errors:
|
72
|
-
models:
|
73
|
-
assembly:
|
74
|
-
attributes:
|
75
|
-
document:
|
76
|
-
invalid_document_type: 'Ogiltig dokumenttyp. Godkända format är: %{valid_mime_types}'
|
77
72
|
activerecord:
|
78
73
|
models:
|
79
74
|
decidim/assembly:
|
@@ -270,7 +265,7 @@ sv:
|
|
270
265
|
duration_help: Om varaktigheten för gruppen är begränsad, välj ett slutdatum. Annars kommer den att visas som permanent.
|
271
266
|
filters: Filter
|
272
267
|
images: Bilder
|
273
|
-
included_at_help: Markera det datum då gruppen lades till
|
268
|
+
included_at_help: Markera det datum då gruppen lades till på plattformen. Det behöver inte nödvändigtvis vara detsamma som datumet det skapades.
|
274
269
|
metadata: Metadata
|
275
270
|
other: Annan
|
276
271
|
select_a_created_by: Välj en skapad av
|
data/config/locales/sw-KE.yml
CHANGED
data/config/locales/ti-ER.yml
CHANGED
data/config/locales/tr-TR.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
tr:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -66,12 +67,6 @@ tr:
|
|
66
67
|
email: E-posta
|
67
68
|
name: Adı
|
68
69
|
role: Rol
|
69
|
-
errors:
|
70
|
-
models:
|
71
|
-
assembly:
|
72
|
-
attributes:
|
73
|
-
document:
|
74
|
-
invalid_document_type: 'Geçersiz belge türü. Kabul edilen biçimler şunlardır: %{valid_mime_types}'
|
75
70
|
activerecord:
|
76
71
|
models:
|
77
72
|
decidim/assembly:
|
@@ -263,7 +258,6 @@ tr:
|
|
263
258
|
duration_help: Bu kurulun süresi sınırlıysa, bitiş tarihini seçin. Aksi takdirde belirsiz görünecektir.
|
264
259
|
filters: Filtreler
|
265
260
|
images: Resimler
|
266
|
-
included_at_help: Bu kurulun Decidim'e eklendiği tarihi seçin. Yaratılış tarihi ile aynı olmak zorunda değildir.
|
267
261
|
metadata: Meta veri
|
268
262
|
other: Diğer
|
269
263
|
select_a_created_by: tarafından oluşturulanı seçin
|
data/config/locales/uk.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
uk:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -222,7 +223,6 @@ uk:
|
|
222
223
|
assemblies:
|
223
224
|
form:
|
224
225
|
duration_help: Якщо тривалість цих зборів обмежена, оберіть дату завершення. В іншому випадку вони будуть показуватися як безстрокові.
|
225
|
-
included_at_help: Оберіть дату, коли ці збори були додані до Десідім. Вона не обов'язково має бути тою самою ж, що і дата створення.
|
226
226
|
select_a_created_by: Вкажіть, ким створені
|
227
227
|
select_an_area: Оберіть дільницю
|
228
228
|
select_an_assembly_type: Оберіть різновид зборів
|
@@ -269,8 +269,6 @@ uk:
|
|
269
269
|
public: Громадяни
|
270
270
|
index:
|
271
271
|
title: Збори
|
272
|
-
last_activity:
|
273
|
-
new_assembly: Додати збори
|
274
272
|
pages:
|
275
273
|
home:
|
276
274
|
highlighted_assemblies:
|
data/config/locales/val-ES.yml
CHANGED
data/config/locales/vi.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
zh-CN:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -63,12 +64,6 @@ zh-CN:
|
|
63
64
|
email: 电子邮件地址
|
64
65
|
name: 名称
|
65
66
|
role: 作用
|
66
|
-
errors:
|
67
|
-
models:
|
68
|
-
assembly:
|
69
|
-
attributes:
|
70
|
-
document:
|
71
|
-
invalid_document_type: '无效的文档类型。接受的格式为: %{valid_mime_types}'
|
72
67
|
activerecord:
|
73
68
|
models:
|
74
69
|
decidim/assembly:
|
@@ -257,7 +252,6 @@ zh-CN:
|
|
257
252
|
duration_help: 如果这个程序集的持续时间有限,请选择结束日期。否则,它将显示为无限期。
|
258
253
|
filters: 筛选器
|
259
254
|
images: 图像
|
260
|
-
included_at_help: 选择程序集添加到 Decidim 的日期。它不一定与创建日期相同。
|
261
255
|
metadata: 元数据
|
262
256
|
other: 其他
|
263
257
|
select_a_created_by: 选择创建者:
|
data/config/locales/zh-TW.yml
CHANGED
@@ -53,6 +53,7 @@ module Decidim
|
|
53
53
|
resources :imports, only: [:new, :create] do
|
54
54
|
get :example, on: :collection
|
55
55
|
end
|
56
|
+
resources :reminders, only: [:new, :create]
|
56
57
|
end
|
57
58
|
|
58
59
|
resources :moderations do
|
@@ -69,7 +70,9 @@ module Decidim
|
|
69
70
|
post :resend_invitation, to: "participatory_space_private_users#resend_invitation"
|
70
71
|
end
|
71
72
|
collection do
|
72
|
-
resource :
|
73
|
+
resource :participatory_space_private_users_csv_imports, only: [:new, :create], path: "csv_import" do
|
74
|
+
delete :destroy_all
|
75
|
+
end
|
73
76
|
end
|
74
77
|
end
|
75
78
|
end
|
@@ -100,9 +103,7 @@ module Decidim
|
|
100
103
|
decidim_admin_assemblies.assemblies_path,
|
101
104
|
icon_name: "dial",
|
102
105
|
position: 2.2,
|
103
|
-
active:
|
104
|
-
is_active_link?(decidim_admin_assemblies.assemblies_types_path) ||
|
105
|
-
is_active_link?(decidim_admin_assemblies.edit_assemblies_settings_path),
|
106
|
+
active: :inclusive,
|
106
107
|
if: allowed_to?(:enter, :space_area, space_name: :assemblies)
|
107
108
|
end
|
108
109
|
end
|
@@ -66,13 +66,13 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
66
66
|
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
67
67
|
end,
|
68
68
|
organization: organization,
|
69
|
-
hero_image: ActiveStorage::Blob.
|
69
|
+
hero_image: ActiveStorage::Blob.create_and_upload!(
|
70
70
|
io: File.open(File.join(seeds_root, "city.jpeg")),
|
71
71
|
filename: "hero_image.jpeg",
|
72
72
|
content_type: "image/jpeg",
|
73
73
|
metadata: nil
|
74
74
|
), # Keep after organization
|
75
|
-
banner_image: ActiveStorage::Blob.
|
75
|
+
banner_image: ActiveStorage::Blob.create_and_upload!(
|
76
76
|
io: File.open(File.join(seeds_root, "city2.jpeg")),
|
77
77
|
filename: "banner_image.jpeg",
|
78
78
|
content_type: "image/jpeg",
|
@@ -132,8 +132,8 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
132
132
|
user.update!(
|
133
133
|
name: Faker::Name.name,
|
134
134
|
nickname: Faker::Twitter.unique.screen_name,
|
135
|
-
password: "
|
136
|
-
password_confirmation: "
|
135
|
+
password: "decidim123456789",
|
136
|
+
password_confirmation: "decidim123456789",
|
137
137
|
organization: organization,
|
138
138
|
confirmed_at: Time.current,
|
139
139
|
locale: I18n.default_locale,
|
@@ -159,13 +159,13 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
159
159
|
Decidim::Faker::Localized.paragraph(sentence_count: 3)
|
160
160
|
end,
|
161
161
|
organization: organization,
|
162
|
-
hero_image: ActiveStorage::Blob.
|
162
|
+
hero_image: ActiveStorage::Blob.create_and_upload!(
|
163
163
|
io: File.open(File.join(seeds_root, "city.jpeg")),
|
164
164
|
filename: "hero_image.jpeg",
|
165
165
|
content_type: "image/jpeg",
|
166
166
|
metadata: nil
|
167
167
|
), # Keep after organization
|
168
|
-
banner_image: ActiveStorage::Blob.
|
168
|
+
banner_image: ActiveStorage::Blob.create_and_upload!(
|
169
169
|
io: File.open(File.join(seeds_root, "city2.jpeg")),
|
170
170
|
filename: "banner_image.jpeg",
|
171
171
|
content_type: "image/jpeg",
|
@@ -197,7 +197,7 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
197
197
|
attachment_collection: attachment_collection,
|
198
198
|
attached_to: current_assembly,
|
199
199
|
content_type: "application/pdf",
|
200
|
-
file: ActiveStorage::Blob.
|
200
|
+
file: ActiveStorage::Blob.create_and_upload!(
|
201
201
|
io: File.open(File.join(seeds_root, "Exampledocument.pdf")),
|
202
202
|
filename: "Exampledocument.pdf",
|
203
203
|
content_type: "application/pdf",
|
@@ -210,7 +210,7 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
210
210
|
description: Decidim::Faker::Localized.sentence(word_count: 5),
|
211
211
|
attached_to: current_assembly,
|
212
212
|
content_type: "image/jpeg",
|
213
|
-
file: ActiveStorage::Blob.
|
213
|
+
file: ActiveStorage::Blob.create_and_upload!(
|
214
214
|
io: File.open(File.join(seeds_root, "city.jpeg")),
|
215
215
|
filename: "city.jpeg",
|
216
216
|
content_type: "image/jpeg",
|
@@ -223,7 +223,7 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
223
223
|
description: Decidim::Faker::Localized.sentence(word_count: 5),
|
224
224
|
attached_to: current_assembly,
|
225
225
|
content_type: "application/pdf",
|
226
|
-
file: ActiveStorage::Blob.
|
226
|
+
file: ActiveStorage::Blob.create_and_upload!(
|
227
227
|
io: File.open(File.join(seeds_root, "Exampledocument.pdf")),
|
228
228
|
filename: "Exampledocument.pdf",
|
229
229
|
content_type: "application/pdf",
|
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.27.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-06-27 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
|
+
version: 0.27.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.27.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.27.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.27.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.27.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.27.0.rc1
|
57
57
|
description: Assemblies component for decidim.
|
58
58
|
email:
|
59
59
|
- josepjaume@gmail.com
|
@@ -119,6 +119,7 @@ files:
|
|
119
119
|
- app/controllers/decidim/assemblies/admin/moderations_controller.rb
|
120
120
|
- app/controllers/decidim/assemblies/admin/participatory_space_private_users_controller.rb
|
121
121
|
- app/controllers/decidim/assemblies/admin/participatory_space_private_users_csv_imports_controller.rb
|
122
|
+
- app/controllers/decidim/assemblies/admin/reminders_controller.rb
|
122
123
|
- app/controllers/decidim/assemblies/application_controller.rb
|
123
124
|
- app/controllers/decidim/assemblies/assemblies_controller.rb
|
124
125
|
- app/controllers/decidim/assemblies/assembly_members_controller.rb
|
@@ -179,7 +180,6 @@ files:
|
|
179
180
|
- app/queries/decidim/assemblies/visible_assemblies.rb
|
180
181
|
- app/serializers/decidim/assemblies/assembly_importer.rb
|
181
182
|
- app/serializers/decidim/assemblies/assembly_serializer.rb
|
182
|
-
- app/services/decidim/assemblies/assembly_search.rb
|
183
183
|
- app/views/decidim/assemblies/_assembly.html.erb
|
184
184
|
- app/views/decidim/assemblies/_filter_by_type.html.erb
|
185
185
|
- app/views/decidim/assemblies/admin/assemblies/_form.html.erb
|
@@ -251,7 +251,6 @@ files:
|
|
251
251
|
- config/locales/fr.yml
|
252
252
|
- config/locales/ga-IE.yml
|
253
253
|
- config/locales/gl.yml
|
254
|
-
- config/locales/gn-PY.yml
|
255
254
|
- config/locales/hr-HR.yml
|
256
255
|
- config/locales/hr.yml
|
257
256
|
- config/locales/hu.yml
|
@@ -264,7 +263,6 @@ files:
|
|
264
263
|
- config/locales/ko.yml
|
265
264
|
- config/locales/lb-LU.yml
|
266
265
|
- config/locales/lb.yml
|
267
|
-
- config/locales/lo-LA.yml
|
268
266
|
- config/locales/lt-LT.yml
|
269
267
|
- config/locales/lt.yml
|
270
268
|
- config/locales/lv.yml
|
@@ -272,7 +270,6 @@ files:
|
|
272
270
|
- config/locales/mt.yml
|
273
271
|
- config/locales/nl.yml
|
274
272
|
- config/locales/no.yml
|
275
|
-
- config/locales/oc-FR.yml
|
276
273
|
- config/locales/om-ET.yml
|
277
274
|
- config/locales/pl.yml
|
278
275
|
- config/locales/pt-BR.yml
|
@@ -345,14 +342,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
345
342
|
requirements:
|
346
343
|
- - ">="
|
347
344
|
- !ruby/object:Gem::Version
|
348
|
-
version: '
|
345
|
+
version: '3.0'
|
349
346
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
350
347
|
requirements:
|
351
|
-
- - "
|
348
|
+
- - ">"
|
352
349
|
- !ruby/object:Gem::Version
|
353
|
-
version:
|
350
|
+
version: 1.3.1
|
354
351
|
requirements: []
|
355
|
-
rubygems_version: 3.
|
352
|
+
rubygems_version: 3.2.22
|
356
353
|
signing_key:
|
357
354
|
specification_version: 4
|
358
355
|
summary: Decidim assemblies module
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Assemblies
|
5
|
-
# Service that encapsulates all logic related to filtering assemblies.
|
6
|
-
class AssemblySearch < ParticipatorySpaceSearch
|
7
|
-
def initialize(options = {})
|
8
|
-
super(Assembly.all, options)
|
9
|
-
end
|
10
|
-
|
11
|
-
def search_type_id
|
12
|
-
return query if type_id.blank?
|
13
|
-
|
14
|
-
query.where(decidim_assemblies_type_id: type_id)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
data/config/locales/gn-PY.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
gn:
|
data/config/locales/lo-LA.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
lo:
|
data/config/locales/oc-FR.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
oc:
|