decidim-participatory_processes 0.27.0 → 0.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bcc229e73e8c6c1b7e45d93225d832a8c81c7dbcf2511dfb38c24a53727b1f2
4
- data.tar.gz: 5941590410ece3aebc8ce71b0bf9486a1ed9c8d2eca11ca9cf9dc6b2f05191af
3
+ metadata.gz: a09d7f282d5fe3150e9fc17e3ac6f00a08e33f8b590273e41b3eee8c1e9dfad6
4
+ data.tar.gz: '029768108cd93985244287a96862822854c66da6408f3353d4f82ffc79e3333d'
5
5
  SHA512:
6
- metadata.gz: 62e7058122df895648b7ee6723e2fa15a2599eb8b16f86dfe61c509d6d5c63d1e00b9113d51db98128d0ed3924ebc15c3dbc900b0c4ea91147eaf45a5031346c
7
- data.tar.gz: 4c77531511765ebd53229ffdfab4d4ae94821fb78b17a2fb276f4eb3e3c17342045e558a894eed2be2ca9a7545033bdf1c8f794df560372566e9f6dfe01c2838
6
+ metadata.gz: 291a1461058544b16ff98e091697008ebc6b671d58aadf289bd9f9b482f89cc57397902a8a05dc4db626399d040df144da3785dc530f6f4674126a9763d617eb
7
+ data.tar.gz: 1b6aa38ffc16ce3a7fc5cf009cb339468556bee36afb6b30ca80973734abc1c11d3d3b795226bc1ed935fb9159b7a16b7f4706b545c4caa2e011f179570cb6d1
@@ -2,7 +2,7 @@
2
2
  <h2 class="heading2"><%= translated_attribute(participatory_process_group.title) %></h2>
3
3
  <div class="row">
4
4
  <div class="columns medium-9">
5
- <%= decidim_sanitize_editor translated_attribute(participatory_process_group.description) %>
5
+ <%= decidim_sanitize_editor_admin translated_attribute(participatory_process_group.description) %>
6
6
  <div class="row">
7
7
  <div class="column medium-6 text-muted">
8
8
  <%= icon "grid-three-up", role: "img", "aria-hidden": true, class: "mr-xs" %>
@@ -43,11 +43,18 @@ module Decidim
43
43
  end
44
44
 
45
45
  def participatory_processes_count
46
- @participatory_processes_count ||= participatory_process_group.participatory_processes.count
46
+ @participatory_processes_count ||= processes.count
47
47
  end
48
48
 
49
49
  private
50
50
 
51
+ def processes
52
+ @processes ||= Decidim::ParticipatoryProcesses::GroupPublishedParticipatoryProcesses.new(
53
+ participatory_process_group,
54
+ current_user
55
+ ).query
56
+ end
57
+
51
58
  def group_uri
52
59
  @group_uri = URI.parse(group_url)
53
60
  end
@@ -55,7 +55,7 @@ module Decidim
55
55
  def import_process_group(attributes)
56
56
  Decidim.traceability.perform_action!("create", ParticipatoryProcessGroup, @user) do
57
57
  group = ParticipatoryProcessGroup.find_or_initialize_by(
58
- title: attributes["title"],
58
+ title: attributes["title"] || attributes["name"],
59
59
  description: attributes["description"],
60
60
  organization: @organization
61
61
  )
@@ -10,7 +10,7 @@
10
10
  <h3 class="timeline__title heading4"><%= translated_attribute(participatory_process_step.title) %></h3>
11
11
  </div>
12
12
  <div class="timeline__content">
13
- <%= translated_attribute(participatory_process_step.description).html_safe %>
13
+ <%= decidim_sanitize_editor_admin translated_attribute(participatory_process_step.description) %>
14
14
  </div>
15
15
  </div>
16
16
  </li>
@@ -34,7 +34,7 @@
34
34
  <div class="lead">
35
35
  <%= decidim_sanitize_editor translated_attribute(current_participatory_space.short_description) %>
36
36
  </div>
37
- <%= decidim_sanitize_editor translated_attribute(current_participatory_space.description) %>
37
+ <%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.description) %>
38
38
  </div>
39
39
  <%= attachments_for current_participatory_space %>
40
40
  <%= render_hook(:participatory_space_highlighted_elements) %>
@@ -68,7 +68,7 @@ ca:
68
68
  participatory_process:
69
69
  attributes:
70
70
  document:
71
- allowed_file_content_types: 'Tipus de document invàlid. Els formats que s''accepten són: %{types}'
71
+ allowed_file_content_types: 'Tipus de document no vàlid. Només s''accepten arxius amb les següents extensions: %{types}'
72
72
  models:
73
73
  decidim/participatory_process_step_activated_event: Fase activada
74
74
  decidim/participatory_process_step_changed_event: Fase modificada
@@ -68,7 +68,7 @@ cs:
68
68
  participatory_process:
69
69
  attributes:
70
70
  document:
71
- allowed_file_content_types: 'Neplatný typ dokumentu. Přijatelné formáty jsou: %{types}'
71
+ allowed_file_content_types: 'Neplatný typ dokumentu. Jsou povoleny pouze soubory s následujícími příponami: %{types}'
72
72
  models:
73
73
  decidim/participatory_process_step_activated_event: Krok aktivován
74
74
  decidim/participatory_process_step_changed_event: Krok se změnil
@@ -63,12 +63,6 @@ de:
63
63
  email: E-Mail
64
64
  name: Name
65
65
  role: Rolle
66
- errors:
67
- models:
68
- participatory_process:
69
- attributes:
70
- document:
71
- allowed_file_content_types: 'Ungültiger Dokumenttyp. Zulässige Formate sind: %{types}'
72
66
  models:
73
67
  decidim/participatory_process_step_activated_event: Phase aktiviert
74
68
  decidim/participatory_process_step_changed_event: Phase geändert
@@ -68,7 +68,7 @@ en:
68
68
  participatory_process:
69
69
  attributes:
70
70
  document:
71
- allowed_file_content_types: 'Invalid document type. Accepted formats are: %{types}'
71
+ allowed_file_content_types: 'Invalid document type. Only files with the following extensions are allowed: %{types}'
72
72
  models:
73
73
  decidim/participatory_process_step_activated_event: Phase activated
74
74
  decidim/participatory_process_step_changed_event: Phase changed
@@ -68,7 +68,7 @@ es-MX:
68
68
  participatory_process:
69
69
  attributes:
70
70
  document:
71
- allowed_file_content_types: 'Tipo de documento inválido. Los formatos que se aceptan son: %{types}'
71
+ allowed_file_content_types: 'Tipo de documento no válido. Sólo se permiten archivos con las siguientes extensiones: %{types}'
72
72
  models:
73
73
  decidim/participatory_process_step_activated_event: Fase activada
74
74
  decidim/participatory_process_step_changed_event: La fase ha cambiado
@@ -68,7 +68,7 @@ es-PY:
68
68
  participatory_process:
69
69
  attributes:
70
70
  document:
71
- allowed_file_content_types: 'Tipo de documento inválido. Los formatos que se aceptan son: %{types}'
71
+ allowed_file_content_types: 'Tipo de documento no válido. Sólo se permiten archivos con las siguientes extensiones: %{types}'
72
72
  models:
73
73
  decidim/participatory_process_step_activated_event: Fase activada
74
74
  decidim/participatory_process_step_changed_event: La fase ha cambiado
@@ -68,7 +68,7 @@ es:
68
68
  participatory_process:
69
69
  attributes:
70
70
  document:
71
- allowed_file_content_types: 'Tipo de documento inválido. Los formatos que se aceptan son: %{types}'
71
+ allowed_file_content_types: 'Tipo de documento no válido. Sólo se permiten archivos con las siguientes extensiones: %{types}'
72
72
  models:
73
73
  decidim/participatory_process_step_activated_event: Fase activada
74
74
  decidim/participatory_process_step_changed_event: Fase modificada
@@ -61,6 +61,12 @@ eu:
61
61
  email: Helbide elektronikoa
62
62
  name: Izena
63
63
  role: Rola
64
+ errors:
65
+ models:
66
+ participatory_process:
67
+ attributes:
68
+ document:
69
+ allowed_file_content_types: 'Dokumentu mota hau ez da onartzen. Honako hauek onartzen dira: %{types}'
64
70
  models:
65
71
  decidim/participatory_process_step_activated_event: Urratsera aktibatuta
66
72
  decidim/participatory_process_step_changed_event: Pasartea aldatu da
@@ -68,7 +68,7 @@ fi-pl:
68
68
  participatory_process:
69
69
  attributes:
70
70
  document:
71
- allowed_file_content_types: 'Virheellinen asiakirjan tyyppi. Hyväksytyt tiedostomuodot ovat: %{types}'
71
+ allowed_file_content_types: 'Virheellinen tiedostomuoto. Ainoastaan seuraavat tiedostomuodot on sallittu: %{types}'
72
72
  models:
73
73
  decidim/participatory_process_step_activated_event: Vaihe aktivoidaan
74
74
  decidim/participatory_process_step_changed_event: Vaihe muutettu
@@ -68,7 +68,7 @@ fi:
68
68
  participatory_process:
69
69
  attributes:
70
70
  document:
71
- allowed_file_content_types: 'Virheellinen asiakirjan tyyppi. Hyväksytyt tiedostomuodot ovat: %{types}'
71
+ allowed_file_content_types: 'Virheellinen tiedostomuoto. Ainoastaan seuraavat tiedostomuodot on sallittu: %{types}'
72
72
  models:
73
73
  decidim/participatory_process_step_activated_event: Vaihe aktivoitu
74
74
  decidim/participatory_process_step_changed_event: Vaihe muutettu
@@ -68,7 +68,7 @@ fr-CA:
68
68
  participatory_process:
69
69
  attributes:
70
70
  document:
71
- allowed_file_content_types: 'Type de document invalide. Les formats acceptés sont: %{types}'
71
+ allowed_file_content_types: 'Type de document invalide. Seuls les fichiers avec les extensions suivantes sont autorisés : %{types}'
72
72
  models:
73
73
  decidim/participatory_process_step_activated_event: Étape activée
74
74
  decidim/participatory_process_step_changed_event: Étape modifiée
@@ -68,7 +68,7 @@ fr:
68
68
  participatory_process:
69
69
  attributes:
70
70
  document:
71
- allowed_file_content_types: 'Type de document invalide. Les formats acceptés sont: %{types}'
71
+ allowed_file_content_types: 'Type de document invalide. Seuls les fichiers avec les extensions suivantes sont autorisés : %{types}'
72
72
  models:
73
73
  decidim/participatory_process_step_activated_event: Étape activée
74
74
  decidim/participatory_process_step_changed_event: Étape modifiée
@@ -0,0 +1 @@
1
+ gn:
@@ -63,12 +63,6 @@ hu:
63
63
  email: Email
64
64
  name: Név
65
65
  role: Szerep
66
- errors:
67
- models:
68
- participatory_process:
69
- attributes:
70
- document:
71
- allowed_file_content_types: 'Érvénytelen dokumentumtípus. Az elfogadott formátumok: %{types}'
72
66
  models:
73
67
  decidim/participatory_process_step_activated_event: Lépés aktiválva
74
68
  decidim/participatory_process_step_changed_event: Lépés megváltozott
@@ -68,7 +68,7 @@ ja:
68
68
  participatory_process:
69
69
  attributes:
70
70
  document:
71
- allowed_file_content_types: '無効なドキュメントタイプです。使用できるフォーマット: %{types}'
71
+ allowed_file_content_types: '無効なドキュメントタイプです。次の拡張子を持つファイルのみが許可されています: %{types}'
72
72
  models:
73
73
  decidim/participatory_process_step_activated_event: フェーズ有効化
74
74
  decidim/participatory_process_step_changed_event: フェーズ変更
@@ -0,0 +1 @@
1
+ lo:
@@ -63,12 +63,6 @@ lt:
63
63
  email: El. paštas
64
64
  name: Vardas
65
65
  role: Rolė
66
- errors:
67
- models:
68
- participatory_process:
69
- attributes:
70
- document:
71
- allowed_file_content_types: 'Netinkamas dokumento tipas. Priimtini formatai: %{types}'
72
66
  models:
73
67
  decidim/participatory_process_step_activated_event: Etapas aktyvuotas
74
68
  decidim/participatory_process_step_changed_event: Eatapas pakeistas
@@ -57,6 +57,8 @@ ro:
57
57
  short_description: Descriere scurtă
58
58
  start_date: Data de început
59
59
  title: Titlu
60
+ participatory_process_type:
61
+ title: Titlu
60
62
  participatory_process_user_role:
61
63
  email: E-mail
62
64
  name: Nume
@@ -103,7 +103,8 @@ module Decidim
103
103
  icon_name: "target",
104
104
  position: 2,
105
105
  active: is_active_link?(decidim_admin_participatory_processes.participatory_processes_path, :inclusive) ||
106
- is_active_link?(decidim_admin_participatory_processes.participatory_process_groups_path, :inclusive),
106
+ is_active_link?(decidim_admin_participatory_processes.participatory_process_groups_path, :inclusive) ||
107
+ is_active_link?(decidim_admin_participatory_processes.participatory_process_types_path),
107
108
  if: allowed_to?(:enter, :space_area, space_name: :processes) || allowed_to?(:enter, :space_area, space_name: :process_groups)
108
109
  end
109
110
  end
@@ -151,6 +151,7 @@ FactoryBot.define do
151
151
  end
152
152
 
153
153
  organization { participatory_process.organization }
154
+ admin_terms_accepted_at { Time.current }
154
155
 
155
156
  after(:create) do |user, evaluator|
156
157
  create :participatory_process_user_role,
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-participatory_processes version.
5
5
  module ParticipatoryProcesses
6
6
  def self.version
7
- "0.27.0"
7
+ "0.27.1"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-participatory_processes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.27.1
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-09-29 00:00:00.000000000 Z
13
+ date: 2022-11-15 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.0
21
+ version: 0.27.1
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.0
28
+ version: 0.27.1
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.0
35
+ version: 0.27.1
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.0
42
+ version: 0.27.1
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.0
49
+ version: 0.27.1
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.0
56
+ version: 0.27.1
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.0
63
+ version: 0.27.1
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.0
70
+ version: 0.27.1
71
71
  description: Participatory processes component for decidim.
72
72
  email:
73
73
  - josepjaume@gmail.com
@@ -324,6 +324,7 @@ files:
324
324
  - config/locales/fr.yml
325
325
  - config/locales/ga-IE.yml
326
326
  - config/locales/gl.yml
327
+ - config/locales/gn-PY.yml
327
328
  - config/locales/hr-HR.yml
328
329
  - config/locales/hr.yml
329
330
  - config/locales/hu.yml
@@ -336,6 +337,7 @@ files:
336
337
  - config/locales/ko.yml
337
338
  - config/locales/lb-LU.yml
338
339
  - config/locales/lb.yml
340
+ - config/locales/lo-LA.yml
339
341
  - config/locales/lt-LT.yml
340
342
  - config/locales/lt.yml
341
343
  - config/locales/lv.yml