decidim-budgets 0.26.3 → 0.26.4
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 +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/gn-PY.yml +1 -0
- data/config/locales/lo-LA.yml +1 -0
- data/config/locales/ro-RO.yml +1 -0
- data/lib/decidim/budgets/version.rb +1 -1
- metadata +14 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 52cae2076d9eb704d942688d4158531730e2d9200452a0f03cab61cb9767a4f2
|
|
4
|
+
data.tar.gz: c4d8ba257763a8e0e730bab12b72d6ef44f77c3a0d5326fc7050cacf3fed3e27
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7967a345789099f343e83e5b1afd8e94ed7e10dcd6549b28794793d007193bc60102e578b3a835db558431c7ca4ee07d98c96d248b84c1125b94de5426e25a9b
|
|
7
|
+
data.tar.gz: 0dff02ee75a0ad13f0ec37f09ba363e8d100222efc20cdbdc70bbe2f649fdb451ccc87f73545bc2592cb21044bfdd099d48901181b05025892167de01da802f0
|
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
gn:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
lo:
|
data/config/locales/ro-RO.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.4
|
|
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-
|
|
13
|
+
date: 2022-11-15 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.4
|
|
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.4
|
|
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.4
|
|
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.4
|
|
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.4
|
|
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.4
|
|
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.4
|
|
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.4
|
|
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.4
|
|
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.4
|
|
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
|
|
@@ -257,6 +258,7 @@ files:
|
|
|
257
258
|
- config/locales/ko.yml
|
|
258
259
|
- config/locales/lb-LU.yml
|
|
259
260
|
- config/locales/lb.yml
|
|
261
|
+
- config/locales/lo-LA.yml
|
|
260
262
|
- config/locales/lt-LT.yml
|
|
261
263
|
- config/locales/lt.yml
|
|
262
264
|
- config/locales/lv.yml
|