decidim-initiatives 0.27.0 → 0.27.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03ded9d5fc6f3ff2d9f39658f230573d775272d3d85538309e3a16a62d1ab80c
4
- data.tar.gz: 939b3ac24a34ff98937169adaf7c5bc80c3b9c504fa84a679c4a85c3e5402a90
3
+ metadata.gz: 7436adbc75b886513b3954dcac50972ec28f693ed7ddc57b78dce72d262e9b7c
4
+ data.tar.gz: 51bfe8135a7e161442acf76754d43973c38281249aa2c0630b33774ce17da1cc
5
5
  SHA512:
6
- metadata.gz: 2cadc45087880e36afca375fcfc1a448d9aebbe528816e4c29ef0844172ae353ffb51b3c7eabac11cf446bdaf7380019658d77c13ae3cef1c69cf7f78b505d6b
7
- data.tar.gz: 2cff36cadee36c030deee2003a3be4111ec1f3ad7295ca0412b8111c3b40993e9d09992af20468583079df8d949115b13a1bb07af458fff381817c3ebc6620c3
6
+ metadata.gz: a1720d7c62108f02282b40da76b63984e5985a3011e7fe1c7bc829facb1cf65db7364424b3d994e8f23521ba482f9c374c546db537f6be4a18751aff98bfaf37
7
+ data.tar.gz: a1912d4693fab429faa38378b367a02de8c34ea90537ac45bf701f84a1157b4958d507d85812edeb059d9f339326ba97190f8f42fca6cd9ebb926bc0e1eaa74a
@@ -83,6 +83,7 @@ module Decidim
83
83
  def user_authorized_scope
84
84
  return scope if handler_name.blank?
85
85
  return unless authorized?
86
+ return if authorization.metadata.blank?
86
87
 
87
88
  @user_authorized_scope ||= authorized_scope_candidates.find do |scope|
88
89
  scope&.id == authorization.metadata.symbolize_keys[:scope_id]
@@ -3,6 +3,7 @@ ca:
3
3
  activemodel:
4
4
  attributes:
5
5
  initiative:
6
+ area_id: Àrea
6
7
  decidim_user_group_id: Autoria
7
8
  description: Descripció
8
9
  offline_votes: Signatures presencials
@@ -19,6 +20,8 @@ ca:
19
20
  title: Títol
20
21
  initiatives_committee_member:
21
22
  user: Membre del comitè
23
+ initiatives_settings:
24
+ initiatives_order: Ordre
22
25
  initiatives_type:
23
26
  area_enabled: Permet a les autores triar l'àrea de la seva iniciativa
24
27
  attachments_enabled: Habilitat arxius adjunts
@@ -34,6 +37,7 @@ ca:
34
37
  online_signature_enabled: S'ha activat la signatura digital
35
38
  only_global_scope_enabled: Permetre només la creació d'iniciatives d'àmbit global
36
39
  promoting_committee_enabled: Habilita el comitè promotor
40
+ signature_type: Tipus de signatura
37
41
  title: Títol
38
42
  undo_online_signatures_enabled: Permetre a les participants desfer les seves signatures digitals
39
43
  validate_sms_code_on_votes: Afegeix el pas de validació mitjançant SMS al procés de signatura
@@ -3,6 +3,7 @@ cs:
3
3
  activemodel:
4
4
  attributes:
5
5
  initiative:
6
+ area_id: Oblast
6
7
  decidim_user_group_id: Autor
7
8
  description: Popis
8
9
  offline_votes: Osobní fyzické podpisy
@@ -19,6 +20,8 @@ cs:
19
20
  title: Titul
20
21
  initiatives_committee_member:
21
22
  user: Člen výboru
23
+ initiatives_settings:
24
+ initiatives_order: Pořadí
22
25
  initiatives_type:
23
26
  area_enabled: Povolit autorům vybrat tematickou oblast pro jejich iniciativu
24
27
  attachments_enabled: Povolit přílohy
@@ -34,6 +37,7 @@ cs:
34
37
  online_signature_enabled: Online podpis povolen
35
38
  only_global_scope_enabled: Umožnit pouze vytvoření iniciativ globálního rozsahu
36
39
  promoting_committee_enabled: Povolit podporu výboru
40
+ signature_type: Typ podpisu
37
41
  title: Titul
38
42
  undo_online_signatures_enabled: Povolit účastníkům vrátit zpět své online podpisy
39
43
  validate_sms_code_on_votes: Přidejte krok ověření SMS kódu do procesu podpisu
@@ -19,6 +19,8 @@ de:
19
19
  title: Titel
20
20
  initiatives_committee_member:
21
21
  user: Ausschussmitglied
22
+ initiatives_settings:
23
+ initiatives_order: Reihenfolge
22
24
  initiatives_type:
23
25
  area_enabled: Die Auswahl des Bereichs von Initiativen für Autoren freigeben
24
26
  attachments_enabled: Anhänge freigeben
@@ -3,6 +3,7 @@ en:
3
3
  activemodel:
4
4
  attributes:
5
5
  initiative:
6
+ area_id: Area
6
7
  decidim_user_group_id: Author
7
8
  description: Description
8
9
  offline_votes: In-person signatures
@@ -19,6 +20,8 @@ en:
19
20
  title: Title
20
21
  initiatives_committee_member:
21
22
  user: Committee member
23
+ initiatives_settings:
24
+ initiatives_order: Order
22
25
  initiatives_type:
23
26
  area_enabled: Enable authors to choose the area for their initiative
24
27
  attachments_enabled: Enable attachments
@@ -34,6 +37,7 @@ en:
34
37
  online_signature_enabled: Online signature enabled
35
38
  only_global_scope_enabled: Only allow global scope initiatives creation
36
39
  promoting_committee_enabled: Enable promoting committee
40
+ signature_type: Signature type
37
41
  title: Title
38
42
  undo_online_signatures_enabled: Enable participants to undo their online signatures
39
43
  validate_sms_code_on_votes: Add SMS code validation step to signature process
@@ -3,6 +3,7 @@ es-MX:
3
3
  activemodel:
4
4
  attributes:
5
5
  initiative:
6
+ area_id: Área
6
7
  decidim_user_group_id: Autor
7
8
  description: Descripción
8
9
  offline_votes: Apoyo cara a cara
@@ -19,6 +20,8 @@ es-MX:
19
20
  title: Título
20
21
  initiatives_committee_member:
21
22
  user: Miembro del Comité
23
+ initiatives_settings:
24
+ initiatives_order: Orden
22
25
  initiatives_type:
23
26
  area_enabled: Permitir a las autoras elegir el área para su iniciativa
24
27
  attachments_enabled: Habilitar archivos adjuntos
@@ -34,6 +37,7 @@ es-MX:
34
37
  online_signature_enabled: Firma en línea habilitada
35
38
  only_global_scope_enabled: Permitir sólo la creación de iniciativas de ámbito global
36
39
  promoting_committee_enabled: Habilitar el comité promotor
40
+ signature_type: Tipo de firma
37
41
  title: Título
38
42
  undo_online_signatures_enabled: Permitir a los usuarios deshacer sus firmas en línea
39
43
  validate_sms_code_on_votes: Añadir paso de validación de código SMS al proceso de firma
@@ -3,6 +3,7 @@ es-PY:
3
3
  activemodel:
4
4
  attributes:
5
5
  initiative:
6
+ area_id: Área
6
7
  decidim_user_group_id: Autor
7
8
  description: Descripción
8
9
  offline_votes: Apoyo cara a cara
@@ -19,6 +20,8 @@ es-PY:
19
20
  title: Título
20
21
  initiatives_committee_member:
21
22
  user: Miembro del Comité
23
+ initiatives_settings:
24
+ initiatives_order: Orden
22
25
  initiatives_type:
23
26
  area_enabled: Permitir a las autoras elegir el área para su iniciativa
24
27
  attachments_enabled: Habilitar archivos adjuntos
@@ -34,6 +37,7 @@ es-PY:
34
37
  online_signature_enabled: Firma en línea habilitada
35
38
  only_global_scope_enabled: Permitir sólo la creación de iniciativas de ámbito global
36
39
  promoting_committee_enabled: Habilitar el comité promotor
40
+ signature_type: Tipo de firma
37
41
  title: Título
38
42
  undo_online_signatures_enabled: Permitir a los usuarios deshacer sus firmas en línea
39
43
  validate_sms_code_on_votes: Añadir paso de validación de código SMS al proceso de firma
@@ -3,6 +3,7 @@ es:
3
3
  activemodel:
4
4
  attributes:
5
5
  initiative:
6
+ area_id: Área
6
7
  decidim_user_group_id: Autoria
7
8
  description: Descripción
8
9
  offline_votes: Firmas presenciales
@@ -19,6 +20,8 @@ es:
19
20
  title: Título
20
21
  initiatives_committee_member:
21
22
  user: Miembro del Comité
23
+ initiatives_settings:
24
+ initiatives_order: Orden
22
25
  initiatives_type:
23
26
  area_enabled: Permitir a las autoras elegir el área para su iniciativa
24
27
  attachments_enabled: Habilitar archivos adjuntos
@@ -34,6 +37,7 @@ es:
34
37
  online_signature_enabled: Firma digital habilitada
35
38
  only_global_scope_enabled: Permitir sólo la creación de iniciativas de ámbito global
36
39
  promoting_committee_enabled: Habilitar el comité promotor
40
+ signature_type: Tipo de firma
37
41
  title: Título
38
42
  undo_online_signatures_enabled: Permitir a las participantes deshacer sus firmas digitales
39
43
  validate_sms_code_on_votes: Añadir paso de validación mediante SMS al proceso de firma
@@ -3,6 +3,7 @@ eu:
3
3
  activemodel:
4
4
  attributes:
5
5
  initiative:
6
+ area_id: Arloa
6
7
  decidim_user_group_id: Egilea
7
8
  description: deskribapena
8
9
  offline_votes: Aurrez aurreko sinadurak
@@ -33,6 +34,7 @@ eu:
33
34
  online_signature_enabled: Sinadura elektronikoa gaituta dago
34
35
  only_global_scope_enabled: Eremu globaleko ekimenak soilik sortzeko aukera ematea
35
36
  promoting_committee_enabled: Batzorde sustatzailea gaitzea
37
+ signature_type: Sinadura mota
36
38
  title: Izenburua
37
39
  undo_online_signatures_enabled: Gaitu erabiltzaileek beren sinadurak desegin ditzaten
38
40
  validate_sms_code_on_votes: Gehitu SMS kodea baliozkotzeko urratsa sinadura prozesura
@@ -3,6 +3,7 @@ fi-pl:
3
3
  activemodel:
4
4
  attributes:
5
5
  initiative:
6
+ area_id: Alue
6
7
  decidim_user_group_id: Laatija
7
8
  description: Kuvaus
8
9
  offline_votes: Palvelun ulkopuolella kerätyt kannatukset
@@ -19,6 +20,8 @@ fi-pl:
19
20
  title: Otsikko
20
21
  initiatives_committee_member:
21
22
  user: Komitean jäsen
23
+ initiatives_settings:
24
+ initiatives_order: Järjestys
22
25
  initiatives_type:
23
26
  area_enabled: Salli alueen valinta aloitteille
24
27
  attachments_enabled: Salli liitteet
@@ -34,6 +37,7 @@ fi-pl:
34
37
  online_signature_enabled: Online-allekirjoitus on käytössä
35
38
  only_global_scope_enabled: Salli aloitteiden luonti ainoastaan pääteemalle
36
39
  promoting_committee_enabled: Ota käyttöön kannatuskomitea
40
+ signature_type: Allekirjoitustapa
37
41
  title: Otsikko
38
42
  undo_online_signatures_enabled: Salli käyttäjien peruuttaa verkossa tehdyt allekirjoitukset
39
43
  validate_sms_code_on_votes: Lisää tekstiviestikoodin validointivaihe allekirjoitusprosessiin
@@ -3,6 +3,7 @@ fi:
3
3
  activemodel:
4
4
  attributes:
5
5
  initiative:
6
+ area_id: Alue
6
7
  decidim_user_group_id: Laatija
7
8
  description: Kuvaus
8
9
  offline_votes: Palvelun ulkopuolella kerätyt kannatukset
@@ -19,6 +20,8 @@ fi:
19
20
  title: Otsikko
20
21
  initiatives_committee_member:
21
22
  user: Komitean jäsen
23
+ initiatives_settings:
24
+ initiatives_order: Järjestys
22
25
  initiatives_type:
23
26
  area_enabled: Salli alueen valinta aloitteille
24
27
  attachments_enabled: Salli liitteet
@@ -34,6 +37,7 @@ fi:
34
37
  online_signature_enabled: Online-allekirjoitus on käytössä
35
38
  only_global_scope_enabled: Salli aloitteiden luonti ainoastaan pääteemalle
36
39
  promoting_committee_enabled: Ota käyttöön kannatuskomitea
40
+ signature_type: Allekirjoitustapa
37
41
  title: Otsikko
38
42
  undo_online_signatures_enabled: Verkossa tehtyjen allekirjoitusten peruuttaminen käytössä
39
43
  validate_sms_code_on_votes: Lisää tekstiviestikoodin validointivaihe allekirjoitusprosessiin
@@ -3,6 +3,7 @@ fr-CA:
3
3
  activemodel:
4
4
  attributes:
5
5
  initiative:
6
+ area_id: Périmètre d'assemblée
6
7
  decidim_user_group_id: Auteur
7
8
  description: Description
8
9
  offline_votes: Votes en présentiel
@@ -19,6 +20,8 @@ fr-CA:
19
20
  title: Titre
20
21
  initiatives_committee_member:
21
22
  user: Membre du Comité de promotion
23
+ initiatives_settings:
24
+ initiatives_order: Ordre
22
25
  initiatives_type:
23
26
  area_enabled: Permettre aux auteurs de choisir la zone pour leur initiative
24
27
  attachments_enabled: Autoriser les pièces jointes
@@ -34,6 +37,7 @@ fr-CA:
34
37
  online_signature_enabled: Signature en ligne activée
35
38
  only_global_scope_enabled: Autoriser uniquement la création d'initiatives de portée globale
36
39
  promoting_committee_enabled: Activer les comités de promotion sur ce type d'initiative (témoin. s dont l'invitation par l'auteur est obligatoire pour la validation de l'initiative si cette fonctionnalité est activée)
40
+ signature_type: Type de signature
37
41
  title: Titre
38
42
  undo_online_signatures_enabled: Autoriser les utilisateurs à annuler leurs signatures en ligne
39
43
  validate_sms_code_on_votes: Ajouter une étape de validation du code SMS au processus de signature
@@ -3,6 +3,7 @@ fr:
3
3
  activemodel:
4
4
  attributes:
5
5
  initiative:
6
+ area_id: Périmètre d'assemblée
6
7
  decidim_user_group_id: Auteur
7
8
  description: Description
8
9
  offline_votes: Votes en présentiel
@@ -19,6 +20,8 @@ fr:
19
20
  title: Titre
20
21
  initiatives_committee_member:
21
22
  user: Membre du Comité de promotion
23
+ initiatives_settings:
24
+ initiatives_order: Ordre
22
25
  initiatives_type:
23
26
  area_enabled: Permettre aux auteurs de choisir le périmètre d'assemblée pour leur pétition
24
27
  attachments_enabled: Autoriser les pièces jointes
@@ -34,6 +37,7 @@ fr:
34
37
  online_signature_enabled: Signature en ligne activée
35
38
  only_global_scope_enabled: Autoriser uniquement la création de pétitions de portée globale
36
39
  promoting_committee_enabled: Activer les comités de promotion sur ce type de pétition (témoin.s dont l'invitation par l'auteur est obligatoire pour la validation de la pétition si cette fonctionnalité est activée)
40
+ signature_type: Type de signature
37
41
  title: Titre
38
42
  undo_online_signatures_enabled: Autoriser les utilisateurs à annuler leurs signatures en ligne
39
43
  validate_sms_code_on_votes: Ajouter une étape de validation du code SMS au processus de signature
@@ -0,0 +1 @@
1
+ gn:
@@ -3,6 +3,7 @@ ja:
3
3
  activemodel:
4
4
  attributes:
5
5
  initiative:
6
+ area_id: エリア
6
7
  decidim_user_group_id: 作成者
7
8
  description: 説明
8
9
  offline_votes: In-personal 署名
@@ -19,6 +20,8 @@ ja:
19
20
  title: タイトル
20
21
  initiatives_committee_member:
21
22
  user: 委員会メンバー
23
+ initiatives_settings:
24
+ initiatives_order: 順番
22
25
  initiatives_type:
23
26
  area_enabled: 作成者がイニシアチブの領域を選択できるようにする
24
27
  attachments_enabled: 添付ファイルを有効化
@@ -34,6 +37,7 @@ ja:
34
37
  online_signature_enabled: オンライン署名は有効です
35
38
  only_global_scope_enabled: グローバルスコープのイニシアチブの作成のみを許可する
36
39
  promoting_committee_enabled: 推進委員会を有効にする
40
+ signature_type: 署名の種別
37
41
  title: タイトル
38
42
  undo_online_signatures_enabled: 参加者がオンライン署名を取り消すことを有効にする
39
43
  validate_sms_code_on_votes: 署名プロセスにSMSコード検証ステップを追加
@@ -0,0 +1 @@
1
+ lo:
@@ -30,6 +30,7 @@ sv:
30
30
  minimum_committee_members: Minsta antal kommittémedlemmar
31
31
  online_signature_enabled: Digitala signaturer är aktiverade
32
32
  promoting_committee_enabled: Tillåt kampanjutskott
33
+ signature_type: Signaturtyp
33
34
  title: Titel
34
35
  undo_online_signatures_enabled: Tillåt deltagare att ångra sina online-underskrifter
35
36
  validate_sms_code_on_votes: Lägg till SMS-validering till signeringsprocessen
@@ -90,7 +90,13 @@ module Decidim
90
90
  decidim_admin_initiatives.initiatives_path,
91
91
  icon_name: "chat",
92
92
  position: 2.4,
93
- active: :inclusive,
93
+ active: is_active_link?(decidim_admin_initiatives.initiatives_path) ||
94
+ is_active_link?(decidim_admin_initiatives.initiatives_types_path) ||
95
+ is_active_link?(
96
+ decidim_admin_initiatives.edit_initiatives_setting_path(
97
+ Decidim::InitiativesSettings.find_or_create_by!(organization: current_organization)
98
+ )
99
+ ),
94
100
  if: allowed_to?(:enter, :space_area, space_name: :initiatives)
95
101
  end
96
102
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-initiatives version.
5
5
  module Initiatives
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-initiatives
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
  - Juan Salvador Perez Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-29 00:00:00.000000000 Z
11
+ date: 2022-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-admin
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.27.0
19
+ version: 0.27.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.27.0
26
+ version: 0.27.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-comments
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.27.0
33
+ version: 0.27.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.27.0
40
+ version: 0.27.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decidim-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.27.0
47
+ version: 0.27.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.27.0
54
+ version: 0.27.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: decidim-verifications
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.27.0
61
+ version: 0.27.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.27.0
68
+ version: 0.27.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: origami
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -142,28 +142,28 @@ dependencies:
142
142
  requirements:
143
143
  - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 0.27.0
145
+ version: 0.27.1
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: 0.27.0
152
+ version: 0.27.1
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: decidim-meetings
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - '='
158
158
  - !ruby/object:Gem::Version
159
- version: 0.27.0
159
+ version: 0.27.1
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - '='
165
165
  - !ruby/object:Gem::Version
166
- version: 0.27.0
166
+ version: 0.27.1
167
167
  description: Participants initiatives plugin for decidim.
168
168
  email:
169
169
  - jsperezg@gmail.com
@@ -429,6 +429,7 @@ files:
429
429
  - config/locales/fr.yml
430
430
  - config/locales/ga-IE.yml
431
431
  - config/locales/gl.yml
432
+ - config/locales/gn-PY.yml
432
433
  - config/locales/hr-HR.yml
433
434
  - config/locales/hr.yml
434
435
  - config/locales/hu.yml
@@ -441,6 +442,7 @@ files:
441
442
  - config/locales/ko.yml
442
443
  - config/locales/lb-LU.yml
443
444
  - config/locales/lb.yml
445
+ - config/locales/lo-LA.yml
444
446
  - config/locales/lt-LT.yml
445
447
  - config/locales/lt.yml
446
448
  - config/locales/lv.yml