decidim-budgets 0.26.3 → 0.26.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/commands/decidim/budgets/admin/import_proposals_to_budgets.rb +4 -1
- data/app/controllers/decidim/budgets/projects_controller.rb +2 -2
- data/config/locales/ca.yml +1 -1
- data/config/locales/cs.yml +1 -1
- data/config/locales/de.yml +1 -2
- data/config/locales/el.yml +0 -1
- data/config/locales/en.yml +1 -1
- data/config/locales/es.yml +2 -2
- data/config/locales/eu.yml +7 -2
- data/config/locales/fr-CA.yml +1 -1
- data/config/locales/fr.yml +1 -1
- data/config/locales/gl.yml +0 -1
- data/config/locales/gn-PY.yml +1 -0
- data/config/locales/it.yml +0 -1
- data/config/locales/ja.yml +1 -1
- data/config/locales/ka-GE.yml +1 -0
- data/config/locales/lb.yml +0 -1
- data/config/locales/lo-LA.yml +1 -0
- data/config/locales/lt.yml +0 -1
- data/config/locales/nl.yml +0 -1
- data/config/locales/no.yml +0 -1
- data/config/locales/pl.yml +0 -1
- data/config/locales/pt-BR.yml +0 -1
- data/config/locales/pt.yml +0 -1
- data/config/locales/ro-RO.yml +3 -1
- data/config/locales/sv.yml +4 -2
- data/config/locales/tr-TR.yml +0 -1
- data/lib/decidim/budgets/version.rb +1 -1
- metadata +15 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a7eb220680e03c3f8ca012a81217a443c5672804687417251c1dffbec45b0e0
|
4
|
+
data.tar.gz: 49dfd04c441922ca035ba2960af1fa9bcecdc96a714f4ce8c8aa174a0518c6ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d12adac75f375e11e435c5615036e501597afe8a4e3708f7d7444ebb7c9205748962171e8025f8f5570dc0359a62abdac396c90fca00d869dc1823cd655eaee7
|
7
|
+
data.tar.gz: 3aa335a63d70836da050ef789353eef75cef7e0c1943b055e219d0d2cb7a0e58dc09edf7a09b37a5865b781d2d263e3721d24ea182f773b64922230ca5e57216
|
@@ -81,7 +81,10 @@ module Decidim
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def proposal_already_copied?(original_proposal)
|
84
|
-
|
84
|
+
# Note: we are including also projects from unpublished components
|
85
|
+
# because otherwise duplicates could be created until the component is
|
86
|
+
# published.
|
87
|
+
original_proposal.linked_resources(:projects, "included_proposals", component_published: false).any? do |project|
|
85
88
|
project.budget == form.budget
|
86
89
|
end
|
87
90
|
end
|
@@ -28,8 +28,8 @@ module Decidim
|
|
28
28
|
def projects
|
29
29
|
return @projects if @projects
|
30
30
|
|
31
|
-
@projects = search.results
|
32
|
-
@projects =
|
31
|
+
@projects = reorder(search.results)
|
32
|
+
@projects = @projects.page(params[:page]).per(current_component.settings.projects_per_page)
|
33
33
|
end
|
34
34
|
|
35
35
|
def project
|
data/config/locales/ca.yml
CHANGED
@@ -40,7 +40,7 @@ ca:
|
|
40
40
|
actions:
|
41
41
|
attachment_collections: Carpetes
|
42
42
|
attachments: Adjunts
|
43
|
-
confirm_destroy:
|
43
|
+
confirm_destroy: Segur que vols eliminar aquest projecte?
|
44
44
|
destroy: Esborrar
|
45
45
|
edit: Editar
|
46
46
|
edit_projects: Gestionar projectes
|
data/config/locales/cs.yml
CHANGED
data/config/locales/de.yml
CHANGED
@@ -6,7 +6,7 @@ de:
|
|
6
6
|
description: Beschreibung
|
7
7
|
title: Titel
|
8
8
|
total_budget: Gesamtbudget
|
9
|
-
weight:
|
9
|
+
weight: Reihenfolge
|
10
10
|
project:
|
11
11
|
budget_amount: Höhe des Budgets
|
12
12
|
decidim_category_id: Kategorie
|
@@ -245,7 +245,6 @@ de:
|
|
245
245
|
votes:
|
246
246
|
one: Abstimmung
|
247
247
|
other: Abstimmungen
|
248
|
-
you_voted: Du hast für dieses gestimmt
|
249
248
|
project_budget_button:
|
250
249
|
add: Zur Abstimmung hinzufügen
|
251
250
|
add_descriptive: Projekt %{resource_name} Ihrer Stimme hinzufügen
|
data/config/locales/el.yml
CHANGED
data/config/locales/en.yml
CHANGED
data/config/locales/es.yml
CHANGED
@@ -40,7 +40,7 @@ es:
|
|
40
40
|
actions:
|
41
41
|
attachment_collections: Carpetas
|
42
42
|
attachments: Adjuntos
|
43
|
-
confirm_destroy: '¿
|
43
|
+
confirm_destroy: '¿Seguro que deseas eliminar este proyecto?'
|
44
44
|
destroy: Borrar
|
45
45
|
edit: Editar
|
46
46
|
edit_projects: Gestionar proyectos
|
@@ -179,7 +179,7 @@ es:
|
|
179
179
|
description: Este proyecto sobrepasa el presupuesto máximo y no se puede añadir. Si lo deseas, puedes eliminar un proyecto que ya hayas seleccionado, o votar de acuerdo a tus preferencias.
|
180
180
|
title: Se ha superado el número máximo de proyectos
|
181
181
|
budget_summary:
|
182
|
-
are_you_sure: '¿
|
182
|
+
are_you_sure: '¿Seguro que deseas cancelar tu voto?'
|
183
183
|
assigned: 'Asignado:'
|
184
184
|
cancel_order: eliminar tu voto y empezar de nuevo
|
185
185
|
checked_out:
|
data/config/locales/eu.yml
CHANGED
@@ -13,8 +13,11 @@ eu:
|
|
13
13
|
decidim_scope_id: Esparrua
|
14
14
|
description: Descripción
|
15
15
|
proposal_ids: Honekin lotutako proposamenak
|
16
|
-
|
16
|
+
proposals: Proposamenak
|
17
|
+
selected: Ezarpenerako hautatuak
|
17
18
|
title: Titulua
|
19
|
+
proposals_import:
|
20
|
+
scope_id: Eremua
|
18
21
|
activerecord:
|
19
22
|
models:
|
20
23
|
decidim/budgets/project:
|
@@ -26,6 +29,8 @@ eu:
|
|
26
29
|
projects:
|
27
30
|
category_id_eq:
|
28
31
|
label: Kategoria
|
32
|
+
scope_id_eq:
|
33
|
+
label: Eremua
|
29
34
|
selected_at_null:
|
30
35
|
label: Hautatua
|
31
36
|
values:
|
@@ -236,7 +241,7 @@ eu:
|
|
236
241
|
votes:
|
237
242
|
one: Botoa
|
238
243
|
other: botoak
|
239
|
-
you_voted:
|
244
|
+
you_voted: Honen aldeko botoa eman duzu
|
240
245
|
project_budget_button:
|
241
246
|
add: Gehitu zure botoari
|
242
247
|
add_descriptive: Gehitu %{resource_name} proiektua zure botoari
|
data/config/locales/fr-CA.yml
CHANGED
data/config/locales/fr.yml
CHANGED
data/config/locales/gl.yml
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
gn:
|
data/config/locales/it.yml
CHANGED
data/config/locales/ja.yml
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
ka:
|
data/config/locales/lb.yml
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
lo:
|
data/config/locales/lt.yml
CHANGED
data/config/locales/nl.yml
CHANGED
data/config/locales/no.yml
CHANGED
data/config/locales/pl.yml
CHANGED
data/config/locales/pt-BR.yml
CHANGED
data/config/locales/pt.yml
CHANGED
data/config/locales/ro-RO.yml
CHANGED
@@ -13,8 +13,11 @@ ro:
|
|
13
13
|
decidim_scope_id: Domeniu de interes
|
14
14
|
description: Descriere
|
15
15
|
proposal_ids: Propuneri asociate
|
16
|
+
proposals: Propuneri
|
16
17
|
selected: Selectate pentru implementare
|
17
18
|
title: Titlu
|
19
|
+
proposals_import:
|
20
|
+
scope_id: Domeniu de interes
|
18
21
|
activerecord:
|
19
22
|
models:
|
20
23
|
decidim/budgets/project:
|
@@ -244,7 +247,6 @@ ro:
|
|
244
247
|
one: vot
|
245
248
|
few: voturi
|
246
249
|
other: voturi
|
247
|
-
you_voted: Ai votat pentru
|
248
250
|
project_budget_button:
|
249
251
|
add: Adaugă la votul tău
|
250
252
|
add_descriptive: Adaugă proiectul %{resource_name} la votul tău
|
data/config/locales/sv.yml
CHANGED
@@ -6,7 +6,7 @@ sv:
|
|
6
6
|
description: Beskrivning
|
7
7
|
title: Titel
|
8
8
|
total_budget: Total budget
|
9
|
-
weight:
|
9
|
+
weight: Ordning
|
10
10
|
project:
|
11
11
|
budget_amount: Belopp
|
12
12
|
decidim_category_id: Kategori
|
@@ -167,10 +167,13 @@ sv:
|
|
167
167
|
title: Bekräfta röst
|
168
168
|
budget_excess:
|
169
169
|
budget_excess:
|
170
|
+
description: Detta projekt överstiger den maximala budgeten och kan inte tilläggas. Du måste först ta bort ett projekt innan du lägger till ett nytt.
|
170
171
|
title: Maximal budget överskriden
|
171
172
|
close: Stäng
|
173
|
+
description: Detta projekt överstiger den maximala budgeten och kan inte tilläggas. Du måste först ta bort ett projekt innan du lägger till ett nytt.
|
172
174
|
ok: OK
|
173
175
|
projects_excess:
|
176
|
+
description: Du har valt för många projekt. Du måste först ta bort ett projekt innan du lägger till ett nytt.
|
174
177
|
title: Maximalt antal projekt överskridet
|
175
178
|
budget_summary:
|
176
179
|
are_you_sure: Vill du dra tillbaka din röst?
|
@@ -243,7 +246,6 @@ sv:
|
|
243
246
|
votes:
|
244
247
|
one: röst
|
245
248
|
other: röster
|
246
|
-
you_voted: Det här är din röst
|
247
249
|
project_budget_button:
|
248
250
|
add: Lägg till i din röst
|
249
251
|
add_descriptive: Lägg till projekt %{resource_name} till din röst
|
data/config/locales/tr-TR.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-budgets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.26.
|
4
|
+
version: 0.26.5
|
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:
|
13
|
+
date: 2023-02-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-comments
|
@@ -18,70 +18,70 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.26.
|
21
|
+
version: 0.26.5
|
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.26.
|
28
|
+
version: 0.26.5
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: decidim-core
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.26.
|
35
|
+
version: 0.26.5
|
36
36
|
type: :runtime
|
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.26.
|
42
|
+
version: 0.26.5
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: decidim-admin
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.26.
|
49
|
+
version: 0.26.5
|
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.26.
|
56
|
+
version: 0.26.5
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: decidim-dev
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.26.
|
63
|
+
version: 0.26.5
|
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.26.
|
70
|
+
version: 0.26.5
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: decidim-proposals
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.26.
|
77
|
+
version: 0.26.5
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - '='
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.26.
|
84
|
+
version: 0.26.5
|
85
85
|
description: A budgets component for decidim's participatory spaces.
|
86
86
|
email:
|
87
87
|
- josepjaume@gmail.com
|
@@ -245,6 +245,7 @@ files:
|
|
245
245
|
- config/locales/fr.yml
|
246
246
|
- config/locales/ga-IE.yml
|
247
247
|
- config/locales/gl.yml
|
248
|
+
- config/locales/gn-PY.yml
|
248
249
|
- config/locales/hr-HR.yml
|
249
250
|
- config/locales/hr.yml
|
250
251
|
- config/locales/hu.yml
|
@@ -253,10 +254,12 @@ files:
|
|
253
254
|
- config/locales/is.yml
|
254
255
|
- config/locales/it.yml
|
255
256
|
- config/locales/ja.yml
|
257
|
+
- config/locales/ka-GE.yml
|
256
258
|
- config/locales/ko-KR.yml
|
257
259
|
- config/locales/ko.yml
|
258
260
|
- config/locales/lb-LU.yml
|
259
261
|
- config/locales/lb.yml
|
262
|
+
- config/locales/lo-LA.yml
|
260
263
|
- config/locales/lt-LT.yml
|
261
264
|
- config/locales/lt.yml
|
262
265
|
- config/locales/lv.yml
|