decidim-accountability 0.28.1 → 0.29.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/accountability/highlighted_results_for_component_cell.rb +0 -3
- data/app/cells/decidim/accountability/project/timeline.erb +2 -2
- data/app/cells/decidim/accountability/project_cell.rb +16 -9
- data/app/cells/decidim/accountability/result_l_cell.rb +1 -2
- data/app/cells/decidim/accountability/result_metadata_cell.rb +0 -6
- data/app/cells/decidim/accountability/results_cell.rb +0 -2
- data/app/cells/decidim/accountability/status/status.erb +1 -1
- data/app/cells/decidim/accountability/status_cell.rb +12 -8
- data/app/commands/decidim/accountability/admin/create_imported_result.rb +18 -85
- data/app/commands/decidim/accountability/admin/create_result.rb +12 -86
- data/app/commands/decidim/accountability/admin/create_status.rb +3 -31
- data/app/commands/decidim/accountability/admin/create_timeline_entry.rb +3 -30
- data/app/commands/decidim/accountability/admin/has_result_command.rb +54 -0
- data/app/commands/decidim/accountability/admin/update_imported_result.rb +16 -70
- data/app/commands/decidim/accountability/admin/update_result.rb +10 -72
- data/app/commands/decidim/accountability/admin/update_status.rb +3 -39
- data/app/commands/decidim/accountability/admin/update_timeline_entry.rb +3 -38
- data/app/controllers/decidim/accountability/admin/results_controller.rb +1 -1
- data/app/controllers/decidim/accountability/admin/statuses_controller.rb +7 -8
- data/app/controllers/decidim/accountability/admin/timeline_entries_controller.rb +8 -8
- data/app/controllers/decidim/accountability/results_controller.rb +21 -19
- data/app/events/decidim/accountability/base_result_event.rb +4 -0
- data/app/helpers/decidim/accountability/application_helper.rb +0 -34
- data/app/helpers/decidim/accountability/breadcrumb_helper.rb +0 -4
- data/app/models/decidim/accountability/result.rb +1 -1
- data/app/models/decidim/accountability/status.rb +1 -1
- data/app/packs/src/decidim/accountability/index.js +1 -1
- data/app/services/decidim/accountability/results_csv_importer.rb +1 -1
- data/app/views/decidim/accountability/admin/results/index.html.erb +1 -1
- data/app/views/decidim/accountability/admin/statuses/index.html.erb +2 -2
- data/app/views/decidim/accountability/admin/timeline_entries/index.html.erb +1 -1
- data/app/views/decidim/accountability/results/_home_categories.html.erb +2 -2
- data/app/views/decidim/accountability/results/_nav_breadcrumb.html.erb +8 -8
- data/app/views/decidim/accountability/results/_project.html.erb +1 -1
- data/app/views/decidim/accountability/results/_scope_filters.html.erb +2 -2
- data/app/views/decidim/accountability/results/_search.html.erb +4 -4
- data/app/views/decidim/participatory_spaces/_result.html.erb +3 -3
- data/config/locales/ar.yml +0 -12
- data/config/locales/bg.yml +6 -12
- data/config/locales/ca.yml +1 -12
- data/config/locales/cs.yml +0 -12
- data/config/locales/da.yml +0 -11
- data/config/locales/de.yml +1 -12
- data/config/locales/el.yml +0 -12
- data/config/locales/en.yml +1 -12
- data/config/locales/es-MX.yml +5 -16
- data/config/locales/es-PY.yml +5 -16
- data/config/locales/es.yml +7 -18
- data/config/locales/eu.yml +4 -15
- data/config/locales/fi-plain.yml +1 -12
- data/config/locales/fi.yml +1 -12
- data/config/locales/fr-CA.yml +0 -12
- data/config/locales/fr.yml +0 -12
- data/config/locales/ga-IE.yml +0 -8
- data/config/locales/gl.yml +0 -12
- data/config/locales/he-IL.yml +0 -12
- data/config/locales/hu.yml +0 -12
- data/config/locales/id-ID.yml +0 -11
- data/config/locales/is-IS.yml +0 -12
- data/config/locales/it.yml +0 -12
- data/config/locales/ja.yml +1 -12
- data/config/locales/ko.yml +0 -12
- data/config/locales/lb.yml +0 -12
- data/config/locales/lt.yml +0 -12
- data/config/locales/lv.yml +0 -11
- data/config/locales/nl.yml +0 -12
- data/config/locales/no.yml +0 -12
- data/config/locales/pl.yml +6 -12
- data/config/locales/pt-BR.yml +0 -12
- data/config/locales/pt.yml +0 -12
- data/config/locales/ro-RO.yml +0 -12
- data/config/locales/ru.yml +0 -11
- data/config/locales/si-LK.yml +0 -5
- data/config/locales/sk.yml +0 -11
- data/config/locales/sl.yml +0 -4
- data/config/locales/sq-AL.yml +0 -12
- data/config/locales/sr-CS.yml +0 -11
- data/config/locales/sv.yml +0 -12
- data/config/locales/th-TH.yml +213 -0
- data/config/locales/tr-TR.yml +0 -12
- data/config/locales/uk.yml +0 -11
- data/config/locales/zh-CN.yml +0 -11
- data/config/locales/zh-TW.yml +0 -12
- data/decidim-accountability.gemspec +1 -1
- data/lib/decidim/accountability/component.rb +0 -4
- data/lib/decidim/accountability/seeds.rb +76 -67
- data/lib/decidim/accountability/test/factories.rb +0 -4
- data/lib/decidim/accountability/version.rb +1 -1
- data/lib/decidim/api/result_type.rb +1 -1
- metadata +28 -30
- data/app/commands/decidim/accountability/admin/destroy_result.rb +0 -43
- data/app/services/decidim/accountability/result_stats_calculator.rb +0 -49
- data/app/views/decidim/accountability/results/_stats_box.html.erb +0 -79
@@ -18,10 +18,6 @@ FactoryBot.define do
|
|
18
18
|
settings do
|
19
19
|
{
|
20
20
|
intro: generate_localized_description(:accountability_component_intro, skip_injection:),
|
21
|
-
categories_label: generate_localized_word(:accountability_component_categories_label, skip_injection:),
|
22
|
-
subcategories_label: generate_localized_word(:accountability_component_subcategories_label, skip_injection:),
|
23
|
-
heading_parent_level_results: generate_localized_word(:accountability_component_heading_parent_level_results, skip_injection:),
|
24
|
-
heading_leaf_level_results: generate_localized_word(:accountability_component_heading_leaf_level_results, skip_injection:),
|
25
21
|
scopes_enabled: true,
|
26
22
|
scope_id: participatory_space.scope&.id
|
27
23
|
}
|
@@ -22,7 +22,7 @@ module Decidim
|
|
22
22
|
field :weight, GraphQL::Types::Int, "The order of this result", null: false
|
23
23
|
field :external_id, GraphQL::Types::String, "The external ID for this result", null: true
|
24
24
|
|
25
|
-
field :children, [Decidim::Accountability::ResultType, { null: true }], "The
|
25
|
+
field :children, [Decidim::Accountability::ResultType, { null: true }], "The children's results", null: true
|
26
26
|
field :parent, Decidim::Accountability::ResultType, "The parent result", null: true
|
27
27
|
field :status, Decidim::Accountability::StatusType, "The status for this result", null: true
|
28
28
|
field :timeline_entries, [Decidim::Accountability::TimelineEntryType, { null: true }], "The timeline entries for this result", null: true
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-accountability
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.29.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
8
8
|
- Marc Riera Casals
|
9
9
|
- Oriol Gual Oliva
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-07-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-comments
|
@@ -18,126 +18,126 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.29.0.rc1
|
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.29.0.rc1
|
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.29.0.rc1
|
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.29.0.rc1
|
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.
|
49
|
+
version: 0.29.0.rc1
|
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.
|
56
|
+
version: 0.29.0.rc1
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: decidim-assemblies
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.
|
63
|
+
version: 0.29.0.rc1
|
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.
|
70
|
+
version: 0.29.0.rc1
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: decidim-comments
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
77
|
+
version: 0.29.0.rc1
|
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.29.0.rc1
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: decidim-dev
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
89
|
- - '='
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 0.
|
91
|
+
version: 0.29.0.rc1
|
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.29.0.rc1
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: decidim-meetings
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
103
|
- - '='
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version: 0.
|
105
|
+
version: 0.29.0.rc1
|
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.29.0.rc1
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: decidim-participatory_processes
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
117
|
- - '='
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version: 0.
|
119
|
+
version: 0.29.0.rc1
|
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.29.0.rc1
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: decidim-proposals
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
131
|
- - '='
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: 0.
|
133
|
+
version: 0.29.0.rc1
|
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.29.0.rc1
|
141
141
|
description: An accountability component for decidim's participatory spaces.
|
142
142
|
email:
|
143
143
|
- josepjaume@gmail.com
|
@@ -175,7 +175,7 @@ files:
|
|
175
175
|
- app/commands/decidim/accountability/admin/create_result.rb
|
176
176
|
- app/commands/decidim/accountability/admin/create_status.rb
|
177
177
|
- app/commands/decidim/accountability/admin/create_timeline_entry.rb
|
178
|
-
- app/commands/decidim/accountability/admin/
|
178
|
+
- app/commands/decidim/accountability/admin/has_result_command.rb
|
179
179
|
- app/commands/decidim/accountability/admin/import_projects_to_accountability.rb
|
180
180
|
- app/commands/decidim/accountability/admin/update_imported_result.rb
|
181
181
|
- app/commands/decidim/accountability/admin/update_result.rb
|
@@ -232,7 +232,6 @@ files:
|
|
232
232
|
- app/presenters/decidim/accountability/admin_log/value_types/parent_presenter.rb
|
233
233
|
- app/queries/decidim/accountability/metrics/results_metric_manage.rb
|
234
234
|
- app/services/decidim/accountability/diff_renderer.rb
|
235
|
-
- app/services/decidim/accountability/result_stats_calculator.rb
|
236
235
|
- app/services/decidim/accountability/results_calculator.rb
|
237
236
|
- app/services/decidim/accountability/results_csv_importer.rb
|
238
237
|
- app/views/decidim/accountability/admin/import_results/new.html.erb
|
@@ -259,7 +258,6 @@ files:
|
|
259
258
|
- app/views/decidim/accountability/results/_projects_aside.html.erb
|
260
259
|
- app/views/decidim/accountability/results/_scope_filters.html.erb
|
261
260
|
- app/views/decidim/accountability/results/_search.html.erb
|
262
|
-
- app/views/decidim/accountability/results/_stats_box.html.erb
|
263
261
|
- app/views/decidim/accountability/results/home.html.erb
|
264
262
|
- app/views/decidim/accountability/results/index.html.erb
|
265
263
|
- app/views/decidim/accountability/results/index.js.erb
|
@@ -385,7 +383,7 @@ metadata:
|
|
385
383
|
funding_uri: https://opencollective.com/decidim
|
386
384
|
homepage_uri: https://decidim.org
|
387
385
|
source_code_uri: https://github.com/decidim/decidim
|
388
|
-
post_install_message:
|
386
|
+
post_install_message:
|
389
387
|
rdoc_options: []
|
390
388
|
require_paths:
|
391
389
|
- lib
|
@@ -393,15 +391,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
393
391
|
requirements:
|
394
392
|
- - "~>"
|
395
393
|
- !ruby/object:Gem::Version
|
396
|
-
version: 3.
|
394
|
+
version: 3.2.0
|
397
395
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
398
396
|
requirements:
|
399
|
-
- - "
|
397
|
+
- - ">"
|
400
398
|
- !ruby/object:Gem::Version
|
401
|
-
version:
|
399
|
+
version: 1.3.1
|
402
400
|
requirements: []
|
403
|
-
rubygems_version: 3.
|
404
|
-
signing_key:
|
401
|
+
rubygems_version: 3.4.10
|
402
|
+
signing_key:
|
405
403
|
specification_version: 4
|
406
404
|
summary: Decidim accountability module
|
407
405
|
test_files: []
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Accountability
|
5
|
-
module Admin
|
6
|
-
# This command is executed when the user destroys a Result from the admin
|
7
|
-
# panel.
|
8
|
-
class DestroyResult < Decidim::Command
|
9
|
-
# Initializes an UpdateResult Command.
|
10
|
-
#
|
11
|
-
# result - The current instance of the result to be destroyed.
|
12
|
-
# current_user - the user performing the action
|
13
|
-
def initialize(result, current_user)
|
14
|
-
@result = result
|
15
|
-
@current_user = current_user
|
16
|
-
end
|
17
|
-
|
18
|
-
# Destroys the result.
|
19
|
-
#
|
20
|
-
# Broadcasts :ok if successful, :invalid otherwise.
|
21
|
-
def call
|
22
|
-
destroy_result
|
23
|
-
|
24
|
-
broadcast(:ok)
|
25
|
-
end
|
26
|
-
|
27
|
-
private
|
28
|
-
|
29
|
-
attr_reader :result, :current_user
|
30
|
-
|
31
|
-
def destroy_result
|
32
|
-
Decidim.traceability.perform_action!(
|
33
|
-
:delete,
|
34
|
-
result,
|
35
|
-
current_user
|
36
|
-
) do
|
37
|
-
result.destroy!
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Accountability
|
5
|
-
# This class handles statistics of results. Needs a `result` in
|
6
|
-
# order to find the stats.
|
7
|
-
class ResultStatsCalculator
|
8
|
-
# Public: Initializes the service.
|
9
|
-
# result - The result from which to calculate the stats.
|
10
|
-
def initialize(result)
|
11
|
-
@result = result
|
12
|
-
end
|
13
|
-
|
14
|
-
delegate :count, to: :proposals, prefix: true
|
15
|
-
|
16
|
-
def votes_count
|
17
|
-
return 0 unless proposals
|
18
|
-
|
19
|
-
proposals.sum { |proposal| proposal.votes.size }
|
20
|
-
end
|
21
|
-
|
22
|
-
def comments_count
|
23
|
-
proposals.sum(:comments_count)
|
24
|
-
end
|
25
|
-
|
26
|
-
def attendees_count
|
27
|
-
meetings.where("attendees_count > 0").sum(:attendees_count)
|
28
|
-
end
|
29
|
-
|
30
|
-
def contributions_count
|
31
|
-
meetings.where("contributions_count > 0").sum(:contributions_count)
|
32
|
-
end
|
33
|
-
|
34
|
-
delegate :count, to: :meetings, prefix: true
|
35
|
-
|
36
|
-
private
|
37
|
-
|
38
|
-
attr_reader :result
|
39
|
-
|
40
|
-
def proposals
|
41
|
-
@proposals ||= result.linked_resources(:proposals, "included_proposals")
|
42
|
-
end
|
43
|
-
|
44
|
-
def meetings
|
45
|
-
@meetings ||= result.linked_resources(:meetings, "meetings_through_proposals")
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
@@ -1,79 +0,0 @@
|
|
1
|
-
<div class="columns section mediumlarge-4 large-3">
|
2
|
-
|
3
|
-
<% if result.children.any? && component_settings.display_progress_enabled? && result.progress.present? %>
|
4
|
-
<div class="progress-level section">
|
5
|
-
<div class="progress-label">
|
6
|
-
<span class="progress-text"><%= t("models.result.fields.progress", scope: "decidim.accountability") %>:</span>
|
7
|
-
<span class="progress-figure">
|
8
|
-
<%= display_percentage result.progress %>
|
9
|
-
</span>
|
10
|
-
</div>
|
11
|
-
|
12
|
-
<div class="progress">
|
13
|
-
<div class="progress-meter" style="width:<%= result.progress %>%"></div>
|
14
|
-
</div>
|
15
|
-
</div>
|
16
|
-
<% end %>
|
17
|
-
|
18
|
-
<% if result.versions.any? || result.linked_resources(:proposals, "included_proposals").any? %>
|
19
|
-
<div class="card extra line-stats">
|
20
|
-
<div class="definition-data">
|
21
|
-
<% if result.versions.any? %>
|
22
|
-
<div class="definition-data__item versions_count">
|
23
|
-
<div>
|
24
|
-
<%= resource_version_number(result.versions_count) %>
|
25
|
-
<small>
|
26
|
-
<%= resource_version_of(result.versions_count) %>
|
27
|
-
</small>
|
28
|
-
</div>
|
29
|
-
|
30
|
-
<div>
|
31
|
-
<span>
|
32
|
-
<%= link_to_other_resource_versions(result_versions_path(result)) %>
|
33
|
-
</span>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
<% if result.last_editor.present? %>
|
37
|
-
<div class="definition-data__item last_revision_by">
|
38
|
-
<span class="definition-data__title"><%= t("results.show.stats.last_edited_by", scope: "decidim.accountability") %></span>
|
39
|
-
<%= render_resource_last_editor(result) %>
|
40
|
-
</div>
|
41
|
-
<% end %>
|
42
|
-
<div class="definition-data__item last_updated_at">
|
43
|
-
<span class="definition-data__title"><%= t("results.show.stats.last_updated_at", scope: "decidim.accountability") %></span>
|
44
|
-
<%= l result.versions.last.created_at, format: :decidim_short %>
|
45
|
-
</div>
|
46
|
-
<% end %>
|
47
|
-
<% if result.linked_resources(:proposals, "included_proposals").any? %>
|
48
|
-
<div class="definition-data__item definition-data__item--double">
|
49
|
-
<span class="definition-data__title"><%= t("results.show.stats.proposals", scope: "decidim.accountability") %></span>
|
50
|
-
<span class="definition-data__number"><%= stats_calculator.proposals_count %></span>
|
51
|
-
</div>
|
52
|
-
<div class="definition-data__item definition-data__item--double">
|
53
|
-
<span class="definition-data__title"><%= t("results.show.stats.meetings", scope: "decidim.accountability") %></span>
|
54
|
-
<span class="definition-data__number"><%= stats_calculator.meetings_count %></span>
|
55
|
-
</div>
|
56
|
-
<div class="definition-data__item definition-data__item--double">
|
57
|
-
<span class="definition-data__title"><%= t("results.show.stats.comments", scope: "decidim.accountability") %></span>
|
58
|
-
<span class="definition-data__number"><%= stats_calculator.comments_count %></span>
|
59
|
-
</div>
|
60
|
-
<div class="definition-data__item definition-data__item--double">
|
61
|
-
<span class="definition-data__title"><%= t("results.show.stats.attendees", scope: "decidim.accountability") %></span>
|
62
|
-
<span class="definition-data__number"><%= stats_calculator.attendees_count %></span>
|
63
|
-
</div>
|
64
|
-
<div class="definition-data__item definition-data__item--double">
|
65
|
-
<span class="definition-data__title"><%= t("results.show.stats.votes", scope: "decidim.accountability") %></span>
|
66
|
-
<span class="definition-data__number"><%= stats_calculator.votes_count %></span>
|
67
|
-
</div>
|
68
|
-
<div class="definition-data__item definition-data__item--double">
|
69
|
-
<span class="definition-data__title"><%= t("results.show.stats.contributions", scope: "decidim.accountability") %></span>
|
70
|
-
<span class="definition-data__number"><%= stats_calculator.contributions_count %></span>
|
71
|
-
</div>
|
72
|
-
<% end %>
|
73
|
-
</div>
|
74
|
-
</div>
|
75
|
-
<% end %>
|
76
|
-
|
77
|
-
<%= resource_reference(result) %>
|
78
|
-
<%= render partial: "decidim/shared/share_modal" %>
|
79
|
-
</div>
|