decidim-elections 0.28.0.rc5 → 0.28.1
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/elections/highlighted_elections_for_component/show.erb +1 -1
- data/app/cells/decidim/votings/content_blocks/hero_cell.rb +0 -12
- data/app/controllers/concerns/decidim/votings/admin/voting_admin.rb +3 -2
- data/app/controllers/decidim/votings/admin/monitoring_committee_members_controller.rb +15 -0
- data/app/controllers/decidim/votings/admin/votings_landing_page_controller.rb +3 -0
- data/app/helpers/decidim/votings/votings_helper.rb +1 -1
- data/app/views/decidim/elections/admin/answers/edit.html.erb +2 -2
- data/app/views/decidim/elections/admin/answers/index.html.erb +2 -2
- data/app/views/decidim/elections/admin/answers/new.html.erb +2 -2
- data/app/views/decidim/elections/admin/elections/edit.html.erb +2 -2
- data/app/views/decidim/elections/admin/elections/index.html.erb +2 -2
- data/app/views/decidim/elections/admin/elections/new.html.erb +2 -2
- data/app/views/decidim/elections/admin/proposals_imports/new.html.erb +2 -2
- data/app/views/decidim/elections/admin/questions/edit.html.erb +2 -2
- data/app/views/decidim/elections/admin/questions/index.html.erb +2 -2
- data/app/views/decidim/elections/admin/questions/new.html.erb +2 -2
- data/app/views/decidim/elections/admin/steps/_created.html.erb +1 -1
- data/app/views/decidim/elections/admin/steps/_key_ceremony.html.erb +1 -1
- data/app/views/decidim/elections/admin/steps/_key_ceremony_ended.html.erb +1 -1
- data/app/views/decidim/elections/admin/steps/_results_published.html.erb +2 -2
- data/app/views/decidim/elections/admin/steps/_tally_ended.html.erb +2 -2
- data/app/views/decidim/elections/admin/steps/_tally_started.html.erb +1 -1
- data/app/views/decidim/elections/admin/steps/_vote.html.erb +1 -1
- data/app/views/decidim/elections/admin/steps/_vote_ended.html.erb +1 -1
- data/app/views/decidim/elections/admin/steps/_vote_stats.html.erb +2 -2
- data/app/views/decidim/elections/admin/steps/index.html.erb +2 -2
- data/app/views/decidim/elections/admin/trustees_participatory_spaces/index.html.erb +2 -2
- data/app/views/decidim/elections/admin/trustees_participatory_spaces/new.html.erb +2 -2
- data/app/views/decidim/votings/admin/ballot_styles/edit.html.erb +2 -2
- data/app/views/decidim/votings/admin/ballot_styles/index.html.erb +2 -2
- data/app/views/decidim/votings/admin/ballot_styles/new.html.erb +2 -2
- data/app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb +2 -2
- data/app/views/decidim/votings/admin/monitoring_committee_election_results/index.html.erb +2 -2
- data/app/views/decidim/votings/admin/monitoring_committee_members/index.html.erb +2 -2
- data/app/views/decidim/votings/admin/monitoring_committee_members/new.html.erb +2 -2
- data/app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/_closures.html.erb +2 -2
- data/app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/_elections.html.erb +2 -2
- data/app/views/decidim/votings/admin/monitoring_committee_polling_station_closures/edit.html.erb +2 -2
- data/app/views/decidim/votings/admin/monitoring_committee_verify_elections/index.html.erb +2 -2
- data/app/views/decidim/votings/admin/polling_officers/index.html.erb +2 -2
- data/app/views/decidim/votings/admin/polling_officers/new.html.erb +2 -2
- data/app/views/decidim/votings/admin/polling_stations/edit.html.erb +2 -2
- data/app/views/decidim/votings/admin/polling_stations/index.html.erb +2 -2
- data/app/views/decidim/votings/admin/polling_stations/new.html.erb +2 -2
- data/app/views/decidim/votings/admin/votings/edit.html.erb +2 -2
- data/app/views/decidim/votings/admin/votings/new.html.erb +2 -2
- data/app/views/decidim/votings/census/admin/census/show.html.erb +2 -2
- data/config/locales/bg.yml +35 -0
- data/config/locales/ca.yml +8 -8
- data/config/locales/cs.yml +1 -2
- data/config/locales/de.yml +3 -3
- data/config/locales/el.yml +0 -3
- data/config/locales/es-MX.yml +4 -4
- data/config/locales/es-PY.yml +3 -3
- data/config/locales/es.yml +8 -8
- data/config/locales/eu.yml +10 -3
- data/config/locales/fi-plain.yml +2 -2
- data/config/locales/fi.yml +2 -2
- data/config/locales/fr-CA.yml +2 -1
- data/config/locales/fr.yml +2 -1
- data/config/locales/gl.yml +2 -0
- data/config/locales/he-IL.yml +1 -0
- data/config/locales/hu.yml +14 -0
- data/config/locales/it.yml +2 -4
- data/config/locales/ja.yml +3 -3
- data/config/locales/lt.yml +0 -3
- data/config/locales/nl.yml +2 -2
- data/config/locales/no.yml +0 -2
- data/config/locales/pl.yml +6 -3
- data/config/locales/pt-BR.yml +207 -3
- data/config/locales/pt.yml +2 -4
- data/config/locales/ro-RO.yml +0 -1
- data/config/locales/ru.yml +5 -0
- data/config/locales/sk.yml +5 -0
- data/config/locales/sv.yml +3 -2
- data/config/locales/tr-TR.yml +0 -3
- data/config/locales/uk.yml +5 -0
- data/config/locales/zh-CN.yml +0 -2
- data/config/locales/zh-TW.yml +0 -3
- data/db/migrate/20210310120708_add_followable_counter_cache_to_votings.rb +6 -2
- data/decidim-elections.gemspec +44 -0
- data/lib/decidim/elections/version.rb +1 -1
- data/lib/decidim/votings/admin_engine.rb +0 -12
- data/lib/decidim/votings/content_blocks/registry_manager.rb +8 -1
- data/lib/decidim/votings/menu.rb +2 -5
- metadata +22 -21
- data/config/environment.rb +0 -3
data/config/locales/zh-TW.yml
CHANGED
@@ -613,7 +613,6 @@ zh-TW:
|
|
613
613
|
upload_legend: 伺服器上有您的公開識別金鑰,但您的瀏覽器仍然沒有。您需要從生成金鑰後創建的備份中,將識別金鑰檔案匯入您的電腦中。
|
614
614
|
not_supported_browser_description: 看起來您使用的網頁瀏覽器無法用作受託人的身份。請確保您使用的是最新版本的瀏覽器,或嘗試使用任何最流行的瀏覽器,以便能夠完成您的受託人任務。
|
615
615
|
not_supported_browser_title: 升級瀏覽器以作為受託人
|
616
|
-
trustee_role_description: 您已被指派在此平台上的某些選舉中擔任受託人。
|
617
616
|
update:
|
618
617
|
success: 您的識別公鑰已成功存儲。
|
619
618
|
votes:
|
@@ -697,7 +696,6 @@ zh-TW:
|
|
697
696
|
continue: 下一個
|
698
697
|
warnings:
|
699
698
|
no_elections_warning: 沒有符合您的搜尋條件的選舉,或者目前沒有已安排的選舉。
|
700
|
-
no_scheduled_elections_warning: 目前沒有即將舉行的選舉,但在這裡您可以找到所有過去的選舉列表。
|
701
699
|
events:
|
702
700
|
elections:
|
703
701
|
election_published:
|
@@ -1086,7 +1084,6 @@ zh-TW:
|
|
1086
1084
|
certify:
|
1087
1085
|
add_images: 添加圖案
|
1088
1086
|
error: 附加憑證時發生錯誤,請稍後再試。
|
1089
|
-
form_legend: 上傳選舉結束憑證的照片
|
1090
1087
|
heading: 投票重新點算 - 上傳憑證
|
1091
1088
|
info_text: 請上傳選舉結束憑證的照片。
|
1092
1089
|
submit: 上傳憑證
|
@@ -1,13 +1,17 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class AddFollowableCounterCacheToVotings < ActiveRecord::Migration[5.2]
|
4
|
+
class Voting < ApplicationRecord
|
5
|
+
self.table_name = :decidim_votings_votings
|
6
|
+
end
|
7
|
+
|
4
8
|
def change
|
5
9
|
add_column :decidim_votings_votings, :follows_count, :integer, null: false, default: 0, index: true
|
6
10
|
|
7
11
|
reversible do |dir|
|
8
12
|
dir.up do
|
9
|
-
|
10
|
-
|
13
|
+
Voting.reset_column_information
|
14
|
+
Voting.find_each do |record|
|
11
15
|
record.class.reset_counters(record.id, :follows)
|
12
16
|
end
|
13
17
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
4
|
+
|
5
|
+
require "decidim/elections/version"
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.version = Decidim::Elections.version
|
9
|
+
s.authors = ["Leonardo Diez", "Agustí B.R."]
|
10
|
+
s.email = ["leo@codegram.com", "agusti@codegram.com"]
|
11
|
+
s.license = "AGPL-3.0"
|
12
|
+
s.homepage = "https://decidim.org"
|
13
|
+
s.metadata = {
|
14
|
+
"bug_tracker_uri" => "https://github.com/decidim/decidim/issues",
|
15
|
+
"documentation_uri" => "https://docs.decidim.org/",
|
16
|
+
"funding_uri" => "https://opencollective.com/decidim",
|
17
|
+
"homepage_uri" => "https://decidim.org",
|
18
|
+
"source_code_uri" => "https://github.com/decidim/decidim"
|
19
|
+
}
|
20
|
+
s.required_ruby_version = "~> 3.1.0"
|
21
|
+
|
22
|
+
s.name = "decidim-elections"
|
23
|
+
s.summary = "A decidim elections module (votings space and elections component)"
|
24
|
+
s.description = "The Elections module adds elections to any participatory space."
|
25
|
+
|
26
|
+
s.files = Dir.chdir(__dir__) do
|
27
|
+
`git ls-files -z`.split("\x0").select do |f|
|
28
|
+
(File.expand_path(f) == __FILE__) ||
|
29
|
+
f.start_with?(*%w(app/ config/ db/ lib/ Rakefile README.md))
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
s.add_dependency "decidim-bulletin_board", "~> 0.24.4"
|
34
|
+
s.add_dependency "voting_schemes-dummy", "~> 0.24.4"
|
35
|
+
s.add_dependency "voting_schemes-electionguard", "~> 0.24.4"
|
36
|
+
|
37
|
+
s.add_dependency "decidim-core", Decidim::Elections.version
|
38
|
+
s.add_dependency "decidim-forms", Decidim::Elections.version
|
39
|
+
s.add_dependency "decidim-proposals", Decidim::Elections.version
|
40
|
+
s.add_dependency "rack-attack", "~> 6.0"
|
41
|
+
|
42
|
+
s.add_development_dependency "decidim-admin", Decidim::Elections.version
|
43
|
+
s.add_development_dependency "decidim-dev", Decidim::Elections.version
|
44
|
+
end
|
@@ -73,21 +73,9 @@ module Decidim
|
|
73
73
|
|
74
74
|
initializer "decidim_votings_admin.menu" do
|
75
75
|
Decidim::Votings::Menu.register_admin_menu_modules!
|
76
|
-
end
|
77
|
-
|
78
|
-
initializer "decidim_votings_admin.votings_components_menu" do
|
79
76
|
Decidim::Votings::Menu.register_admin_votings_components_menu!
|
80
|
-
end
|
81
|
-
|
82
|
-
initializer "decidim_votings_admin.attachments_menu" do
|
83
77
|
Decidim::Votings::Menu.register_votings_admin_attachments_menu!
|
84
|
-
end
|
85
|
-
|
86
|
-
initializer "decidim_votings_admin.monitoring_committee_menu" do
|
87
78
|
Decidim::Votings::Menu.register_decidim_votings_monitoring_committee_menu!
|
88
|
-
end
|
89
|
-
|
90
|
-
initializer "decidim_votings_admin.voting_menu" do
|
91
79
|
Decidim::Votings::Menu.register_admin_voting_menu!
|
92
80
|
end
|
93
81
|
end
|
@@ -17,9 +17,16 @@ module Decidim
|
|
17
17
|
|
18
18
|
Decidim.content_blocks.register(:voting_landing_page, :hero) do |content_block|
|
19
19
|
content_block.cell = "decidim/votings/content_blocks/hero"
|
20
|
-
content_block.settings_form_cell = "decidim/
|
20
|
+
content_block.settings_form_cell = "decidim/content_blocks/participatory_space_hero_settings_form"
|
21
21
|
content_block.public_name_key = "decidim.content_blocks.hero.name"
|
22
22
|
|
23
|
+
content_block.images = [
|
24
|
+
{
|
25
|
+
name: :background_image,
|
26
|
+
uploader: "Decidim::BackgroundImageUploader"
|
27
|
+
}
|
28
|
+
]
|
29
|
+
|
23
30
|
content_block.settings do |settings|
|
24
31
|
settings.attribute :button_text, type: :text, translated: true
|
25
32
|
settings.attribute :button_url, type: :text, translated: true
|
data/lib/decidim/votings/menu.rb
CHANGED
@@ -40,11 +40,8 @@ module Decidim
|
|
40
40
|
def self.register_admin_votings_components_menu!
|
41
41
|
Decidim.menu :admin_votings_components_menu do |menu|
|
42
42
|
current_participatory_space.components.each do |component|
|
43
|
-
caption =
|
44
|
-
if component.primary_stat.present?
|
45
|
-
caption += content_tag(:span, component.primary_stat,
|
46
|
-
class: component.primary_stat.zero? ? "component-counter component-counter--off" : "component-counter")
|
47
|
-
end
|
43
|
+
caption = decidim_escape_translated(component.name)
|
44
|
+
caption += content_tag(:span, component.primary_stat, class: "component-counter") if component.primary_stat.present?
|
48
45
|
|
49
46
|
menu.add_item [component.manifest_name, component.id].join("_"),
|
50
47
|
caption.html_safe,
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-elections
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.28.
|
4
|
+
version: 0.28.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leonardo Diez
|
8
8
|
- Agustí B.R.
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: decidim-bulletin_board
|
@@ -59,42 +59,42 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - '='
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0.28.
|
62
|
+
version: 0.28.1
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.28.
|
69
|
+
version: 0.28.1
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: decidim-forms
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - '='
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.28.
|
76
|
+
version: 0.28.1
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - '='
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.28.
|
83
|
+
version: 0.28.1
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: decidim-proposals
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - '='
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0.28.
|
90
|
+
version: 0.28.1
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - '='
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 0.28.
|
97
|
+
version: 0.28.1
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: rack-attack
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,28 +115,28 @@ dependencies:
|
|
115
115
|
requirements:
|
116
116
|
- - '='
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.28.
|
118
|
+
version: 0.28.1
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - '='
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.28.
|
125
|
+
version: 0.28.1
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: decidim-dev
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
130
|
- - '='
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: 0.28.
|
132
|
+
version: 0.28.1
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - '='
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: 0.28.
|
139
|
+
version: 0.28.1
|
140
140
|
description: The Elections module adds elections to any participatory space.
|
141
141
|
email:
|
142
142
|
- leo@codegram.com
|
@@ -588,7 +588,6 @@ files:
|
|
588
588
|
- app/views/layouts/decidim/admin/votings.html.erb
|
589
589
|
- app/views/layouts/decidim/votings.html.erb
|
590
590
|
- config/assets.rb
|
591
|
-
- config/environment.rb
|
592
591
|
- config/initializers/decidim_bulletin_board.rb
|
593
592
|
- config/initializers/rack_attack.rb
|
594
593
|
- config/locales/am-ET.yml
|
@@ -619,6 +618,7 @@ files:
|
|
619
618
|
- config/locales/ga-IE.yml
|
620
619
|
- config/locales/gl.yml
|
621
620
|
- config/locales/gn-PY.yml
|
621
|
+
- config/locales/he-IL.yml
|
622
622
|
- config/locales/hr-HR.yml
|
623
623
|
- config/locales/hr.yml
|
624
624
|
- config/locales/hu.yml
|
@@ -713,6 +713,7 @@ files:
|
|
713
713
|
- db/migrate/20220424121541_add_show_check_census_to_votings.rb
|
714
714
|
- db/migrate/20220615102642_remove_description_from_elections_questions.rb
|
715
715
|
- db/migrate/20220711112802_rename_dataset_file_to_filename.rb
|
716
|
+
- decidim-elections.gemspec
|
716
717
|
- lib/decidim/api/bulletin_board_closure_type.rb
|
717
718
|
- lib/decidim/api/election_answer_type.rb
|
718
719
|
- lib/decidim/api/election_question_type.rb
|
@@ -767,23 +768,23 @@ metadata:
|
|
767
768
|
funding_uri: https://opencollective.com/decidim
|
768
769
|
homepage_uri: https://decidim.org
|
769
770
|
source_code_uri: https://github.com/decidim/decidim
|
770
|
-
post_install_message:
|
771
|
+
post_install_message:
|
771
772
|
rdoc_options: []
|
772
773
|
require_paths:
|
773
774
|
- lib
|
774
775
|
required_ruby_version: !ruby/object:Gem::Requirement
|
775
776
|
requirements:
|
776
|
-
- - "
|
777
|
+
- - "~>"
|
777
778
|
- !ruby/object:Gem::Version
|
778
|
-
version:
|
779
|
+
version: 3.1.0
|
779
780
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
780
781
|
requirements:
|
781
|
-
- - "
|
782
|
+
- - ">="
|
782
783
|
- !ruby/object:Gem::Version
|
783
|
-
version:
|
784
|
+
version: '0'
|
784
785
|
requirements: []
|
785
|
-
rubygems_version: 3.
|
786
|
-
signing_key:
|
786
|
+
rubygems_version: 3.5.9
|
787
|
+
signing_key:
|
787
788
|
specification_version: 4
|
788
789
|
summary: A decidim elections module (votings space and elections component)
|
789
790
|
test_files: []
|
data/config/environment.rb
DELETED