decidim-participatory_processes 0.27.5 → 0.27.6
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/participatory_process_groups/content_blocks/title/show.erb +1 -1
- data/app/cells/decidim/participatory_processes/process_group_m_cell.rb +1 -1
- data/app/controllers/decidim/participatory_processes/widgets_controller.rb +12 -2
- data/app/permissions/decidim/participatory_processes/permissions.rb +12 -0
- data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process_group.html.erb +1 -1
- data/config/locales/ar.yml +0 -1
- data/config/locales/bg.yml +66 -0
- data/config/locales/ca.yml +2 -2
- data/config/locales/de.yml +1 -1
- data/config/locales/es.yml +1 -1
- data/config/locales/eu.yml +4 -1
- data/config/locales/fi-plain.yml +1 -1
- data/config/locales/fi.yml +1 -1
- data/config/locales/he-IL.yml +1 -0
- data/config/locales/id-ID.yml +0 -1
- data/config/locales/lb.yml +105 -0
- data/config/locales/lv.yml +1 -1
- data/config/locales/no.yml +26 -0
- data/config/locales/pl.yml +31 -0
- data/config/locales/pt-BR.yml +14 -1
- data/config/locales/sk.yml +1 -1
- data/config/locales/sr-CS.yml +4 -0
- data/config/locales/tr-TR.yml +2 -1
- data/config/locales/zh-CN.yml +0 -1
- data/decidim-participatory_processes.gemspec +31 -0
- data/lib/decidim/participatory_processes/admin_engine.rb +1 -1
- data/lib/decidim/participatory_processes/test/factories.rb +59 -36
- data/lib/decidim/participatory_processes/version.rb +1 -1
- metadata +18 -17
- data/config/environment.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9af913270797727b4a0b31400b416d82c5ff01d47e539bd164fca045ce9a5d75
|
4
|
+
data.tar.gz: f96a5257cc6e898f82b5553b8ed8546e6d2ae4b3904d002e3e51d2f96a60a241
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8193468ba41c6de3239e1658f5b9bfdcff29e5a7295ba71bbddfa8df7f00d15ce11b3e13484cb39ba2a05f6cc4b3616c200d381378fd71d11dab9207453b32e0
|
7
|
+
data.tar.gz: e7201adb64a879ca2497a74c37ad9f2f3ce8b22b98713cdb90e44810658248142deaf756ab339c422e5a90ad5864404de2171f53498b11945836d32ee4b4a3a9
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<section class="section">
|
2
|
-
<h2 class="heading2"><%=
|
2
|
+
<h2 class="heading2"><%= decidim_escape_translated(participatory_process_group.title) %></h2>
|
3
3
|
<div class="row">
|
4
4
|
<div class="columns medium-9">
|
5
5
|
<%= decidim_sanitize_editor_admin translated_attribute(participatory_process_group.description) %>
|
@@ -5,13 +5,19 @@ module Decidim
|
|
5
5
|
class WidgetsController < Decidim::WidgetsController
|
6
6
|
helper Decidim::SanitizeHelper
|
7
7
|
|
8
|
+
def show
|
9
|
+
enforce_permission_to :embed, :participatory_space, current_participatory_space: model
|
10
|
+
|
11
|
+
super
|
12
|
+
end
|
13
|
+
|
8
14
|
private
|
9
15
|
|
10
16
|
def model
|
11
17
|
return unless params[:participatory_process_slug]
|
12
18
|
|
13
|
-
@model ||= ParticipatoryProcess.where(slug: params[:participatory_process_slug]).or(
|
14
|
-
ParticipatoryProcess.where(id: params[:participatory_process_slug])
|
19
|
+
@model ||= ParticipatoryProcess.where(organization: current_organization).public_spaces.where(slug: params[:participatory_process_slug]).or(
|
20
|
+
ParticipatoryProcess.where(organization: current_organization).public_spaces.where(id: params[:participatory_process_slug])
|
15
21
|
).first!
|
16
22
|
end
|
17
23
|
|
@@ -22,6 +28,10 @@ module Decidim
|
|
22
28
|
def iframe_url
|
23
29
|
@iframe_url ||= participatory_process_widget_url(model)
|
24
30
|
end
|
31
|
+
|
32
|
+
def permission_class_chain
|
33
|
+
::Decidim.permissions_registry.chain_for(::Decidim::ParticipatoryProcesses::ApplicationController)
|
34
|
+
end
|
25
35
|
end
|
26
36
|
end
|
27
37
|
end
|
@@ -19,6 +19,7 @@ module Decidim
|
|
19
19
|
public_list_process_groups_action?
|
20
20
|
public_read_process_group_action?
|
21
21
|
public_read_process_action?
|
22
|
+
public_embed_process_action?
|
22
23
|
return permission_action
|
23
24
|
end
|
24
25
|
|
@@ -112,6 +113,17 @@ module Decidim
|
|
112
113
|
toggle_allow(can_manage_process?)
|
113
114
|
end
|
114
115
|
|
116
|
+
def public_embed_process_action?
|
117
|
+
return unless permission_action.action == :embed &&
|
118
|
+
[:process, :participatory_space].include?(permission_action.subject) &&
|
119
|
+
process
|
120
|
+
|
121
|
+
return disallow! unless process.published?
|
122
|
+
return disallow! if process.private_space
|
123
|
+
|
124
|
+
allow!
|
125
|
+
end
|
126
|
+
|
115
127
|
def can_view_private_space?
|
116
128
|
return true unless process.private_space
|
117
129
|
return false unless user
|
@@ -14,7 +14,7 @@
|
|
14
14
|
</div>
|
15
15
|
</div>
|
16
16
|
<div class="columns mediumlarge-8 large-6 card--process__column">
|
17
|
-
<div class="card--full__image" style="background-image:url('<%=
|
17
|
+
<div class="card--full__image" style="background-image:url('<%= promoted_process_group.attached_uploader(:hero_image).path %>')">
|
18
18
|
<% if cta_settings.present? %>
|
19
19
|
<div class="card__content row collapse">
|
20
20
|
<div class="large-6 large-offset-6 columns">
|
data/config/locales/ar.yml
CHANGED
data/config/locales/bg.yml
CHANGED
@@ -19,8 +19,74 @@ bg:
|
|
19
19
|
local_area: Район на организацията
|
20
20
|
meta_scope: Метаданни сфера
|
21
21
|
decidim:
|
22
|
+
admin:
|
23
|
+
actions:
|
24
|
+
filter:
|
25
|
+
all_processes: Показване на всички процеси
|
26
|
+
process_groups: Групи процеси
|
27
|
+
models:
|
28
|
+
participatory_process:
|
29
|
+
fields:
|
30
|
+
promoted: Акцентирано
|
31
|
+
participatory_process_group_landing_page:
|
32
|
+
edit:
|
33
|
+
active_content_blocks: Активни блокове със съдържание
|
34
|
+
inactive_content_blocks: Неактивни блокове със съдържание
|
35
|
+
participatory_process_steps:
|
36
|
+
destroy:
|
37
|
+
error:
|
38
|
+
active_step: Не може да изтриете активна фаза.
|
39
|
+
last_step: Не може да изтриете последната фаза от процеса.
|
40
|
+
participatory_processes:
|
41
|
+
index:
|
42
|
+
not_published: Не публикувано
|
43
|
+
log:
|
44
|
+
value_types:
|
45
|
+
participatory_process_type_presenter:
|
46
|
+
not_found: 'Типът на процеса не бе намерен в базата данни (Идент. №: %{id})'
|
47
|
+
participatory_process:
|
48
|
+
show:
|
49
|
+
related_assemblies: Свързани събрания
|
50
|
+
participatory_process_groups:
|
51
|
+
content_blocks:
|
52
|
+
title:
|
53
|
+
name: Заглавие, описание и хаштаг
|
54
|
+
participatory_process_steps:
|
55
|
+
index:
|
56
|
+
title: Фази на процес за участие
|
22
57
|
participatory_processes:
|
58
|
+
pages:
|
59
|
+
home:
|
60
|
+
highlighted_processes:
|
61
|
+
active_step: Активна фаза
|
62
|
+
more_information: Още информация
|
63
|
+
participate: Участвайте
|
64
|
+
participate_in: Участие в процеса %{resource_name}
|
65
|
+
processes_button_title: Връзка към страницата „Процеси“, на която се показват всички процеси
|
66
|
+
participatory_processes:
|
67
|
+
filters:
|
68
|
+
explanations:
|
69
|
+
no_active: Няма активни процеси
|
70
|
+
no_active_nor_upcoming: Няма активни или предстоящи процеси
|
71
|
+
index:
|
72
|
+
loading: Зареждане на резултати...
|
23
73
|
show:
|
24
74
|
area: Район
|
75
|
+
dates: Дати
|
25
76
|
developer_group: Група за популяризиране
|
26
77
|
end_date: Крайна дата
|
78
|
+
unspecified: Неопределено
|
79
|
+
layouts:
|
80
|
+
decidim:
|
81
|
+
participatory_process_widgets:
|
82
|
+
show:
|
83
|
+
active_step: Активна фаза
|
84
|
+
participatory_processes:
|
85
|
+
participatory_process:
|
86
|
+
active_step: 'Текуща фаза:'
|
87
|
+
promoted_process:
|
88
|
+
active_step: 'Текуща фаза:'
|
89
|
+
process_header_steps:
|
90
|
+
step: Фаза %{current} от общо %{total}
|
91
|
+
process_navigation:
|
92
|
+
process_menu_item: Процесът
|
data/config/locales/ca.yml
CHANGED
@@ -337,12 +337,12 @@ ca:
|
|
337
337
|
notification_title: Se t'ha assignat el rol de %{role} al procés participatiu <a href="%{resource_url}">%{resource_title}</a>.
|
338
338
|
step_activated:
|
339
339
|
email_intro: 'Ja està activa la fase %{resource_title} per a %{participatory_space_title}. Pots veure-ho des d''aquesta pàgina:'
|
340
|
-
email_outro: Has rebut aquesta notificació perquè estàs seguint %{participatory_space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
340
|
+
email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
341
341
|
email_subject: Una actualització a %{participatory_space_title}
|
342
342
|
notification_title: Ja està activa la fase %{resource_title} per a <a href="%{resource_path}">%{participatory_space_title}</a>
|
343
343
|
step_changed:
|
344
344
|
email_intro: 'S''han actualitzat les dates de la fase %{resource_title} a %{participatory_space_title}. Pots veure-ho des d''aquesta pàgina:'
|
345
|
-
email_outro: Has rebut aquesta notificació perquè estàs seguint %{participatory_space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
345
|
+
email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de rebre notificacions seguint l'enllaç anterior.
|
346
346
|
email_subject: Una actualització a %{participatory_space_title}
|
347
347
|
notification_title: Les dates de la fase <a href="%{resource_path}">%{resource_title}</a> a <a href="%{participatory_space_url}">%{participatory_space_title}</a> s'han actualitzat.
|
348
348
|
help:
|
data/config/locales/de.yml
CHANGED
@@ -434,7 +434,7 @@ de:
|
|
434
434
|
select_process_group: Wählen Sie eine Prozessgruppe aus
|
435
435
|
slug_help: 'URL-Slugs werden zum Generieren der URLs verwendet, die auf diesen Prozess verweisen. Akzeptiert werden nur Buchstaben, Zahlen und Bindestriche und es muss mit einem Buchstaben beginnen. Beispiel: %{url}'
|
436
436
|
title: Allgemeine Information
|
437
|
-
visbility:
|
437
|
+
visbility: Sichtbarkeit
|
438
438
|
content_blocks:
|
439
439
|
highlighted_processes:
|
440
440
|
name: Hervorgehobene Beteiligungsprozesse
|
data/config/locales/es.yml
CHANGED
@@ -337,7 +337,7 @@ es:
|
|
337
337
|
notification_title: Se te ha asignado el rol de %{role} en el proceso participativo <a href="%{resource_url}">%{resource_title}</a>.
|
338
338
|
step_activated:
|
339
339
|
email_intro: 'Ya está activa la fase %{resource_title} para %{participatory_space_title}. Puedes verla desde esta página:'
|
340
|
-
email_outro: Has recibido esta notificación porque estás siguiendo %{participatory_space_title}. Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
340
|
+
email_outro: Has recibido esta notificación porque estás siguiendo el espacio "%{participatory_space_title}". Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
|
341
341
|
email_subject: Una actualización en %{participatory_space_title}
|
342
342
|
notification_title: Ya está activa la fase %{resource_title} para <a href="%{resource_path}">%{participatory_space_title}</a>
|
343
343
|
step_changed:
|
data/config/locales/eu.yml
CHANGED
@@ -386,6 +386,9 @@ eu:
|
|
386
386
|
title:
|
387
387
|
meta_scope: Esparrua
|
388
388
|
name: Izenburua, deskribapena eta traola
|
389
|
+
participatory_processes:
|
390
|
+
one: Prozesu bat
|
391
|
+
other: "%{count} prozesu"
|
389
392
|
show:
|
390
393
|
title: Prozesu parte-hartzaileen taldeak
|
391
394
|
participatory_process_steps:
|
@@ -431,7 +434,7 @@ eu:
|
|
431
434
|
select_process_group: Hautatu prozesu-talde bat
|
432
435
|
slug_help: 'URL testu laburrak erabiltzen dira prozesu honi aurre egiteko URLan sortzeko. Letrak, zenbakiak eta gidoiak soilik onartzen ditu, eta letra batez hasi behar du. Adibidea: %{url}'
|
433
436
|
title: Informazio orokorra
|
434
|
-
visbility:
|
437
|
+
visbility: Ikusgarritasuna
|
435
438
|
content_blocks:
|
436
439
|
highlighted_processes:
|
437
440
|
name: Prozesu nabarmenak
|
data/config/locales/fi-plain.yml
CHANGED
@@ -434,7 +434,7 @@ fi-pl:
|
|
434
434
|
select_process_group: Valitse prosessiryhmä
|
435
435
|
slug_help: 'URL-tunnisteita käytetään tuottamaan URL-osoitteet, jotka viittaavat tähän prosessiin. Hyväksyy vain kirjaimet, numerot ja viivat. Arvon on alettava kirjaimella. Esimerkki: %{url}'
|
436
436
|
title: Yleistä tietoa
|
437
|
-
visbility:
|
437
|
+
visbility: Näkyvyys
|
438
438
|
content_blocks:
|
439
439
|
highlighted_processes:
|
440
440
|
name: Tärkeimmät prosessit
|
data/config/locales/fi.yml
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
he:
|
data/config/locales/id-ID.yml
CHANGED
data/config/locales/lb.yml
CHANGED
@@ -72,6 +72,9 @@ lb:
|
|
72
72
|
decidim/participatory_process_group:
|
73
73
|
one: Prozessgruppe
|
74
74
|
other: Prozessgruppen
|
75
|
+
decidim/participatory_process_step:
|
76
|
+
one: Etapp
|
77
|
+
other: Phasen
|
75
78
|
decidim:
|
76
79
|
admin:
|
77
80
|
actions:
|
@@ -169,9 +172,64 @@ lb:
|
|
169
172
|
update:
|
170
173
|
error: Beim Aktualisieren dieser partizipativen Prozessgruppe ist ein Fehler aufgetreten.
|
171
174
|
success: Partizipative Prozessgruppe wurde erfolgreich aktualisiert.
|
175
|
+
participatory_process_imports:
|
176
|
+
create:
|
177
|
+
error: Beim Importieren dieses Beteiligungsprozesses ist ein Fehler aufgetreten.
|
178
|
+
success: Beteiligungsprozess wurde erfolgreich importiert.
|
179
|
+
new:
|
180
|
+
import: Import
|
181
|
+
select: Wählen Sie aus, welche Daten Sie importieren möchten
|
182
|
+
title: Beteiligungsprozess importieren
|
183
|
+
participatory_process_publications:
|
184
|
+
create:
|
185
|
+
error: Bei der Veröffentlichung dieses Beteiligungsprozesses ist ein Fehler aufgetreten.
|
186
|
+
success: Partizipativer Prozess erfolgreich veröffentlicht.
|
187
|
+
destroy:
|
188
|
+
error: Beim Aufheben der Veröffentlichung dieses Beteiligungsprozesses ist ein Fehler aufgetreten.
|
189
|
+
success: Partizipativer Prozess wurde nicht veröffentlicht.
|
190
|
+
participatory_process_step_activations:
|
191
|
+
create:
|
192
|
+
error: Beim Aktivieren dieses partizipativen Prozessschritts ist ein Fehler aufgetreten.
|
193
|
+
success: Partizipativer Prozessschritt erfolgreich aktiviert.
|
194
|
+
participatory_process_steps:
|
195
|
+
create:
|
196
|
+
error: Beim Erstellen eines neuen partizipativen Prozessschritts ist ein Fehler aufgetreten.
|
197
|
+
success: Partizipativer Prozessschritt erfolgreich erstellt.
|
198
|
+
default_title: Aféierung
|
199
|
+
destroy:
|
200
|
+
error:
|
201
|
+
active_step: Der aktive Schritt kann nicht gelöscht werden.
|
202
|
+
last_step: Der letzte Schritt eines Beteiligungsprozesses kann nicht gelöscht werden.
|
203
|
+
success: Participatory-Prozessschritt erfolgreich gelöscht.
|
204
|
+
edit:
|
205
|
+
title: Beteiligungsschritt bearbeiten
|
206
|
+
update: Aktualiséieren
|
207
|
+
index:
|
208
|
+
steps_title: Phasen
|
209
|
+
new:
|
210
|
+
create: Erstellen
|
211
|
+
title: Neuer partizipativer Prozessschritt
|
212
|
+
ordering:
|
213
|
+
error: Beim Neuanordnen dieser partizipativen Prozessschritte ist ein Fehler aufgetreten.
|
214
|
+
update:
|
215
|
+
error: Beim Aktualisieren dieses partizipativen Prozessschritts ist ein Fehler aufgetreten.
|
216
|
+
success: Partizipativer Prozessschritt erfolgreich aktualisiert.
|
172
217
|
participatory_process_types:
|
173
218
|
form:
|
174
219
|
title: Titel
|
220
|
+
participatory_process_user_roles:
|
221
|
+
create:
|
222
|
+
error: Beim Hinzufügen eines Benutzers für diesen partizipativen Prozess ist ein Fehler aufgetreten.
|
223
|
+
success: Benutzer hat diesen partizipativen Prozess erfolgreich hinzugefügt.
|
224
|
+
destroy:
|
225
|
+
success: Der Benutzer wurde erfolgreich aus diesem partizipativen Prozess entfernt.
|
226
|
+
edit:
|
227
|
+
title: Administrator des Beteiligungsprozesses aktualisieren
|
228
|
+
update: Aktualiséieren
|
229
|
+
index:
|
230
|
+
process_admins_title: Partizipative Prozessbenutzer
|
231
|
+
new:
|
232
|
+
create: Erstellen
|
175
233
|
titles:
|
176
234
|
participatory_process_groups: Prozessgruppen
|
177
235
|
participatory_processes: Bedeelegungsprozesser
|
@@ -252,6 +310,53 @@ lb:
|
|
252
310
|
show:
|
253
311
|
title: Prozessgruppen
|
254
312
|
participatory_processes:
|
313
|
+
admin:
|
314
|
+
participatory_process_groups:
|
315
|
+
form:
|
316
|
+
title: Allgemeine Information
|
317
|
+
participatory_processes:
|
318
|
+
form:
|
319
|
+
other: Andere
|
320
|
+
related_processes: Ähnliche Beteiligungsprozesse
|
321
|
+
scope_type_max_depth_help: Beschränken Sie die Bereichs-Filtertiefe; der Filter zeigt nur Ergebnisse von Allgemein bis zum ausgewählten Bereichstyp an.
|
322
|
+
select_an_area: Wählen Sie einen Bereich aus
|
323
|
+
select_process_group: Wählen Sie eine Prozessgruppe aus
|
324
|
+
title: Allgemeine Information
|
325
|
+
content_blocks:
|
326
|
+
highlighted_processes:
|
327
|
+
name: Hervorgehobene Beteiligungsprozesse
|
328
|
+
index:
|
329
|
+
title: Bedeelegungsprozesser
|
330
|
+
last_activity:
|
331
|
+
new_participatory_process: Neuer partizipativer Prozess
|
332
|
+
pages:
|
333
|
+
home:
|
334
|
+
highlighted_processes:
|
335
|
+
active_step: Aktiv Etapp
|
336
|
+
more_information: weider Informatiounen
|
337
|
+
participate: Matmaachen
|
338
|
+
participate_in: Am Prozess %{resource_name} teilnehmen
|
339
|
+
participatory_process_steps:
|
340
|
+
index:
|
341
|
+
back_to_process: Zurück zur Prozessseite
|
342
|
+
participatory_processes:
|
343
|
+
filters:
|
344
|
+
counters:
|
345
|
+
active:
|
346
|
+
one: 1 aktiver Beteiligungsprozess
|
347
|
+
other: "%{count} Beteiligungsprozesse"
|
348
|
+
explanations:
|
349
|
+
no_active: Keine aktiven Prozesse
|
350
|
+
no_active_nor_upcoming: Keine aktiven oder zukünftigen Beteiligungsprozesse
|
351
|
+
no_active_nor_upcoming_callout: Es gibt keine aktiven oder zukünftigen Beteiligungsprozesse. Hier ist eine Liste der vergangenen.
|
352
|
+
names:
|
353
|
+
active: Aktiv
|
354
|
+
all: All
|
355
|
+
past: Vergaangenes
|
356
|
+
upcoming: Demnächst stattfannend
|
357
|
+
see: Sehen
|
358
|
+
index:
|
359
|
+
loading: Ergebnisse werden geladen...
|
255
360
|
show:
|
256
361
|
area: Bereich
|
257
362
|
belongs_to_group: Dieser Prozess gehört zu
|
data/config/locales/lv.yml
CHANGED
@@ -342,7 +342,6 @@ lv:
|
|
342
342
|
select_an_area: Izvēlieties jomu
|
343
343
|
select_process_group: Atlasiet procesa grupu
|
344
344
|
title: Vispārēja informācija
|
345
|
-
visbility: Redzamība
|
346
345
|
content_blocks:
|
347
346
|
highlighted_processes:
|
348
347
|
name: Izceltie procesi
|
@@ -356,6 +355,7 @@ lv:
|
|
356
355
|
active_step: Aktīvā fāze
|
357
356
|
more_information: Papildu informācija
|
358
357
|
participate: Piedalīties
|
358
|
+
processes_button_title: Saite uz lapu Procesi, kurā norādīti visi procesi
|
359
359
|
participatory_processes:
|
360
360
|
filters:
|
361
361
|
counters:
|
data/config/locales/no.yml
CHANGED
@@ -12,15 +12,22 @@
|
|
12
12
|
decidim_area_id: Område
|
13
13
|
description: Beskrivelse
|
14
14
|
developer_group: Promotørgruppe
|
15
|
+
document: Dokument
|
15
16
|
domain: Domene
|
16
17
|
end_date: Sluttdato
|
17
18
|
hashtag: Emneknagg
|
18
19
|
hero_image: Hovedbilde
|
20
|
+
import_attachments: Importer vedlegg
|
21
|
+
import_categories: Importer kategorier
|
22
|
+
import_components: Importer komponenter
|
23
|
+
import_steps: Importer trinn
|
19
24
|
local_area: Organisasjonsområde
|
20
25
|
meta_scope: Omfang av metadata
|
21
26
|
participatory_process_group_id: Prosessgruppe
|
27
|
+
participatory_process_type_id: Prosesstype
|
22
28
|
participatory_scope: Medvirkningen gjelder
|
23
29
|
participatory_structure: Hvordan det blir gjort
|
30
|
+
private_space: Privat prosess
|
24
31
|
promoted: Fremhevet
|
25
32
|
published_at: Publisert på
|
26
33
|
related_process_ids: Relaterte prosesser
|
@@ -63,6 +70,12 @@
|
|
63
70
|
email: Epost
|
64
71
|
name: Navn
|
65
72
|
role: Rolle
|
73
|
+
errors:
|
74
|
+
models:
|
75
|
+
participatory_process:
|
76
|
+
attributes:
|
77
|
+
document:
|
78
|
+
allowed_file_content_types: 'Ugyldig dokumenttype. Bare filer med følgende filtyper er tillatt: %{types}'
|
66
79
|
models:
|
67
80
|
decidim/participatory_process_step_activated_event: Fase er aktivert
|
68
81
|
decidim/participatory_process_step_changed_event: Fase endret
|
@@ -227,8 +240,19 @@
|
|
227
240
|
create:
|
228
241
|
error: Det oppstod et problem med å lage en ny prosesstype.
|
229
242
|
success: Prosesstypen ble opprettet.
|
243
|
+
destroy:
|
244
|
+
success: Prosesstypen ble slettet.
|
245
|
+
edit:
|
246
|
+
title: Rediger prosesstype
|
247
|
+
update: Oppdater
|
230
248
|
form:
|
231
249
|
title: Tittel
|
250
|
+
new:
|
251
|
+
create: Opprett
|
252
|
+
title: Ny prosesstype
|
253
|
+
update:
|
254
|
+
error: Det oppsto et problem med å oppdatere denne prosesstypen.
|
255
|
+
success: Prosesstypen ble oppdatert.
|
232
256
|
participatory_process_user_roles:
|
233
257
|
create:
|
234
258
|
error: Det oppstod et problem med å legge til en deltaker for denne prosessen.
|
@@ -273,6 +297,7 @@
|
|
273
297
|
success: Prosessgruppen ble opprettet.
|
274
298
|
titles:
|
275
299
|
participatory_process_groups: Prosessgrupper
|
300
|
+
participatory_process_types: Prosesstyper
|
276
301
|
participatory_processes: Deltakende prosesser
|
277
302
|
users:
|
278
303
|
resend_invitation:
|
@@ -338,6 +363,7 @@
|
|
338
363
|
html_3:
|
339
364
|
name: Tredje HTML-blokk
|
340
365
|
metadata:
|
366
|
+
developer_group: Promotert av
|
341
367
|
name: Metadata
|
342
368
|
participatory_scope: Medvirkningen gjelder
|
343
369
|
participatory_structure: Hvordan det blir gjort
|
data/config/locales/pl.yml
CHANGED
@@ -222,11 +222,22 @@ pl:
|
|
222
222
|
error: Podczas aktualizowania etapu procesu partycypacyjnego wystąpił błąd.
|
223
223
|
success: Etap procesu partycypacyjnego został zaktualizowany.
|
224
224
|
participatory_process_types:
|
225
|
+
create:
|
226
|
+
error: Przy tworzeniu nowego typu procesu pojawił się problem.
|
227
|
+
success: Typ procesu został utworzony.
|
228
|
+
destroy:
|
229
|
+
success: Typ procesu został usunięty.
|
230
|
+
edit:
|
231
|
+
title: Edytuj typ procesu
|
232
|
+
update: Aktualizuj
|
225
233
|
form:
|
226
234
|
title: Tytuł
|
227
235
|
new:
|
228
236
|
create: Utwórz
|
229
237
|
title: Nowy typ procesu
|
238
|
+
update:
|
239
|
+
error: Przy aktualizacji tego typu procesu pojawił się problem.
|
240
|
+
success: Typ procesu został zaktualizowany.
|
230
241
|
participatory_process_user_roles:
|
231
242
|
create:
|
232
243
|
error: Wystąpił błąd podczas dodawania użytkownika do tego procesu partycypacyjnego.
|
@@ -271,6 +282,7 @@ pl:
|
|
271
282
|
success: Grupa procesu partycypacyjnego została utworzona.
|
272
283
|
titles:
|
273
284
|
participatory_process_groups: Grupy procesu partycypacyjnego
|
285
|
+
participatory_process_types: Typy procesów partycypacyjnych
|
274
286
|
participatory_processes: Procesy partycypacyjne
|
275
287
|
users:
|
276
288
|
resend_invitation:
|
@@ -279,6 +291,9 @@ pl:
|
|
279
291
|
admin_log:
|
280
292
|
participatory_process:
|
281
293
|
create: "%{user_name} stworzył(a) proces partycypacyjny %{resource_name}"
|
294
|
+
duplicate: "%{user_name} zduplikował(a) proces partycypacyjny %{resource_name}"
|
295
|
+
export: "%{user_name} eksportował(a) proces partycypacyjny %{resource_name}"
|
296
|
+
import: "%{user_name} zaimportował(a) proces partycypacyjny %{resource_name}"
|
282
297
|
publish: "%{user_name} opublikował(a) proces partycypacyjny %{resource_name}"
|
283
298
|
unpublish: "%{user_name} cofnął/cofnęła publikację procesu partycypacyjnego %{resource_name}"
|
284
299
|
update: "%{user_name} zaktualizował(a) proces partycypacyjny %{resource_name}"
|
@@ -290,6 +305,10 @@ pl:
|
|
290
305
|
create: "%{user_name} utworzył(a) etap %{resource_name} w procesie partycypacyjnym %{space_name}"
|
291
306
|
delete: "%{user_name} usunął/usunęła etap %{resource_name} z procesu partycypacyjnego %{space_name}"
|
292
307
|
update: "%{user_name} zaktualizował(a) etap %{resource_name} w procesie partycypacyjnym %{space_name}"
|
308
|
+
participatory_process_type:
|
309
|
+
create: "%{user_name} utworzył(a) typ procesu partycypacyjnego %{resource_name}"
|
310
|
+
delete: "Użytkownik %{user_name} usunął typ procesu partycypacyjnego %{resource_name}"
|
311
|
+
update: "%{user_name} zaktualizował(a) typ procesu partycypacyjnego %{resource_name}"
|
293
312
|
participatory_process_user_role:
|
294
313
|
create: "%{user_name} zaprosił(a) użytkownika %{resource_name} do procesu partycypacyjnego %{space_name}"
|
295
314
|
delete: "%{user_name} usunął/usunęła użytkownika %{resource_name} z procesu partycypacyjnego %{space_name}"
|
@@ -340,6 +359,7 @@ pl:
|
|
340
359
|
html_3:
|
341
360
|
name: Trzeci blok HTML
|
342
361
|
metadata:
|
362
|
+
developer_group: Promowany przez
|
343
363
|
name: Metadane
|
344
364
|
participatory_scope: Zaproponowano
|
345
365
|
participatory_structure: Jak decydowano
|
@@ -370,6 +390,9 @@ pl:
|
|
370
390
|
new_import:
|
371
391
|
accepted_types:
|
372
392
|
json: JSON
|
393
|
+
participatory_process_copies:
|
394
|
+
form:
|
395
|
+
slug_help: 'Slugi URL wykorzystuje się do generowania adresów URL odsyłających do procesu. Można używać jedynie liter, cyfr i łączników, przy czym należy rozpocząć od litery. Przykład: %{url}'
|
373
396
|
participatory_process_groups:
|
374
397
|
form:
|
375
398
|
metadata: Metadane
|
@@ -378,8 +401,10 @@ pl:
|
|
378
401
|
participatory_process_imports:
|
379
402
|
form:
|
380
403
|
document_legend: Dodaj dokument
|
404
|
+
slug_help: 'Slugi URL wykorzystuje się do generowania adresów URL odsyłających do procesu. Można używać jedynie liter, cyfr i łączników, przy czym należy rozpocząć od litery. Przykład: %{url}'
|
381
405
|
participatory_process_steps:
|
382
406
|
form:
|
407
|
+
cta_path_help: 'Użyj ścieżek częściowych, a nie pełnych adresów URL. Można używać liter, cyfr, łączników i ukośników, przy czym należy rozpocząć od litery. Przycisk nie zostanie wyświetlony, jeżeli nie zostanie to ustawione. Przykład: %{url}'
|
383
408
|
cta_text_help: Jeśli nie zostanie ustawione, przycisk nie będzie wyświetlany.
|
384
409
|
participatory_processes:
|
385
410
|
form:
|
@@ -394,6 +419,7 @@ pl:
|
|
394
419
|
select_an_area: Wybierz kategorię
|
395
420
|
select_participatory_process_type: Wybierz typ procesu
|
396
421
|
select_process_group: Wybierz grupę procesów
|
422
|
+
slug_help: 'Slugi URL wykorzystuje się do generowania adresów URL odsyłających do procesu. Można używać jedynie liter, cyfr i łączników, przy czym należy rozpocząć od litery. Przykład: %{url}'
|
397
423
|
title: Informacje ogólne
|
398
424
|
visbility: Widoczność
|
399
425
|
content_blocks:
|
@@ -406,15 +432,19 @@ pl:
|
|
406
432
|
pages:
|
407
433
|
home:
|
408
434
|
highlighted_processes:
|
435
|
+
active_processes: Aktywne procesy
|
409
436
|
active_step: Aktualny etap
|
410
437
|
more_information: Więcej informacji
|
411
438
|
participate: Dołącz
|
412
439
|
participate_in: Dołącz do procesu %{resource_name}
|
440
|
+
processes_button_title: Link do strony Procesy wyświetlającej wszystkie procesy
|
441
|
+
see_all_processes: Zobacz wszystkie procesy
|
413
442
|
participatory_process_steps:
|
414
443
|
index:
|
415
444
|
back_to_process: Powrót do strony procesu
|
416
445
|
participatory_processes:
|
417
446
|
filters:
|
447
|
+
all_types: Wszystkie typy
|
418
448
|
counters:
|
419
449
|
active:
|
420
450
|
one: 1 aktualny proces
|
@@ -454,6 +484,7 @@ pl:
|
|
454
484
|
dates: Daty
|
455
485
|
developer_group: Grupa inicjatorów
|
456
486
|
end_date: Data zakończenia
|
487
|
+
local_area: Obszar organizacji
|
457
488
|
participatory_scope: Zaproponowano
|
458
489
|
participatory_structure: Jak decydowano
|
459
490
|
private_space: To jest prywatny proces
|
data/config/locales/pt-BR.yml
CHANGED
@@ -8,7 +8,7 @@ pt-BR:
|
|
8
8
|
banner_image: Imagem da bandeira
|
9
9
|
copy_categories: Copiar categorias
|
10
10
|
copy_components: Copiar componentes
|
11
|
-
copy_steps:
|
11
|
+
copy_steps: Copiar etapas
|
12
12
|
decidim_area_id: Área
|
13
13
|
description: Descrição
|
14
14
|
developer_group: Grupo promotor
|
@@ -358,6 +358,7 @@ pt-BR:
|
|
358
358
|
html_3:
|
359
359
|
name: Terceiro bloco HTML
|
360
360
|
metadata:
|
361
|
+
developer_group: Promovido por
|
361
362
|
name: Metadados
|
362
363
|
participatory_scope: O que é decidido
|
363
364
|
participatory_structure: Como é decidido
|
@@ -386,6 +387,9 @@ pt-BR:
|
|
386
387
|
new_import:
|
387
388
|
accepted_types:
|
388
389
|
json: JSON
|
390
|
+
participatory_process_copies:
|
391
|
+
form:
|
392
|
+
slug_help: 'Os slugs de URL são usados para gerar os URLs que apontam para este processo. Aceita apenas letras, números e traços e deve começar com uma letra. Exemplo: %{url}'
|
389
393
|
participatory_process_groups:
|
390
394
|
form:
|
391
395
|
metadata: Metadados
|
@@ -394,8 +398,10 @@ pt-BR:
|
|
394
398
|
participatory_process_imports:
|
395
399
|
form:
|
396
400
|
document_legend: Adicionar um documento
|
401
|
+
slug_help: 'Os slugs de URL são usados para gerar os URLs que apontam para este processo. Aceita apenas letras, números e traços e deve começar com uma letra. Exemplo: %{url}'
|
397
402
|
participatory_process_steps:
|
398
403
|
form:
|
404
|
+
cta_path_help: 'Use caminhos parciais, não URLs completas aqui. Aceita letras, números, traços e barras e deve começar com uma letra. Se não for definido, o botão não será mostrado. Exemplo: %{url}'
|
399
405
|
cta_text_help: Se não estiver definido, o botão não será mostrado.
|
400
406
|
participatory_processes:
|
401
407
|
form:
|
@@ -408,7 +414,9 @@ pt-BR:
|
|
408
414
|
related_processes: Processos relacionados
|
409
415
|
scope_type_max_depth_help: Restringir a profundidade do filtro de escopo; O filtro será mostrado de modo geral ao tipo de escopo selecionado.
|
410
416
|
select_an_area: Selecione uma área
|
417
|
+
select_participatory_process_type: Selecione um tipo de processo
|
411
418
|
select_process_group: Selecione um grupo de processos
|
419
|
+
slug_help: 'Os slugs de URL são usados para gerar os URLs que apontam para este processo. Aceita apenas letras, números e traços e deve começar com uma letra. Exemplo: %{url}'
|
412
420
|
title: Informação geral
|
413
421
|
visbility: Visibilidade
|
414
422
|
content_blocks:
|
@@ -421,16 +429,19 @@ pt-BR:
|
|
421
429
|
pages:
|
422
430
|
home:
|
423
431
|
highlighted_processes:
|
432
|
+
active_processes: Processos ativos
|
424
433
|
active_step: Passo ativo
|
425
434
|
more_information: Mais Informações
|
426
435
|
participate: Participar
|
427
436
|
participate_in: Participe do processo %{resource_name}
|
428
437
|
processes_button_title: Link para a página de processos exibindo todos os processos
|
438
|
+
see_all_processes: Ver todos os processos
|
429
439
|
participatory_process_steps:
|
430
440
|
index:
|
431
441
|
back_to_process: Voltar à página do processo
|
432
442
|
participatory_processes:
|
433
443
|
filters:
|
444
|
+
all_types: Todos os tipos
|
434
445
|
counters:
|
435
446
|
active:
|
436
447
|
one: 1 processo ativo
|
@@ -456,6 +467,8 @@ pt-BR:
|
|
456
467
|
see: Ver
|
457
468
|
index:
|
458
469
|
loading: Carregando os resultados ...
|
470
|
+
show:
|
471
|
+
title: Sobre este processo
|
459
472
|
show:
|
460
473
|
area: Área
|
461
474
|
belongs_to_group: Este processo pertence a
|
data/config/locales/sk.yml
CHANGED
@@ -337,7 +337,6 @@ sk:
|
|
337
337
|
select_an_area: Vyberte rozsah
|
338
338
|
select_process_group: Vyberte skupinu procesov
|
339
339
|
title: Všeobecná informácia
|
340
|
-
visbility: Viditeľnosť
|
341
340
|
content_blocks:
|
342
341
|
highlighted_processes:
|
343
342
|
name: Zvýraznené procesy
|
@@ -351,6 +350,7 @@ sk:
|
|
351
350
|
active_step: Aktívne krok
|
352
351
|
more_information: Viac informácií
|
353
352
|
participate: Zúčastniť sa
|
353
|
+
processes_button_title: Odkaz na stránku Procesy, zobrazujúcu všetky procesy
|
354
354
|
participatory_processes:
|
355
355
|
filters:
|
356
356
|
counters:
|
data/config/locales/sr-CS.yml
CHANGED
@@ -32,3 +32,7 @@ sr:
|
|
32
32
|
participatory_processes:
|
33
33
|
form:
|
34
34
|
scope_type_max_depth_help: Ograniči obim dubine filtera; Filter će pokazivati od opšteg ka odabranom tipu obima.
|
35
|
+
pages:
|
36
|
+
home:
|
37
|
+
highlighted_processes:
|
38
|
+
processes_button_title: Veza ka strani Procesi koja prikazuje sve procese
|
data/config/locales/tr-TR.yml
CHANGED
@@ -377,7 +377,7 @@ tr:
|
|
377
377
|
select_an_area: Bir alan seçin
|
378
378
|
select_process_group: Bir işlem grubu seçin
|
379
379
|
title: Genel bilgi
|
380
|
-
visbility:
|
380
|
+
visbility: Görünürlük
|
381
381
|
content_blocks:
|
382
382
|
highlighted_processes:
|
383
383
|
name: Vurgulanan süreçler
|
@@ -392,6 +392,7 @@ tr:
|
|
392
392
|
more_information: Daha fazla bilgi
|
393
393
|
participate: Katıl
|
394
394
|
participate_in: '%{resource_name} sürecine katılın'
|
395
|
+
processes_button_title: Tüm süreçleri gösteren Süreçler sayfasına bağlantı
|
395
396
|
participatory_process_steps:
|
396
397
|
index:
|
397
398
|
back_to_process: Süreç sayfasına geri dön
|
data/config/locales/zh-CN.yml
CHANGED
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
4
|
+
|
5
|
+
require "decidim/participatory_processes/version"
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.version = Decidim::ParticipatoryProcesses.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-participatory_processes"
|
16
|
+
s.summary = "Decidim participatory processes module"
|
17
|
+
s.description = "Participatory processes 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::ParticipatoryProcesses.version
|
27
|
+
|
28
|
+
s.add_development_dependency "decidim-admin", Decidim::ParticipatoryProcesses.version
|
29
|
+
s.add_development_dependency "decidim-dev", Decidim::ParticipatoryProcesses.version
|
30
|
+
s.add_development_dependency "decidim-meetings", Decidim::ParticipatoryProcesses.version
|
31
|
+
end
|
@@ -153,7 +153,7 @@ module Decidim
|
|
153
153
|
initializer "decidim_participatory_processes.admin_process_components_menu" do
|
154
154
|
Decidim.menu :admin_participatory_process_components_menu do |menu|
|
155
155
|
current_participatory_space.components.each do |component|
|
156
|
-
caption =
|
156
|
+
caption = decidim_escape_translated(component.name)
|
157
157
|
if component.primary_stat.present?
|
158
158
|
caption += content_tag(:span, component.primary_stat, class: component.primary_stat.zero? ? "component-counter component-counter--off" : "component-counter")
|
159
159
|
end
|
@@ -11,23 +11,26 @@ FactoryBot.define do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
factory :participatory_process, class: "Decidim::ParticipatoryProcess" do
|
14
|
-
|
14
|
+
transient do
|
15
|
+
skip_injection { false }
|
16
|
+
end
|
17
|
+
title { generate_localized_title(:participatory_process_title, skip_injection: skip_injection) }
|
15
18
|
slug { generate(:participatory_process_slug) }
|
16
|
-
subtitle { generate_localized_title }
|
19
|
+
subtitle { generate_localized_title(:participatory_process_subtitle, skip_injection: skip_injection) }
|
17
20
|
weight { 1 }
|
18
|
-
short_description {
|
19
|
-
description {
|
21
|
+
short_description { generate_localized_description(:participatory_process_short_description, skip_injection: skip_injection) }
|
22
|
+
description { generate_localized_description(:participatory_process_description, skip_injection: skip_injection) }
|
20
23
|
organization
|
21
24
|
hero_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") } # Keep after organization
|
22
25
|
banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") } # Keep after organization
|
23
26
|
published_at { Time.current }
|
24
|
-
meta_scope {
|
25
|
-
developer_group { generate_localized_title }
|
26
|
-
local_area { generate_localized_title }
|
27
|
-
target { generate_localized_title }
|
28
|
-
participatory_scope { generate_localized_title }
|
29
|
-
participatory_structure { generate_localized_title }
|
30
|
-
announcement { generate_localized_title }
|
27
|
+
meta_scope { generate_localized_word(:participatory_process_meta_scope, skip_injection: skip_injection) }
|
28
|
+
developer_group { generate_localized_title(:participatory_process_developer_group, skip_injection: skip_injection) }
|
29
|
+
local_area { generate_localized_title(:participatory_process_local_area, skip_injection: skip_injection) }
|
30
|
+
target { generate_localized_title(:participatory_process_target, skip_injection: skip_injection) }
|
31
|
+
participatory_scope { generate_localized_title(:participatory_process_participatory_scope, skip_injection: skip_injection) }
|
32
|
+
participatory_structure { generate_localized_title(:participatory_process_participatory_structure, skip_injection: skip_injection) }
|
33
|
+
announcement { generate_localized_title(:participatory_process_announcement, skip_injection: skip_injection) }
|
31
34
|
show_metrics { true }
|
32
35
|
show_statistics { true }
|
33
36
|
private_space { false }
|
@@ -58,6 +61,7 @@ FactoryBot.define do
|
|
58
61
|
create(:participatory_process_step,
|
59
62
|
active: true,
|
60
63
|
end_date: evaluator.current_step_ends,
|
64
|
+
skip_injection: evaluator.skip_injection,
|
61
65
|
participatory_process: participatory_process)
|
62
66
|
participatory_process.reload
|
63
67
|
participatory_process.steps.reload
|
@@ -86,33 +90,40 @@ FactoryBot.define do
|
|
86
90
|
end
|
87
91
|
|
88
92
|
factory :participatory_process_group, class: "Decidim::ParticipatoryProcessGroup" do
|
89
|
-
|
90
|
-
|
93
|
+
transient do
|
94
|
+
skip_injection { false }
|
95
|
+
end
|
96
|
+
title { generate_localized_title(:participatory_process_group_title, skip_injection: skip_injection) }
|
97
|
+
description { generate_localized_description(:participatory_process_group_description, skip_injection: skip_injection) }
|
91
98
|
hero_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") }
|
92
99
|
organization
|
93
100
|
hashtag { Faker::Internet.slug }
|
94
101
|
group_url { Faker::Internet.url }
|
95
|
-
developer_group { generate_localized_title }
|
96
|
-
local_area { generate_localized_title }
|
102
|
+
developer_group { generate_localized_title(:participatory_process_group_developer_group, skip_injection: skip_injection) }
|
103
|
+
local_area { generate_localized_title(:participatory_process_group_local_area, skip_injection: skip_injection) }
|
97
104
|
meta_scope { Decidim::Faker::Localized.word }
|
98
|
-
target { generate_localized_title }
|
99
|
-
participatory_scope { generate_localized_title }
|
100
|
-
participatory_structure { generate_localized_title }
|
105
|
+
target { generate_localized_title(:participatory_process_group_target, skip_injection: skip_injection) }
|
106
|
+
participatory_scope { generate_localized_title(:participatory_process_group_participatory_scope, skip_injection: skip_injection) }
|
107
|
+
participatory_structure { generate_localized_title(:participatory_process_group_participatory_structure, skip_injection: skip_injection) }
|
101
108
|
|
102
109
|
trait :promoted do
|
103
110
|
promoted { true }
|
104
111
|
end
|
105
112
|
|
106
113
|
trait :with_participatory_processes do
|
107
|
-
after(:create) do |participatory_process_group|
|
108
|
-
create_list(:participatory_process, 2, :published, organization: participatory_process_group.organization, participatory_process_group: participatory_process_group
|
114
|
+
after(:create) do |participatory_process_group, evaluator|
|
115
|
+
create_list(:participatory_process, 2, :published, organization: participatory_process_group.organization, participatory_process_group: participatory_process_group,
|
116
|
+
skip_injection: evaluator.skip_injection)
|
109
117
|
end
|
110
118
|
end
|
111
119
|
end
|
112
120
|
|
113
121
|
factory :participatory_process_step, class: "Decidim::ParticipatoryProcessStep" do
|
114
|
-
|
115
|
-
|
122
|
+
transient do
|
123
|
+
skip_injection { false }
|
124
|
+
end
|
125
|
+
title { generate_localized_title(:participatory_process_step_title, skip_injection: skip_injection) }
|
126
|
+
description { generate_localized_description(:participatory_process_step_description, skip_injection: skip_injection) }
|
116
127
|
start_date { 1.month.ago }
|
117
128
|
end_date { 2.months.from_now }
|
118
129
|
position { nil }
|
@@ -129,25 +140,31 @@ FactoryBot.define do
|
|
129
140
|
end
|
130
141
|
|
131
142
|
factory :participatory_process_type, class: "Decidim::ParticipatoryProcessType" do
|
132
|
-
|
143
|
+
transient do
|
144
|
+
skip_injection { false }
|
145
|
+
end
|
146
|
+
title { generate_localized_title(:participatory_process_type_title, skip_injection: skip_injection) }
|
133
147
|
organization
|
134
148
|
|
135
149
|
trait :with_active_participatory_processes do
|
136
|
-
after(:create) do |participatory_process_type|
|
137
|
-
create_list(:participatory_process, 2, :active, :published, organization: participatory_process_type.organization, participatory_process_type: participatory_process_type
|
150
|
+
after(:create) do |participatory_process_type, evaluator|
|
151
|
+
create_list(:participatory_process, 2, :active, :published, organization: participatory_process_type.organization, participatory_process_type: participatory_process_type,
|
152
|
+
skip_injection: evaluator.skip_injection)
|
138
153
|
end
|
139
154
|
end
|
140
155
|
|
141
156
|
trait :with_past_participatory_processes do
|
142
|
-
after(:create) do |participatory_process_type|
|
143
|
-
create_list(:participatory_process, 2, :past, :published, organization: participatory_process_type.organization, participatory_process_type: participatory_process_type
|
157
|
+
after(:create) do |participatory_process_type, evaluator|
|
158
|
+
create_list(:participatory_process, 2, :past, :published, organization: participatory_process_type.organization, participatory_process_type: participatory_process_type,
|
159
|
+
skip_injection: evaluator.skip_injection)
|
144
160
|
end
|
145
161
|
end
|
146
162
|
end
|
147
163
|
|
148
164
|
factory :process_admin, parent: :user, class: "Decidim::User" do
|
149
165
|
transient do
|
150
|
-
|
166
|
+
skip_injection { false }
|
167
|
+
participatory_process { create(:participatory_process, skip_injection: skip_injection) }
|
151
168
|
end
|
152
169
|
|
153
170
|
organization { participatory_process.organization }
|
@@ -157,13 +174,14 @@ FactoryBot.define do
|
|
157
174
|
create :participatory_process_user_role,
|
158
175
|
user: user,
|
159
176
|
participatory_process: evaluator.participatory_process,
|
160
|
-
role: :admin
|
177
|
+
role: :admin, skip_injection: evaluator.skip_injection
|
161
178
|
end
|
162
179
|
end
|
163
180
|
|
164
181
|
factory :process_collaborator, parent: :user, class: "Decidim::User" do
|
165
182
|
transient do
|
166
|
-
|
183
|
+
skip_injection { false }
|
184
|
+
participatory_process { create(:participatory_process, skip_injection: skip_injection) }
|
167
185
|
end
|
168
186
|
|
169
187
|
organization { participatory_process.organization }
|
@@ -173,13 +191,14 @@ FactoryBot.define do
|
|
173
191
|
create :participatory_process_user_role,
|
174
192
|
user: user,
|
175
193
|
participatory_process: evaluator.participatory_process,
|
176
|
-
role: :collaborator
|
194
|
+
role: :collaborator, skip_injection: evaluator.skip_injection
|
177
195
|
end
|
178
196
|
end
|
179
197
|
|
180
198
|
factory :process_moderator, parent: :user, class: "Decidim::User" do
|
181
199
|
transient do
|
182
|
-
|
200
|
+
skip_injection { false }
|
201
|
+
participatory_process { create(:participatory_process, skip_injection: skip_injection) }
|
183
202
|
end
|
184
203
|
|
185
204
|
organization { participatory_process.organization }
|
@@ -189,13 +208,14 @@ FactoryBot.define do
|
|
189
208
|
create :participatory_process_user_role,
|
190
209
|
user: user,
|
191
210
|
participatory_process: evaluator.participatory_process,
|
192
|
-
role: :moderator
|
211
|
+
role: :moderator, skip_injection: evaluator.skip_injection
|
193
212
|
end
|
194
213
|
end
|
195
214
|
|
196
215
|
factory :process_valuator, parent: :user, class: "Decidim::User" do
|
197
216
|
transient do
|
198
|
-
|
217
|
+
skip_injection { false }
|
218
|
+
participatory_process { create(:participatory_process, skip_injection: skip_injection) }
|
199
219
|
end
|
200
220
|
|
201
221
|
organization { participatory_process.organization }
|
@@ -205,13 +225,16 @@ FactoryBot.define do
|
|
205
225
|
create :participatory_process_user_role,
|
206
226
|
user: user,
|
207
227
|
participatory_process: evaluator.participatory_process,
|
208
|
-
role: :valuator
|
228
|
+
role: :valuator, skip_injection: evaluator.skip_injection
|
209
229
|
end
|
210
230
|
end
|
211
231
|
|
212
232
|
factory :participatory_process_user_role, class: "Decidim::ParticipatoryProcessUserRole" do
|
233
|
+
transient do
|
234
|
+
skip_injection { false }
|
235
|
+
end
|
213
236
|
user
|
214
|
-
participatory_process { create :participatory_process, organization: user.organization }
|
237
|
+
participatory_process { create :participatory_process, organization: user.organization, skip_injection: skip_injection }
|
215
238
|
role { "admin" }
|
216
239
|
end
|
217
240
|
end
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-participatory_processes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.27.
|
4
|
+
version: 0.27.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
8
8
|
- Marc Riera Casals
|
9
9
|
- Oriol Gual Oliva
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,56 +18,56 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.27.
|
21
|
+
version: 0.27.6
|
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.27.
|
28
|
+
version: 0.27.6
|
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.27.
|
35
|
+
version: 0.27.6
|
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.27.
|
42
|
+
version: 0.27.6
|
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.27.
|
49
|
+
version: 0.27.6
|
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.27.
|
56
|
+
version: 0.27.6
|
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.27.
|
63
|
+
version: 0.27.6
|
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.27.
|
70
|
+
version: 0.27.6
|
71
71
|
description: Participatory processes component for decidim.
|
72
72
|
email:
|
73
73
|
- josepjaume@gmail.com
|
@@ -294,7 +294,6 @@ files:
|
|
294
294
|
- app/views/layouts/decidim/admin/participatory_processes.html.erb
|
295
295
|
- app/views/layouts/decidim/participatory_process.html.erb
|
296
296
|
- config/assets.rb
|
297
|
-
- config/environment.rb
|
298
297
|
- config/locales/am-ET.yml
|
299
298
|
- config/locales/ar-SA.yml
|
300
299
|
- config/locales/ar.yml
|
@@ -327,6 +326,7 @@ files:
|
|
327
326
|
- config/locales/ga-IE.yml
|
328
327
|
- config/locales/gl.yml
|
329
328
|
- config/locales/gn-PY.yml
|
329
|
+
- config/locales/he-IL.yml
|
330
330
|
- config/locales/hr-HR.yml
|
331
331
|
- config/locales/hr.yml
|
332
332
|
- config/locales/hu.yml
|
@@ -425,6 +425,7 @@ files:
|
|
425
425
|
- db/seeds/city.jpeg
|
426
426
|
- db/seeds/city2.jpeg
|
427
427
|
- db/seeds/homepage_image.jpg
|
428
|
+
- decidim-participatory_processes.gemspec
|
428
429
|
- lib/decidim/api/participatory_process_group_type.rb
|
429
430
|
- lib/decidim/api/participatory_process_input_filter.rb
|
430
431
|
- lib/decidim/api/participatory_process_input_sort.rb
|
@@ -444,23 +445,23 @@ homepage: https://github.com/decidim/decidim
|
|
444
445
|
licenses:
|
445
446
|
- AGPL-3.0
|
446
447
|
metadata: {}
|
447
|
-
post_install_message:
|
448
|
+
post_install_message:
|
448
449
|
rdoc_options: []
|
449
450
|
require_paths:
|
450
451
|
- lib
|
451
452
|
required_ruby_version: !ruby/object:Gem::Requirement
|
452
453
|
requirements:
|
453
|
-
- - "
|
454
|
+
- - "~>"
|
454
455
|
- !ruby/object:Gem::Version
|
455
|
-
version:
|
456
|
+
version: 3.0.0
|
456
457
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
457
458
|
requirements:
|
458
459
|
- - ">="
|
459
460
|
- !ruby/object:Gem::Version
|
460
461
|
version: '0'
|
461
462
|
requirements: []
|
462
|
-
rubygems_version: 3.
|
463
|
-
signing_key:
|
463
|
+
rubygems_version: 3.2.22
|
464
|
+
signing_key:
|
464
465
|
specification_version: 4
|
465
466
|
summary: Decidim participatory processes module
|
466
467
|
test_files: []
|
data/config/environment.rb
DELETED