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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edc52619e4fa6c53efd44902f73fcf0352744e4cefb4ff5f4fd5f0a60fb3abcb
4
- data.tar.gz: 33d1253c2bf3efcd48dd8e4508012141be244d624dce540b3d883b222022823a
3
+ metadata.gz: ada4d72b6759ccafbc376530ef1cc3e826ac64f8b6d73f15ea71d603786f390a
4
+ data.tar.gz: 99e430b5263c1c67168017f18f9ad7d4686aa78bdbf5b8a1c21983f9e809240c
5
5
  SHA512:
6
- metadata.gz: db6cbbaa5841bfdc04a817e88f16b3272057e11c6cba7d617c36deb277ed8771a91e9a0e924018cd2172c2d738f8d394503a38c8c62b1b89f134ad6c8337b93e
7
- data.tar.gz: caca7cc3c3cc133123a5d7f651c5bdbe5d619bb55ec5245c99a95c20292eb69879ff78308a2c03d3036998cf43b8e3914f12505e442c50ebf53cf757ab9fdc74
6
+ metadata.gz: ef165032f961fe740c3f930f29532de089f804ff8812c89c5b8973d38071d91a7a88f131c0c76831bb87babeba5c6144eeb9323347f0d8acd1e2da6d52fa86a1
7
+ data.tar.gz: f9a2fc46df3eca4fbb5a502702d2859a5ee6aea281c981d2be22f9c1a26f61fbe7ec1a31683546d1169e720cda85ae5bd05a6cf38d5e8d893c9e8f2658f5e8d3
@@ -17,6 +17,7 @@ module Decidim
17
17
 
18
18
  def current_version
19
19
  return nil if params[:id].to_i < 1
20
+
20
21
  @current_version ||= result.versions[params[:id].to_i - 1]
21
22
  end
22
23
  end
@@ -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
  def present
15
15
  return unless value
16
16
  return h.translated_attribute(result.title) if result
17
+
17
18
  I18n.t("not_found", id: value, scope: "decidim.accountability.admin_log.value_types.parent_presenter")
18
19
  end
19
20
 
@@ -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,
@@ -15,6 +15,7 @@ module Decidim
15
15
 
16
16
  def votes_count
17
17
  return 0 unless proposals
18
+
18
19
  proposals.sum { |proposal| proposal.votes.size }
19
20
  end
20
21
 
@@ -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 /></td>
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 /></td>
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 %>
@@ -58,7 +58,7 @@
58
58
  </div>
59
59
  </div>
60
60
 
61
- <hr />
61
+ <hr>
62
62
 
63
63
  <div class="small-12 mediumlarge-8 large-9 columns">
64
64
  <div class="section result-description">
@@ -18,6 +18,3 @@ edit_link(
18
18
  <% else %>
19
19
  <%= render partial: "show_leaf", locals: { result: result } %>
20
20
  <% end %>
21
-
22
- <%= javascript_include_tag "decidim/proposals/social_share" %>
23
- <%= stylesheet_link_tag "decidim/proposals/social_share" %>
@@ -183,7 +183,7 @@ nl:
183
183
  version_index: Versie %{index}
184
184
  components:
185
185
  accountability:
186
- name: Verantwoordelijkheid
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: resultaten
218
+ results: Resultaten
219
219
  participatory_spaces:
220
220
  highlighted_results:
221
221
  see_all: Alles zien (%{count})
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds decidim-accountability version.
5
5
  module Accountability
6
6
  def self.version
7
- "0.18.1"
7
+ "0.19.0"
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-accountability
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
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.18.1
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.18.1
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.18.1
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.18.1
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.0'
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.0'
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.18.1
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.18.1
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.18.1
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.18.1
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.18.1
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.18.1
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.18.1
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.18.1
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.18.1
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.18.1
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.18.1
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.18.1
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.18.1
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.18.1
168
+ version: 0.19.0
169
169
  description: An accountability component for decidim's participatory spaces.
170
170
  email:
171
171
  - josepjaume@gmail.com