decidim-accountability 0.18.1 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/decidim/accountability/versions_controller.rb +1 -0
- data/app/models/decidim/accountability/result.rb +1 -7
- data/app/presenters/decidim/accountability/admin_log/value_types/parent_presenter.rb +1 -0
- data/app/queries/decidim/accountability/metrics/results_metric_manage.rb +1 -0
- data/app/services/decidim/accountability/result_stats_calculator.rb +1 -0
- data/app/views/decidim/accountability/admin/results/_proposals.html.erb +1 -1
- data/app/views/decidim/accountability/admin/results/index.html.erb +1 -1
- data/app/views/decidim/accountability/admin/statuses/index.html.erb +1 -1
- data/app/views/decidim/accountability/admin/timeline_entries/index.html.erb +1 -1
- data/app/views/decidim/accountability/results/_show_leaf.html.erb +1 -1
- data/app/views/decidim/accountability/results/show.html.erb +0 -3
- data/config/locales/nl.yml +2 -2
- data/lib/decidim/accountability/version.rb +1 -1
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ada4d72b6759ccafbc376530ef1cc3e826ac64f8b6d73f15ea71d603786f390a
|
4
|
+
data.tar.gz: 99e430b5263c1c67168017f18f9ad7d4686aa78bdbf5b8a1c21983f9e809240c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef165032f961fe740c3f930f29532de089f804ff8812c89c5b8973d38071d91a7a88f131c0c76831bb87babeba5c6144eeb9323347f0d8acd1e2da6d52fa86a1
|
7
|
+
data.tar.gz: f9a2fc46df3eca4fbb5a502702d2859a5ee6aea281c981d2be22f9c1a26f61fbe7ec1a31683546d1169e720cda85ae5bd05a6cf38d5e8d893c9e8f2658f5e8d3
|
@@ -14,6 +14,7 @@ module Decidim
|
|
14
14
|
include Decidim::Traceable
|
15
15
|
include Decidim::Loggable
|
16
16
|
include Decidim::DataPortability
|
17
|
+
include Decidim::Randomable
|
17
18
|
|
18
19
|
component_manifest_name "accountability"
|
19
20
|
|
@@ -27,13 +28,6 @@ module Decidim
|
|
27
28
|
|
28
29
|
after_save :update_parent_progress, if: -> { parent_id.present? }
|
29
30
|
|
30
|
-
def self.order_randomly(seed)
|
31
|
-
transaction do
|
32
|
-
connection.execute("SELECT setseed(#{connection.quote(seed)})")
|
33
|
-
order(Arel.sql("RANDOM()")).load
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
31
|
def self.log_presenter_class_for(_log)
|
38
32
|
Decidim::Accountability::AdminLog::ResultPresenter
|
39
33
|
end
|
@@ -14,6 +14,7 @@ module Decidim
|
|
14
14
|
@registry = []
|
15
15
|
cumulative.each do |key, cumulative_value|
|
16
16
|
next if cumulative_value.zero?
|
17
|
+
|
17
18
|
quantity_value = quantity[key] || 0
|
18
19
|
category_id, space_type, space_id, related_object_id = key
|
19
20
|
record = Decidim::Metric.find_or_initialize_by(day: @day.to_s,
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<h1><%= t(".current_selection") %></h1>
|
3
3
|
</div>
|
4
4
|
<div class="picker-content">
|
5
|
-
<input type="text" name="proposal-search" id="data_picker-autocomplete"
|
5
|
+
<input type="text" name="proposal-search" id="data_picker-autocomplete">
|
6
6
|
</div>
|
7
7
|
<div class="picker-footer">
|
8
8
|
<div class="buttons button--double">
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<% results.each do |result| %>
|
25
25
|
<tr data-id="<%= result.id %>">
|
26
26
|
<td>
|
27
|
-
<%= link_to translated_attribute(result.title), results_path(parent_id: result.id) %><br
|
27
|
+
<%= link_to translated_attribute(result.title), results_path(parent_id: result.id) %><br>
|
28
28
|
</td>
|
29
29
|
<td class="table-list__actions">
|
30
30
|
<%= icon_link_to "eye", resource_locator(result).path, t("actions.preview", scope: "decidim.accountability"), class: "action-icon--preview", target: :blank %>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<tbody>
|
22
22
|
<% statuses.each do |status| %>
|
23
23
|
<tr data-id="<%= status.id %>">
|
24
|
-
<td><%= status.key %><br
|
24
|
+
<td><%= status.key %><br></td>
|
25
25
|
<td><%= translated_attribute(status.name) %></td>
|
26
26
|
<td><%= truncate translated_attribute(status.description), lenght: 50 %></td>
|
27
27
|
<td><%= status.progress %></td>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
<tbody>
|
21
21
|
<% timeline_entries.each do |timeline_entry| %>
|
22
22
|
<tr data-id="<%= timeline_entry.id %>">
|
23
|
-
<td><%= timeline_entry.entry_date %><br
|
23
|
+
<td><%= timeline_entry.entry_date %><br></td>
|
24
24
|
<td><%= translated_attribute(timeline_entry.description) %></td>
|
25
25
|
<td class="table-list__actions">
|
26
26
|
<% if allowed_to? :update, :timeline_entry, timeline_entry: timeline_entry %>
|
data/config/locales/nl.yml
CHANGED
@@ -183,7 +183,7 @@ nl:
|
|
183
183
|
version_index: Versie %{index}
|
184
184
|
components:
|
185
185
|
accountability:
|
186
|
-
name:
|
186
|
+
name: Opvolging
|
187
187
|
settings:
|
188
188
|
global:
|
189
189
|
categories_label: Naam voor "Categorieën"
|
@@ -215,7 +215,7 @@ nl:
|
|
215
215
|
participatory_processes:
|
216
216
|
participatory_process_groups:
|
217
217
|
highlighted_results:
|
218
|
-
results:
|
218
|
+
results: Resultaten
|
219
219
|
participatory_spaces:
|
220
220
|
highlighted_results:
|
221
221
|
see_all: Alles zien (%{count})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-accountability
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -18,42 +18,42 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.19.0
|
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.
|
28
|
+
version: 0.19.0
|
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.
|
35
|
+
version: 0.19.0
|
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.
|
42
|
+
version: 0.19.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: kaminari
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '1.
|
49
|
+
version: '1.1'
|
50
50
|
type: :runtime
|
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: '1.
|
56
|
+
version: '1.1'
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: searchlight
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
@@ -74,98 +74,98 @@ dependencies:
|
|
74
74
|
requirements:
|
75
75
|
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
77
|
+
version: 0.19.0
|
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.
|
84
|
+
version: 0.19.0
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: decidim-assemblies
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
89
|
- - '='
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 0.
|
91
|
+
version: 0.19.0
|
92
92
|
type: :development
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - '='
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: 0.
|
98
|
+
version: 0.19.0
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: decidim-comments
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
103
|
- - '='
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version: 0.
|
105
|
+
version: 0.19.0
|
106
106
|
type: :development
|
107
107
|
prerelease: false
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
110
|
- - '='
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: 0.
|
112
|
+
version: 0.19.0
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: decidim-dev
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
117
|
- - '='
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version: 0.
|
119
|
+
version: 0.19.0
|
120
120
|
type: :development
|
121
121
|
prerelease: false
|
122
122
|
version_requirements: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
124
|
- - '='
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version: 0.
|
126
|
+
version: 0.19.0
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: decidim-meetings
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
131
|
- - '='
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: 0.
|
133
|
+
version: 0.19.0
|
134
134
|
type: :development
|
135
135
|
prerelease: false
|
136
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
138
|
- - '='
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: 0.
|
140
|
+
version: 0.19.0
|
141
141
|
- !ruby/object:Gem::Dependency
|
142
142
|
name: decidim-participatory_processes
|
143
143
|
requirement: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
145
|
- - '='
|
146
146
|
- !ruby/object:Gem::Version
|
147
|
-
version: 0.
|
147
|
+
version: 0.19.0
|
148
148
|
type: :development
|
149
149
|
prerelease: false
|
150
150
|
version_requirements: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
152
|
- - '='
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version: 0.
|
154
|
+
version: 0.19.0
|
155
155
|
- !ruby/object:Gem::Dependency
|
156
156
|
name: decidim-proposals
|
157
157
|
requirement: !ruby/object:Gem::Requirement
|
158
158
|
requirements:
|
159
159
|
- - '='
|
160
160
|
- !ruby/object:Gem::Version
|
161
|
-
version: 0.
|
161
|
+
version: 0.19.0
|
162
162
|
type: :development
|
163
163
|
prerelease: false
|
164
164
|
version_requirements: !ruby/object:Gem::Requirement
|
165
165
|
requirements:
|
166
166
|
- - '='
|
167
167
|
- !ruby/object:Gem::Version
|
168
|
-
version: 0.
|
168
|
+
version: 0.19.0
|
169
169
|
description: An accountability component for decidim's participatory spaces.
|
170
170
|
email:
|
171
171
|
- josepjaume@gmail.com
|