decidim-participatory_processes 0.13.1 → 0.14.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/_all_processes.erb +6 -0
  3. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/show.erb +32 -0
  4. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/single_process.erb +39 -0
  5. data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb +40 -0
  6. data/app/cells/decidim/participatory_processes/process_cell.rb +1 -1
  7. data/app/cells/decidim/participatory_processes/process_filters/filter_tabs.erb +16 -0
  8. data/app/cells/decidim/participatory_processes/process_filters/show.erb +13 -0
  9. data/app/cells/decidim/participatory_processes/process_filters_cell.rb +57 -0
  10. data/app/cells/decidim/participatory_processes/process_group_cell.rb +1 -1
  11. data/app/cells/decidim/participatory_processes/process_group_m_cell.rb +1 -1
  12. data/app/cells/decidim/participatory_processes/process_m/tags.erb +8 -6
  13. data/app/controllers/decidim/participatory_processes/admin/participatory_space_private_users_controller.rb +0 -4
  14. data/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb +23 -3
  15. data/app/forms/decidim/participatory_processes/admin/participatory_process_step_form.rb +2 -12
  16. data/app/models/decidim/participatory_process.rb +4 -4
  17. data/app/queries/decidim/participatory_processes/filtered_participatory_process_groups.rb +2 -2
  18. data/app/views/decidim/participatory_processes/admin/participatory_process_copies/new.html.erb +1 -1
  19. data/app/views/decidim/participatory_processes/participatory_process_groups/show.html.erb +1 -2
  20. data/app/views/decidim/participatory_processes/participatory_processes/_order_by_processes.html.erb +1 -0
  21. data/app/views/decidim/participatory_processes/participatory_processes/index.html.erb +9 -1
  22. data/app/views/decidim/participatory_processes/participatory_processes/index.js.erb +1 -1
  23. data/app/views/decidim/participatory_processes/participatory_processes/show.html.erb +9 -0
  24. data/app/views/layouts/decidim/participatory_process.html.erb +0 -2
  25. data/config/locales/ca.yml +36 -14
  26. data/config/locales/en.yml +36 -14
  27. data/config/locales/es-PY.yml +36 -14
  28. data/config/locales/es.yml +36 -14
  29. data/config/locales/eu.yml +36 -14
  30. data/config/locales/fi.yml +80 -58
  31. data/config/locales/fr.yml +32 -10
  32. data/config/locales/gl.yml +36 -14
  33. data/config/locales/hu.yml +371 -0
  34. data/config/locales/it.yml +36 -14
  35. data/config/locales/nl.yml +36 -14
  36. data/config/locales/pl.yml +46 -16
  37. data/config/locales/pt-BR.yml +42 -20
  38. data/config/locales/pt.yml +36 -14
  39. data/config/locales/ru.yml +49 -19
  40. data/config/locales/sv.yml +105 -83
  41. data/config/locales/uk.yml +51 -21
  42. data/lib/decidim/participatory_processes/admin_engine.rb +1 -0
  43. data/lib/decidim/participatory_processes/engine.rb +5 -16
  44. data/lib/decidim/participatory_processes/participatory_space.rb +12 -4
  45. data/lib/decidim/participatory_processes/test/factories.rb +12 -12
  46. data/lib/decidim/participatory_processes/version.rb +1 -1
  47. metadata +18 -11
  48. data/app/views/decidim/participatory_processes/_order_by_processes.html.erb +0 -12
  49. data/app/views/decidim/participatory_processes/pages/home/_highlighted_processes.html.erb +0 -35
@@ -3,6 +3,6 @@ $(() => {
3
3
  const $loading = $grid.find('.loading');
4
4
 
5
5
  $grid.find('.card-grid').html('<%= j(render(collection)).strip.html_safe %>');
6
- $grid.find('.processes-grid-order-by').html('<%= j(render(partial: "decidim/participatory_processes/order_by_processes", locals: { include_filter: true })).strip.html_safe %>');
6
+ $grid.find('.processes-grid-order-by').html('<%= j(render(partial: "decidim/participatory_processes/participatory_processes/order_by_processes", locals: { include_filter: true })).strip.html_safe %>');
7
7
  $loading.hide();
8
8
  });
@@ -5,6 +5,15 @@
5
5
  twitter_handler: current_organization.twitter_handler
6
6
  }) %>
7
7
 
8
+ <%
9
+ edit_link(
10
+ resource_locator(current_participatory_space).edit,
11
+ :update,
12
+ :process,
13
+ process: current_participatory_space
14
+ )
15
+ %>
16
+
8
17
  <% if current_participatory_space.private_space? %>
9
18
  <%= render partial: "decidim/shared/private_participatory_space", locals: { text: t("participatory_processes.show.private_space", scope: "decidim") } %>
10
19
  <% end %>
@@ -19,8 +19,6 @@
19
19
  </div>
20
20
  </div>
21
21
  <% end %>
22
-
23
- <%= render "layouts/decidim/component_authorization_modals" %>
24
22
  <% end %>
25
23
 
26
24
  <% provide :meta_image_url, current_participatory_space.banner_image.url %>
@@ -13,11 +13,11 @@ ca:
13
13
  end_date: Data de finalització
14
14
  hashtag: Hashtag
15
15
  hero_image: Imatge de portada
16
- local_area: Àrea municipal
16
+ local_area: Àrea d'organització
17
17
  meta_scope: Metadades d'àmbit
18
18
  participatory_process_group_id: Grup de processos
19
- participatory_scope: Àmbit participatiu
20
- participatory_structure: Estructura participativa
19
+ participatory_scope: El que es decideix
20
+ participatory_structure: Com es decideix
21
21
  promoted: Destacat
22
22
  published_at: Publicat el
23
23
  scope_id: Àmbit
@@ -27,7 +27,7 @@ ca:
27
27
  slug: Nom curt d'URL
28
28
  start_date: Data d'inici
29
29
  subtitle: Subtítol
30
- target: A qui va dirigit
30
+ target: Qui participa
31
31
  title: Títol
32
32
  participatory_process_group:
33
33
  description: Descripció
@@ -257,7 +257,9 @@ ca:
257
257
  processes: Processos
258
258
  participatory_process_groups:
259
259
  show:
260
- group_participatory_processes: Processos per a %{group}
260
+ group_participatory_processes:
261
+ one: 1 procés per a %{group}
262
+ other: "%{count} processos per a %{group}"
261
263
  title: Grups de processos participatius
262
264
  participatory_process_steps:
263
265
  index:
@@ -272,22 +274,46 @@ ca:
272
274
  form:
273
275
  announcement_help: El text que introdueixis aquí es mostrarà a l'usuari just a sota de la informació del procés.
274
276
  slug_help: 'Els noms curts d''URL s''utilitzen per generar els URL que apunten a aquest procés. Només accepta lletres, números i guions, i ha de començar amb una lletra. Exemple: %{url}'
277
+ content_blocks:
278
+ highlighted_processes:
279
+ name: Processos destacats
275
280
  index:
276
281
  title: Processos participatius
277
- order_by_processes:
278
- active: Actius
279
- all: Tots
280
- past: Passats
281
- upcoming: Propers
282
282
  pages:
283
283
  home:
284
284
  highlighted_processes:
285
285
  active_processes: Processos actius
286
286
  active_step: Pas actiu
287
+ more_information: Més informació
288
+ participate: Participa
287
289
  see_all_processes: Veure tots els processos
288
290
  participatory_process_groups:
289
291
  none: Cap
290
292
  participatory_processes:
293
+ filters:
294
+ counters:
295
+ active:
296
+ one: 1 procés actiu
297
+ other: "%{count} processos actius"
298
+ all:
299
+ one: 1 procés
300
+ other: "%{count} processos"
301
+ past:
302
+ one: 1 procés passat
303
+ other: "%{count} processos passats"
304
+ upcoming:
305
+ one: 1 procés proper
306
+ other: "%{count} processos propers"
307
+ explanations:
308
+ no_active: Sense processos actius
309
+ no_active_nor_upcoming: No hi ha processos actius ni futurs
310
+ no_active_nor_upcoming_callout: No hi ha processos actius ni futurs. Aquí hi ha una llista dels anteriors.
311
+ names:
312
+ active: Actius
313
+ all: Tots
314
+ past: Passats
315
+ upcoming: Propers
316
+ see: Veure
291
317
  index:
292
318
  loading: Carregant resultats...
293
319
  show:
@@ -330,10 +356,6 @@ ca:
330
356
  participatory_processes:
331
357
  index:
332
358
  promoted_processes: Processos destacats
333
- order_by_processes:
334
- processes:
335
- one: "%{count} procés"
336
- other: "%{count} processos"
337
359
  participatory_process:
338
360
  active_step: 'Fase actual:'
339
361
  take_part: Participa
@@ -14,11 +14,11 @@ en:
14
14
  end_date: End date
15
15
  hashtag: Hashtag
16
16
  hero_image: Home image
17
- local_area: Local area
17
+ local_area: Organization area
18
18
  meta_scope: Scope metadata
19
19
  participatory_process_group_id: Processes group
20
- participatory_scope: Participatory scope
21
- participatory_structure: Participatory structure
20
+ participatory_scope: What is decided
21
+ participatory_structure: How is it decided
22
22
  promoted: Promoted
23
23
  published_at: Published at
24
24
  scope_id: Scope
@@ -28,7 +28,7 @@ en:
28
28
  slug: URL slug
29
29
  start_date: Start date
30
30
  subtitle: Subtitle
31
- target: Target
31
+ target: Who participates
32
32
  title: Title
33
33
  participatory_process_group:
34
34
  description: Description
@@ -258,7 +258,9 @@ en:
258
258
  processes: Processes
259
259
  participatory_process_groups:
260
260
  show:
261
- group_participatory_processes: Processes for %{group}
261
+ group_participatory_processes:
262
+ one: 1 processes for %{group}
263
+ other: "%{count} processes for %{group}"
262
264
  title: Participatory process groups
263
265
  participatory_process_steps:
264
266
  index:
@@ -273,22 +275,46 @@ en:
273
275
  form:
274
276
  announcement_help: The text you enter here will be shown to the user right below the process information.
275
277
  slug_help: 'URL slugs are used to generate the URLs that point to this process. Only accepts letters, numbers and dashes, and must start with a letter. Example: %{url}'
278
+ content_blocks:
279
+ highlighted_processes:
280
+ name: Highlighted processes
276
281
  index:
277
282
  title: Participatory processes
278
- order_by_processes:
279
- active: Active
280
- all: All
281
- past: Past
282
- upcoming: Upcoming
283
283
  pages:
284
284
  home:
285
285
  highlighted_processes:
286
286
  active_processes: Active processes
287
287
  active_step: Active step
288
+ more_information: More information
289
+ participate: Participate
288
290
  see_all_processes: See all processes
289
291
  participatory_process_groups:
290
292
  none: None
291
293
  participatory_processes:
294
+ filters:
295
+ counters:
296
+ active:
297
+ one: 1 active process
298
+ other: "%{count} active processes"
299
+ all:
300
+ one: 1 process
301
+ other: "%{count} processes"
302
+ past:
303
+ one: 1 past process
304
+ other: "%{count} past processes"
305
+ upcoming:
306
+ one: 1 upcoming process
307
+ other: "%{count} upcoming processes"
308
+ explanations:
309
+ no_active: No active processes
310
+ no_active_nor_upcoming: No active nor upcoming processes
311
+ no_active_nor_upcoming_callout: There are no active nor upcoming processes. Here is a list of the past ones.
312
+ names:
313
+ active: Active
314
+ all: All
315
+ past: Past
316
+ upcoming: Upcoming
317
+ see: See
292
318
  index:
293
319
  loading: Loading results...
294
320
  show:
@@ -331,10 +357,6 @@ en:
331
357
  participatory_processes:
332
358
  index:
333
359
  promoted_processes: Highlighted processes
334
- order_by_processes:
335
- processes:
336
- one: "%{count} process"
337
- other: "%{count} processes"
338
360
  participatory_process:
339
361
  active_step: 'Current step:'
340
362
  take_part: Take part
@@ -13,11 +13,11 @@ es-PY:
13
13
  end_date: Fecha de finalización
14
14
  hashtag: Hashtag
15
15
  hero_image: Imagen de portada
16
- local_area: Áreas municipales
16
+ local_area: Área de organización
17
17
  meta_scope: 'Metadatos: ámbito'
18
18
  participatory_process_group_id: Grupo de procesos
19
- participatory_scope: Ámbito participativo
20
- participatory_structure: Estructura participativa
19
+ participatory_scope: Qué se decide
20
+ participatory_structure: Cómo se decide
21
21
  promoted: Destacado
22
22
  published_at: Publicado en
23
23
  scope_id: Ámbito
@@ -27,7 +27,7 @@ es-PY:
27
27
  slug: Texto corto de URL
28
28
  start_date: Fecha de inicio
29
29
  subtitle: Subtítulo
30
- target: '¿A quién va dirigida?'
30
+ target: Quién participa
31
31
  title: Título
32
32
  participatory_process_group:
33
33
  description: Descripción
@@ -257,7 +257,9 @@ es-PY:
257
257
  processes: Procesos
258
258
  participatory_process_groups:
259
259
  show:
260
- group_participatory_processes: Procesos para %{group}
260
+ group_participatory_processes:
261
+ one: 1 proceso para %{group}
262
+ other: "%{count} procesos para %{group}"
261
263
  title: Grupos de procesos participativos
262
264
  participatory_process_steps:
263
265
  index:
@@ -272,22 +274,46 @@ es-PY:
272
274
  form:
273
275
  announcement_help: El texto que ingreses aquí se mostrará al usuario justo debajo de la información del proceso.
274
276
  slug_help: 'Los textos cortos de URL se utilizan para generar las URL que apuntan a este proceso. Sólo acepta letras, números y guiones, y debe comenzar con una letra. Ejemplo: %{url}'
277
+ content_blocks:
278
+ highlighted_processes:
279
+ name: Procesos destacados
275
280
  index:
276
281
  title: Procesos participativos
277
- order_by_processes:
278
- active: Activa
279
- all: Todos
280
- past: Pasadas
281
- upcoming: Próximas
282
282
  pages:
283
283
  home:
284
284
  highlighted_processes:
285
285
  active_processes: Procesos activos
286
286
  active_step: Paso activo
287
+ more_information: Más información
288
+ participate: Participar
287
289
  see_all_processes: Ver todos los procesos
288
290
  participatory_process_groups:
289
291
  none: Ninguna
290
292
  participatory_processes:
293
+ filters:
294
+ counters:
295
+ active:
296
+ one: 1 proceso activo
297
+ other: "%{count} procesos activos"
298
+ all:
299
+ one: 1 proceso
300
+ other: "%{count} procesos"
301
+ past:
302
+ one: 1 proceso pasado
303
+ other: "%{count} procesos pasados"
304
+ upcoming:
305
+ one: 1 proceso futuro
306
+ other: "%{count} próximos procesos"
307
+ explanations:
308
+ no_active: Sin procesos activos
309
+ no_active_nor_upcoming: Sin procesos activos ni futuros
310
+ no_active_nor_upcoming_callout: No hay procesos activos ni futuros. Aquí hay una lista de los pasados.
311
+ names:
312
+ active: Activa
313
+ all: Todos
314
+ past: Pasadas
315
+ upcoming: Próximas
316
+ see: Ver
291
317
  index:
292
318
  loading: Cargando resultados...
293
319
  show:
@@ -330,10 +356,6 @@ es-PY:
330
356
  participatory_processes:
331
357
  index:
332
358
  promoted_processes: Procesos destacados
333
- order_by_processes:
334
- processes:
335
- one: "%{count} proceso"
336
- other: "%{count} procesos"
337
359
  participatory_process:
338
360
  active_step: 'Fase actual:'
339
361
  take_part: Participa
@@ -13,11 +13,11 @@ es:
13
13
  end_date: Fecha de finalización
14
14
  hashtag: Hashtag
15
15
  hero_image: Imagen de portada
16
- local_area: Áreas municipales
16
+ local_area: Área de organización
17
17
  meta_scope: 'Metadatos: ámbito'
18
18
  participatory_process_group_id: Grupo de procesos
19
- participatory_scope: Ámbito participativo
20
- participatory_structure: Estructura participativa
19
+ participatory_scope: Qué se decide
20
+ participatory_structure: Cómo se decide
21
21
  promoted: Destacado
22
22
  published_at: Publicado en
23
23
  scope_id: Ámbito
@@ -27,7 +27,7 @@ es:
27
27
  slug: Texto corto de URL
28
28
  start_date: Fecha de inicio
29
29
  subtitle: Subtítulo
30
- target: '¿A quién va dirigida?'
30
+ target: Quién participa
31
31
  title: Título
32
32
  participatory_process_group:
33
33
  description: Descripción
@@ -257,7 +257,9 @@ es:
257
257
  processes: Procesos
258
258
  participatory_process_groups:
259
259
  show:
260
- group_participatory_processes: Procesos para %{group}
260
+ group_participatory_processes:
261
+ one: 1 proceso para %{group}
262
+ other: "%{count} procesos para %{group}"
261
263
  title: Grupos de procesos participativos
262
264
  participatory_process_steps:
263
265
  index:
@@ -272,22 +274,46 @@ es:
272
274
  form:
273
275
  announcement_help: El texto que ingreses aquí se mostrará al usuario justo debajo de la información del proceso.
274
276
  slug_help: 'Los textos cortos de URL se utilizan para generar las URL que apuntan a este proceso. Sólo acepta letras, números y guiones, y debe comenzar con una letra. Ejemplo: %{url}'
277
+ content_blocks:
278
+ highlighted_processes:
279
+ name: Procesos destacados
275
280
  index:
276
281
  title: Procesos participativos
277
- order_by_processes:
278
- active: Activa
279
- all: Todos
280
- past: Pasadas
281
- upcoming: Próximas
282
282
  pages:
283
283
  home:
284
284
  highlighted_processes:
285
285
  active_processes: Procesos activos
286
286
  active_step: Paso activo
287
+ more_information: Más información
288
+ participate: Participar
287
289
  see_all_processes: Ver todos los procesos
288
290
  participatory_process_groups:
289
291
  none: Ninguna
290
292
  participatory_processes:
293
+ filters:
294
+ counters:
295
+ active:
296
+ one: 1 proceso activo
297
+ other: "%{count} procesos activos"
298
+ all:
299
+ one: 1 proceso
300
+ other: "%{count} procesos"
301
+ past:
302
+ one: 1 proceso pasado
303
+ other: "%{count} procesos pasados"
304
+ upcoming:
305
+ one: 1 próximo proceso
306
+ other: "%{count} próximos procesos"
307
+ explanations:
308
+ no_active: Sin procesos activos
309
+ no_active_nor_upcoming: Sin procesos activos ni futuros
310
+ no_active_nor_upcoming_callout: No hay procesos activos ni futuros. Aquí hay una lista de los pasados.
311
+ names:
312
+ active: Activa
313
+ all: Todos
314
+ past: Pasadas
315
+ upcoming: Próximas
316
+ see: Ver
291
317
  index:
292
318
  loading: Cargando resultados...
293
319
  show:
@@ -330,10 +356,6 @@ es:
330
356
  participatory_processes:
331
357
  index:
332
358
  promoted_processes: Procesos destacados
333
- order_by_processes:
334
- processes:
335
- one: "%{count} proceso"
336
- other: "%{count} procesos"
337
359
  participatory_process:
338
360
  active_step: 'Fase actual:'
339
361
  take_part: Participa
@@ -13,11 +13,11 @@ eu:
13
13
  end_date: Bukaera-data
14
14
  hashtag: Traola
15
15
  hero_image: Orri nagusiko irudia
16
- local_area: Udal-alorrak
16
+ local_area: Antolakuntza eremua
17
17
  meta_scope: 'Metadatuak: esparrua'
18
18
  participatory_process_group_id: Prozesu-multzoa
19
- participatory_scope: Partehartze esparrua
20
- participatory_structure: Partehartze egitura
19
+ participatory_scope: Zer erabaki
20
+ participatory_structure: Nola erabakitzen da?
21
21
  promoted: Nabarmendua
22
22
  published_at: Argitaratu at
23
23
  scope_id: Esparrua
@@ -27,7 +27,7 @@ eu:
27
27
  slug: URL laburra
28
28
  start_date: Hasiera-data
29
29
  subtitle: Azpititulua
30
- target: Nori zuzentzen zaio?
30
+ target: Nor parte hartzen du
31
31
  title: Titulua
32
32
  participatory_process_group:
33
33
  description: Deskribapena
@@ -257,7 +257,9 @@ eu:
257
257
  processes: Prozesuak
258
258
  participatory_process_groups:
259
259
  show:
260
- group_participatory_processes: '%{group} talderako prozesuak'
260
+ group_participatory_processes:
261
+ one: 1 prozesu %{group}
262
+ other: "%{count} prozesu %{group}"
261
263
  title: Parte-hartze prozesuko taldeak
262
264
  participatory_process_steps:
263
265
  index:
@@ -272,22 +274,46 @@ eu:
272
274
  form:
273
275
  announcement_help: Hemen sartzen duzun testua erabiltzaileari erakutsiko zaio prozesuaren informazioaren azpitik.
274
276
  slug_help: 'URL slugs erabiltzen dira prozesu hau adierazten duten URLak sortzeko. Letrak, zenbakiak eta marratxoak soilik onartzen ditu eta letra batekin hasi behar duzu. Adibidea: %{url}'
277
+ content_blocks:
278
+ highlighted_processes:
279
+ name: Prozesu nabarmenak
275
280
  index:
276
281
  title: Prozesu partizipatiboak
277
- order_by_processes:
278
- active: Aktiboa
279
- all: guztiak
280
- past: Aurrekoak
281
- upcoming: Hurrengoak
282
282
  pages:
283
283
  home:
284
284
  highlighted_processes:
285
285
  active_processes: Prozesu aktiboak
286
286
  active_step: Urratsa aktiboa
287
+ more_information: Informazio gehiago
288
+ participate: Parte hartu
287
289
  see_all_processes: Ikusi prozesu guztiak
288
290
  participatory_process_groups:
289
291
  none: Bat bera ere ez
290
292
  participatory_processes:
293
+ filters:
294
+ counters:
295
+ active:
296
+ one: 1 prozesu aktibo
297
+ other: "%{count} prozesu aktiboak"
298
+ all:
299
+ one: 1 prozesu
300
+ other: "%{count} prozesu"
301
+ past:
302
+ one: 1 iraganeko prozesua
303
+ other: "%{count} prozesu iraganean"
304
+ upcoming:
305
+ one: 1 hurrengo prozesua
306
+ other: "%{count} hurrengo prozesuetan"
307
+ explanations:
308
+ no_active: Ez dago prozesu aktiborik
309
+ no_active_nor_upcoming: Prozesu aktibo ez etorkizunik ez
310
+ no_active_nor_upcoming_callout: Prozesu aktibo eta ez datoz bat. Hona hemen iraganekoen zerrenda.
311
+ names:
312
+ active: Aktiboa
313
+ all: guztiak
314
+ past: Aurrekoak
315
+ upcoming: Hurrengoak
316
+ see: Ikusi
291
317
  index:
292
318
  loading: Emaitzak kargatzen...
293
319
  show:
@@ -330,10 +356,6 @@ eu:
330
356
  participatory_processes:
331
357
  index:
332
358
  promoted_processes: Prozesu nabarmenduak
333
- order_by_processes:
334
- processes:
335
- one: "%{count} prozesu"
336
- other: "%{count} prozesu"
337
359
  participatory_process:
338
360
  active_step: 'Oraingo fasea:'
339
361
  take_part: Parte hartu