decidim-consultations 0.11.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +51 -0
- data/Rakefile +3 -0
- data/app/assets/config/decidim_consultations_manifest.js +5 -0
- data/app/assets/config/decidim_consultations_manifest.scss +3 -0
- data/app/assets/images/decidim/consultations/icon.svg +70 -0
- data/app/assets/images/decidim/consultations/icon2.svg +88 -0
- data/app/assets/javascripts/decidim/consultations/show_more.js.es6 +12 -0
- data/app/assets/javascripts/decidim/consultations/social_share.js +2 -0
- data/app/assets/javascripts/decidim/consultations/utils.js.es6 +19 -0
- data/app/assets/javascripts/decidim/consultations/vote_dialog.js +36 -0
- data/app/assets/stylesheets/decidim/consultations/_question.scss +46 -0
- data/app/assets/stylesheets/decidim/consultations/_stats.scss +22 -0
- data/app/assets/stylesheets/decidim/consultations/_video_wrapper.scss +14 -0
- data/app/assets/stylesheets/decidim/consultations/banners/_block-banner.scss +39 -0
- data/app/assets/stylesheets/decidim/consultations/consultations.scss +6 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-banner.scss +13 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-card.scss +17 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-header.scss +115 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-home-banner.scss +15 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-home-intro.scss +30 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-intro.scss +11 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations-title.scss +26 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/_consultations_nav.scss +7 -0
- data/app/assets/stylesheets/decidim/consultations/consultations/introductory_image.scss +3 -0
- data/app/assets/stylesheets/decidim/consultations/highlighted-content-banner.css.scss +42 -0
- data/app/assets/stylesheets/decidim/consultations/social_share.css.scss +18 -0
- data/app/commands/decidim/consultations/admin/create_consultation.rb +61 -0
- data/app/commands/decidim/consultations/admin/create_question.rb +68 -0
- data/app/commands/decidim/consultations/admin/create_response.rb +39 -0
- data/app/commands/decidim/consultations/admin/publish_consultation.rb +34 -0
- data/app/commands/decidim/consultations/admin/publish_consultation_results.rb +34 -0
- data/app/commands/decidim/consultations/admin/publish_question.rb +34 -0
- data/app/commands/decidim/consultations/admin/unpublish_consultation.rb +34 -0
- data/app/commands/decidim/consultations/admin/unpublish_consultation_results.rb +34 -0
- data/app/commands/decidim/consultations/admin/unpublish_question.rb +34 -0
- data/app/commands/decidim/consultations/admin/update_consultation.rb +64 -0
- data/app/commands/decidim/consultations/admin/update_question.rb +72 -0
- data/app/commands/decidim/consultations/admin/update_response.rb +46 -0
- data/app/commands/decidim/consultations/unvote_question.rb +37 -0
- data/app/commands/decidim/consultations/vote_question.rb +42 -0
- data/app/constraints/decidim/consultations/current_component.rb +28 -0
- data/app/constraints/decidim/consultations/current_question.rb +36 -0
- data/app/controllers/concerns/decidim/consultations/action_authorization.rb +38 -0
- data/app/controllers/concerns/decidim/consultations/admin/consultation_admin.rb +24 -0
- data/app/controllers/concerns/decidim/consultations/admin/question_admin.rb +28 -0
- data/app/controllers/concerns/decidim/consultations/needs_consultation.rb +54 -0
- data/app/controllers/concerns/decidim/consultations/needs_question.rb +79 -0
- data/app/controllers/concerns/decidim/consultations/orderable.rb +52 -0
- data/app/controllers/decidim/consultations/admin/application_controller.rb +14 -0
- data/app/controllers/decidim/consultations/admin/categories_controller.rb +13 -0
- data/app/controllers/decidim/consultations/admin/component_permissions_controller.rb +13 -0
- data/app/controllers/decidim/consultations/admin/components_controller.rb +13 -0
- data/app/controllers/decidim/consultations/admin/consultation_publications_controller.rb +44 -0
- data/app/controllers/decidim/consultations/admin/consultation_results_publications_controller.rb +44 -0
- data/app/controllers/decidim/consultations/admin/consultations_controller.rb +100 -0
- data/app/controllers/decidim/consultations/admin/question_attachments_controller.rb +25 -0
- data/app/controllers/decidim/consultations/admin/question_publications_controller.rb +44 -0
- data/app/controllers/decidim/consultations/admin/questions_controller.rb +88 -0
- data/app/controllers/decidim/consultations/admin/responses_controller.rb +85 -0
- data/app/controllers/decidim/consultations/consultation_widgets_controller.rb +25 -0
- data/app/controllers/decidim/consultations/consultations_controller.rb +75 -0
- data/app/controllers/decidim/consultations/question_votes_controller.rb +40 -0
- data/app/controllers/decidim/consultations/question_widgets_controller.rb +26 -0
- data/app/controllers/decidim/consultations/questions_controller.rb +23 -0
- data/app/forms/decidim/consultations/admin/consultation_form.rb +56 -0
- data/app/forms/decidim/consultations/admin/question_form.rb +74 -0
- data/app/forms/decidim/consultations/admin/response_form.rb +18 -0
- data/app/forms/decidim/consultations/vote_form.rb +28 -0
- data/app/helpers/decidim/consultations/admin/consultations_helper.rb +14 -0
- data/app/helpers/decidim/consultations/admin/questions_helper.rb +14 -0
- data/app/helpers/decidim/consultations/consultations_helper.rb +17 -0
- data/app/models/concerns/decidim/consultations/override_categorization.rb +21 -0
- data/app/models/concerns/decidim/consultations/publicable_results.rb +51 -0
- data/app/models/decidim/consultation.rb +79 -0
- data/app/models/decidim/consultations/abilities/admin/consultation_admin_ability.rb +34 -0
- data/app/models/decidim/consultations/abilities/admin/question_admin_ability.rb +30 -0
- data/app/models/decidim/consultations/abilities/admin/response_admin_ability.rb +26 -0
- data/app/models/decidim/consultations/abilities/current_user_ability.rb +45 -0
- data/app/models/decidim/consultations/abilities/everyone_ability.rb +23 -0
- data/app/models/decidim/consultations/application_record.rb +9 -0
- data/app/models/decidim/consultations/question.rb +127 -0
- data/app/models/decidim/consultations/response.rb +19 -0
- data/app/models/decidim/consultations/vote.rb +26 -0
- data/app/presenters/decidim/consultations/question_stats_presenter.rb +52 -0
- data/app/queries/decidim/consultations/admin/admin_users.rb +40 -0
- data/app/queries/decidim/consultations/organization_active_consultations.rb +20 -0
- data/app/queries/decidim/consultations/organization_consultations.rb +20 -0
- data/app/queries/decidim/consultations/organization_questions.rb +20 -0
- data/app/services/decidim/consultations/consultation_search.rb +51 -0
- data/app/views/decidim/consultations/_consultation.html.erb +32 -0
- data/app/views/decidim/consultations/admin/consultations/_form.html.erb +58 -0
- data/app/views/decidim/consultations/admin/consultations/edit.html.erb +42 -0
- data/app/views/decidim/consultations/admin/consultations/index.html.erb +74 -0
- data/app/views/decidim/consultations/admin/consultations/new.html.erb +11 -0
- data/app/views/decidim/consultations/admin/questions/_form.html.erb +84 -0
- data/app/views/decidim/consultations/admin/questions/edit.html.erb +32 -0
- data/app/views/decidim/consultations/admin/questions/index.html.erb +74 -0
- data/app/views/decidim/consultations/admin/questions/new.html.erb +13 -0
- data/app/views/decidim/consultations/admin/responses/_form.html.erb +11 -0
- data/app/views/decidim/consultations/admin/responses/edit.html.erb +18 -0
- data/app/views/decidim/consultations/admin/responses/index.html.erb +48 -0
- data/app/views/decidim/consultations/admin/responses/new.html.erb +13 -0
- data/app/views/decidim/consultations/consultation_widgets/show.html.erb +5 -0
- data/app/views/decidim/consultations/consultations/_consultation_card.html.erb +24 -0
- data/app/views/decidim/consultations/consultations/_consultation_details.html.erb +17 -0
- data/app/views/decidim/consultations/consultations/_consultations.html.erb +16 -0
- data/app/views/decidim/consultations/consultations/_count.html.erb +1 -0
- data/app/views/decidim/consultations/consultations/_filters.html.erb +25 -0
- data/app/views/decidim/consultations/consultations/_filters_small_view.html.erb +23 -0
- data/app/views/decidim/consultations/consultations/_highlighted_questions.html.erb +13 -0
- data/app/views/decidim/consultations/consultations/_question.html.erb +40 -0
- data/app/views/decidim/consultations/consultations/_regular_questions.html.erb +14 -0
- data/app/views/decidim/consultations/consultations/finished.html.erb +15 -0
- data/app/views/decidim/consultations/consultations/index.html.erb +27 -0
- data/app/views/decidim/consultations/consultations/index.js.erb +10 -0
- data/app/views/decidim/consultations/consultations/show.html.erb +11 -0
- data/app/views/decidim/consultations/question_votes/update_vote_button.js.erb +9 -0
- data/app/views/decidim/consultations/question_widgets/show.html.erb +2 -0
- data/app/views/decidim/consultations/questions/_results.html.erb +15 -0
- data/app/views/decidim/consultations/questions/_right_column.html.erb +20 -0
- data/app/views/decidim/consultations/questions/_statistics.html.erb +31 -0
- data/app/views/decidim/consultations/questions/_technical_data.html.erb +38 -0
- data/app/views/decidim/consultations/questions/_vote_button.html.erb +76 -0
- data/app/views/decidim/consultations/questions/_vote_modal.html.erb +27 -0
- data/app/views/decidim/consultations/questions/_vote_modal_confirm.html.erb +33 -0
- data/app/views/decidim/consultations/questions/show.html.erb +58 -0
- data/app/views/layouts/decidim/_consultation_header.html.erb +16 -0
- data/app/views/layouts/decidim/_consultation_voting_data.html.erb +10 -0
- data/app/views/layouts/decidim/_question_components.html.erb +38 -0
- data/app/views/layouts/decidim/_question_header.html.erb +46 -0
- data/app/views/layouts/decidim/admin/consultation.html.erb +28 -0
- data/app/views/layouts/decidim/admin/consultations.html.erb +16 -0
- data/app/views/layouts/decidim/admin/question.html.erb +72 -0
- data/app/views/layouts/decidim/consultation.html.erb +17 -0
- data/app/views/layouts/decidim/consultation_choose.html.erb +7 -0
- data/app/views/layouts/decidim/question.html.erb +19 -0
- data/config/locales/ca.yml +248 -0
- data/config/locales/en.yml +249 -0
- data/config/locales/es.yml +248 -0
- data/config/locales/eu.yml +248 -0
- data/config/locales/fi.yml +248 -0
- data/config/locales/fr.yml +248 -0
- data/config/locales/gl.yml +248 -0
- data/config/locales/it.yml +248 -0
- data/config/locales/nl.yml +248 -0
- data/config/locales/pl.yml +258 -0
- data/config/locales/pt-BR.yml +248 -0
- data/config/locales/pt.yml +248 -0
- data/config/locales/ru.yml +6 -0
- data/config/locales/sv.yml +248 -0
- data/config/locales/uk.yml +6 -0
- data/db/migrate/20180109092205_create_decidim_consultations.rb +37 -0
- data/db/migrate/20180112053247_create_decidim_consultations_questions.rb +35 -0
- data/db/migrate/20180115132000_add_end_voting_date_to_decidim_consultations.rb +18 -0
- data/db/migrate/20180115170933_add_slug_to_decidim_consultations_questions.rb +32 -0
- data/db/migrate/20180119084217_create_decidim_consultations_votes.rb +17 -0
- data/db/migrate/20180119084331_add_votes_count_to_decidim_consultations_question.rb +7 -0
- data/db/migrate/20180122113155_add_origin_scope_to_decidim_consultations_questions.rb +8 -0
- data/db/migrate/20180122113400_add_origin_title_to_decidim_consultations_questions.rb +8 -0
- data/db/migrate/20180122113447_add_origin_string_to_decidim_consultations_questions.rb +7 -0
- data/db/migrate/20180126142459_add_enable_highlighted_banner_to_decidim_consultations.rb +7 -0
- data/db/migrate/20180129063438_add_i_frame_url_to_decidim_consultations_questions.rb +8 -0
- data/db/migrate/20180129063700_create_decidim_consultations_responses.rb +14 -0
- data/db/migrate/20180129122226_rename_decidim_consultations_vote_to_decidim_consultations_endorsement.rb +7 -0
- data/db/migrate/20180129122504_rename_decidim_consultations_questions_votes_count_to_endorsements_count.rb +7 -0
- data/db/migrate/20180130060754_add_responses_count_to_decidim_consultations_questions.rb +22 -0
- data/db/migrate/20180130110449_rename_vote_related_attributes.rb +9 -0
- data/db/migrate/20180130142018_add_decidim_user_group_id_to_decidim_consultations_endorsements.rb +7 -0
- data/db/migrate/20180130142411_rename_vote_indexes_to_endorsement_indexes.rb +36 -0
- data/db/migrate/20180131083844_add_response_to_decidim_consultations_endorsements.rb +10 -0
- data/db/migrate/20180201135823_rename_endorsement_to_vote.rb +23 -0
- data/db/migrate/20180202050920_add_hero_image_to_decidim_consultations_question.rb +8 -0
- data/db/migrate/20180202085309_add_results_published_at_to_decidim_consultations.rb +7 -0
- data/db/migrate/20180202133655_add_votes_count_to_decidim_consultations_response.rb +7 -0
- data/db/migrate/20180212100503_remove_enable_highlighted_banner_flag.rb +7 -0
- data/db/migrate/20180219092120_add_order_to_decidim_consultations_questions.rb +7 -0
- data/db/migrate/20180320100658_add_introductory_image_to_decidim_consultations.rb +7 -0
- data/db/seeds/Exampledocument.pdf +0 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/db/seeds/homepage_image.jpg +0 -0
- data/lib/decidim/consultations.rb +18 -0
- data/lib/decidim/consultations/admin.rb +10 -0
- data/lib/decidim/consultations/admin_engine.rb +72 -0
- data/lib/decidim/consultations/engine.rb +83 -0
- data/lib/decidim/consultations/participatory_space.rb +171 -0
- data/lib/decidim/consultations/test/factories.rb +104 -0
- data/lib/decidim/consultations/version.rb +9 -0
- metadata +288 -0
@@ -0,0 +1,104 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "decidim/faker/localized"
|
4
|
+
require "decidim/dev"
|
5
|
+
|
6
|
+
FactoryBot.define do
|
7
|
+
sequence(:consultation_slug) do |n|
|
8
|
+
"#{Faker::Internet.slug(nil, "-")}-#{n}"
|
9
|
+
end
|
10
|
+
|
11
|
+
sequence(:question_slug) do |n|
|
12
|
+
"#{Faker::Internet.slug(nil, "-")}-#{n}"
|
13
|
+
end
|
14
|
+
|
15
|
+
factory :consultation, class: "Decidim::Consultation" do
|
16
|
+
organization
|
17
|
+
slug { generate(:consultation_slug) }
|
18
|
+
title { Decidim::Faker::Localized.sentence(3) }
|
19
|
+
subtitle { Decidim::Faker::Localized.sentence(1) }
|
20
|
+
description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(4) } }
|
21
|
+
banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") }
|
22
|
+
published_at { Time.current }
|
23
|
+
start_voting_date { Time.zone.today }
|
24
|
+
end_voting_date { Time.zone.today + 1.month }
|
25
|
+
introductory_video_url "https://www.youtube.com/embed/zhMMW0TENNA"
|
26
|
+
decidim_highlighted_scope_id { create(:scope, organization: organization).id }
|
27
|
+
results_published_at nil
|
28
|
+
|
29
|
+
trait :unpublished do
|
30
|
+
published_at nil
|
31
|
+
end
|
32
|
+
|
33
|
+
trait :published do
|
34
|
+
published_at { Time.current }
|
35
|
+
end
|
36
|
+
|
37
|
+
trait :unpublished_results do
|
38
|
+
results_published_at nil
|
39
|
+
end
|
40
|
+
|
41
|
+
trait :published_results do
|
42
|
+
results_published_at { Time.current }
|
43
|
+
end
|
44
|
+
|
45
|
+
trait :upcoming do
|
46
|
+
start_voting_date { Time.zone.today + 7.days }
|
47
|
+
end_voting_date { Time.zone.today + 1.month + 7.days }
|
48
|
+
end
|
49
|
+
|
50
|
+
trait :active do
|
51
|
+
start_voting_date { Time.zone.today - 7.days }
|
52
|
+
end_voting_date { Time.zone.today - 7.days + 1.month }
|
53
|
+
end
|
54
|
+
|
55
|
+
trait :finished do
|
56
|
+
start_voting_date { Time.zone.today - 7.days - 1.month }
|
57
|
+
end_voting_date { Time.zone.today - 7.days }
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
factory :question, class: "Decidim::Consultations::Question" do
|
62
|
+
consultation
|
63
|
+
organization { consultation.organization }
|
64
|
+
scope { create(:scope, organization: consultation.organization) }
|
65
|
+
slug { generate(:question_slug) }
|
66
|
+
title { Decidim::Faker::Localized.sentence(3) }
|
67
|
+
subtitle { Decidim::Faker::Localized.sentence(3) }
|
68
|
+
promoter_group { Decidim::Faker::Localized.sentence(3) }
|
69
|
+
participatory_scope { Decidim::Faker::Localized.sentence(3) }
|
70
|
+
question_context { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(4) } }
|
71
|
+
what_is_decided { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(4) } }
|
72
|
+
published_at { Time.current }
|
73
|
+
hero_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") }
|
74
|
+
banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") }
|
75
|
+
external_voting false
|
76
|
+
sequence :order do |n|
|
77
|
+
n
|
78
|
+
end
|
79
|
+
|
80
|
+
trait :unpublished do
|
81
|
+
published_at nil
|
82
|
+
end
|
83
|
+
|
84
|
+
trait :published do
|
85
|
+
published_at { Time.current }
|
86
|
+
end
|
87
|
+
|
88
|
+
trait :external_voting do
|
89
|
+
external_voting true
|
90
|
+
i_frame_url "http://example.org"
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
factory :response, class: "Decidim::Consultations::Response" do
|
95
|
+
question
|
96
|
+
title { Decidim::Faker::Localized.sentence(3) }
|
97
|
+
end
|
98
|
+
|
99
|
+
factory :vote, class: "Decidim::Consultations::Vote" do
|
100
|
+
question
|
101
|
+
response
|
102
|
+
author { create(:user, organization: question.organization) }
|
103
|
+
end
|
104
|
+
end
|
metadata
ADDED
@@ -0,0 +1,288 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: decidim-consultations
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.11.0.pre1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Juan Salvador Perez Garcia
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-04-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: decidim-admin
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.11.0.pre1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.11.0.pre1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: decidim-comments
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.11.0.pre1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.11.0.pre1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: decidim-core
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.11.0.pre1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.11.0.pre1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: decidim-dev
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.11.0.pre1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.11.0.pre1
|
69
|
+
description: Extends Decidim adding a first level public consultation component
|
70
|
+
email:
|
71
|
+
- jsperezg@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- README.md
|
77
|
+
- Rakefile
|
78
|
+
- app/assets/config/decidim_consultations_manifest.js
|
79
|
+
- app/assets/config/decidim_consultations_manifest.scss
|
80
|
+
- app/assets/images/decidim/consultations/icon.svg
|
81
|
+
- app/assets/images/decidim/consultations/icon2.svg
|
82
|
+
- app/assets/javascripts/decidim/consultations/show_more.js.es6
|
83
|
+
- app/assets/javascripts/decidim/consultations/social_share.js
|
84
|
+
- app/assets/javascripts/decidim/consultations/utils.js.es6
|
85
|
+
- app/assets/javascripts/decidim/consultations/vote_dialog.js
|
86
|
+
- app/assets/stylesheets/decidim/consultations/_question.scss
|
87
|
+
- app/assets/stylesheets/decidim/consultations/_stats.scss
|
88
|
+
- app/assets/stylesheets/decidim/consultations/_video_wrapper.scss
|
89
|
+
- app/assets/stylesheets/decidim/consultations/banners/_block-banner.scss
|
90
|
+
- app/assets/stylesheets/decidim/consultations/consultations.scss
|
91
|
+
- app/assets/stylesheets/decidim/consultations/consultations/_consultations-banner.scss
|
92
|
+
- app/assets/stylesheets/decidim/consultations/consultations/_consultations-card.scss
|
93
|
+
- app/assets/stylesheets/decidim/consultations/consultations/_consultations-header.scss
|
94
|
+
- app/assets/stylesheets/decidim/consultations/consultations/_consultations-home-banner.scss
|
95
|
+
- app/assets/stylesheets/decidim/consultations/consultations/_consultations-home-intro.scss
|
96
|
+
- app/assets/stylesheets/decidim/consultations/consultations/_consultations-intro.scss
|
97
|
+
- app/assets/stylesheets/decidim/consultations/consultations/_consultations-title.scss
|
98
|
+
- app/assets/stylesheets/decidim/consultations/consultations/_consultations_nav.scss
|
99
|
+
- app/assets/stylesheets/decidim/consultations/consultations/introductory_image.scss
|
100
|
+
- app/assets/stylesheets/decidim/consultations/highlighted-content-banner.css.scss
|
101
|
+
- app/assets/stylesheets/decidim/consultations/social_share.css.scss
|
102
|
+
- app/commands/decidim/consultations/admin/create_consultation.rb
|
103
|
+
- app/commands/decidim/consultations/admin/create_question.rb
|
104
|
+
- app/commands/decidim/consultations/admin/create_response.rb
|
105
|
+
- app/commands/decidim/consultations/admin/publish_consultation.rb
|
106
|
+
- app/commands/decidim/consultations/admin/publish_consultation_results.rb
|
107
|
+
- app/commands/decidim/consultations/admin/publish_question.rb
|
108
|
+
- app/commands/decidim/consultations/admin/unpublish_consultation.rb
|
109
|
+
- app/commands/decidim/consultations/admin/unpublish_consultation_results.rb
|
110
|
+
- app/commands/decidim/consultations/admin/unpublish_question.rb
|
111
|
+
- app/commands/decidim/consultations/admin/update_consultation.rb
|
112
|
+
- app/commands/decidim/consultations/admin/update_question.rb
|
113
|
+
- app/commands/decidim/consultations/admin/update_response.rb
|
114
|
+
- app/commands/decidim/consultations/unvote_question.rb
|
115
|
+
- app/commands/decidim/consultations/vote_question.rb
|
116
|
+
- app/constraints/decidim/consultations/current_component.rb
|
117
|
+
- app/constraints/decidim/consultations/current_question.rb
|
118
|
+
- app/controllers/concerns/decidim/consultations/action_authorization.rb
|
119
|
+
- app/controllers/concerns/decidim/consultations/admin/consultation_admin.rb
|
120
|
+
- app/controllers/concerns/decidim/consultations/admin/question_admin.rb
|
121
|
+
- app/controllers/concerns/decidim/consultations/needs_consultation.rb
|
122
|
+
- app/controllers/concerns/decidim/consultations/needs_question.rb
|
123
|
+
- app/controllers/concerns/decidim/consultations/orderable.rb
|
124
|
+
- app/controllers/decidim/consultations/admin/application_controller.rb
|
125
|
+
- app/controllers/decidim/consultations/admin/categories_controller.rb
|
126
|
+
- app/controllers/decidim/consultations/admin/component_permissions_controller.rb
|
127
|
+
- app/controllers/decidim/consultations/admin/components_controller.rb
|
128
|
+
- app/controllers/decidim/consultations/admin/consultation_publications_controller.rb
|
129
|
+
- app/controllers/decidim/consultations/admin/consultation_results_publications_controller.rb
|
130
|
+
- app/controllers/decidim/consultations/admin/consultations_controller.rb
|
131
|
+
- app/controllers/decidim/consultations/admin/question_attachments_controller.rb
|
132
|
+
- app/controllers/decidim/consultations/admin/question_publications_controller.rb
|
133
|
+
- app/controllers/decidim/consultations/admin/questions_controller.rb
|
134
|
+
- app/controllers/decidim/consultations/admin/responses_controller.rb
|
135
|
+
- app/controllers/decidim/consultations/consultation_widgets_controller.rb
|
136
|
+
- app/controllers/decidim/consultations/consultations_controller.rb
|
137
|
+
- app/controllers/decidim/consultations/question_votes_controller.rb
|
138
|
+
- app/controllers/decidim/consultations/question_widgets_controller.rb
|
139
|
+
- app/controllers/decidim/consultations/questions_controller.rb
|
140
|
+
- app/forms/decidim/consultations/admin/consultation_form.rb
|
141
|
+
- app/forms/decidim/consultations/admin/question_form.rb
|
142
|
+
- app/forms/decidim/consultations/admin/response_form.rb
|
143
|
+
- app/forms/decidim/consultations/vote_form.rb
|
144
|
+
- app/helpers/decidim/consultations/admin/consultations_helper.rb
|
145
|
+
- app/helpers/decidim/consultations/admin/questions_helper.rb
|
146
|
+
- app/helpers/decidim/consultations/consultations_helper.rb
|
147
|
+
- app/models/concerns/decidim/consultations/override_categorization.rb
|
148
|
+
- app/models/concerns/decidim/consultations/publicable_results.rb
|
149
|
+
- app/models/decidim/consultation.rb
|
150
|
+
- app/models/decidim/consultations/abilities/admin/consultation_admin_ability.rb
|
151
|
+
- app/models/decidim/consultations/abilities/admin/question_admin_ability.rb
|
152
|
+
- app/models/decidim/consultations/abilities/admin/response_admin_ability.rb
|
153
|
+
- app/models/decidim/consultations/abilities/current_user_ability.rb
|
154
|
+
- app/models/decidim/consultations/abilities/everyone_ability.rb
|
155
|
+
- app/models/decidim/consultations/application_record.rb
|
156
|
+
- app/models/decidim/consultations/question.rb
|
157
|
+
- app/models/decidim/consultations/response.rb
|
158
|
+
- app/models/decidim/consultations/vote.rb
|
159
|
+
- app/presenters/decidim/consultations/question_stats_presenter.rb
|
160
|
+
- app/queries/decidim/consultations/admin/admin_users.rb
|
161
|
+
- app/queries/decidim/consultations/organization_active_consultations.rb
|
162
|
+
- app/queries/decidim/consultations/organization_consultations.rb
|
163
|
+
- app/queries/decidim/consultations/organization_questions.rb
|
164
|
+
- app/services/decidim/consultations/consultation_search.rb
|
165
|
+
- app/views/decidim/consultations/_consultation.html.erb
|
166
|
+
- app/views/decidim/consultations/admin/consultations/_form.html.erb
|
167
|
+
- app/views/decidim/consultations/admin/consultations/edit.html.erb
|
168
|
+
- app/views/decidim/consultations/admin/consultations/index.html.erb
|
169
|
+
- app/views/decidim/consultations/admin/consultations/new.html.erb
|
170
|
+
- app/views/decidim/consultations/admin/questions/_form.html.erb
|
171
|
+
- app/views/decidim/consultations/admin/questions/edit.html.erb
|
172
|
+
- app/views/decidim/consultations/admin/questions/index.html.erb
|
173
|
+
- app/views/decidim/consultations/admin/questions/new.html.erb
|
174
|
+
- app/views/decidim/consultations/admin/responses/_form.html.erb
|
175
|
+
- app/views/decidim/consultations/admin/responses/edit.html.erb
|
176
|
+
- app/views/decidim/consultations/admin/responses/index.html.erb
|
177
|
+
- app/views/decidim/consultations/admin/responses/new.html.erb
|
178
|
+
- app/views/decidim/consultations/consultation_widgets/show.html.erb
|
179
|
+
- app/views/decidim/consultations/consultations/_consultation_card.html.erb
|
180
|
+
- app/views/decidim/consultations/consultations/_consultation_details.html.erb
|
181
|
+
- app/views/decidim/consultations/consultations/_consultations.html.erb
|
182
|
+
- app/views/decidim/consultations/consultations/_count.html.erb
|
183
|
+
- app/views/decidim/consultations/consultations/_filters.html.erb
|
184
|
+
- app/views/decidim/consultations/consultations/_filters_small_view.html.erb
|
185
|
+
- app/views/decidim/consultations/consultations/_highlighted_questions.html.erb
|
186
|
+
- app/views/decidim/consultations/consultations/_question.html.erb
|
187
|
+
- app/views/decidim/consultations/consultations/_regular_questions.html.erb
|
188
|
+
- app/views/decidim/consultations/consultations/finished.html.erb
|
189
|
+
- app/views/decidim/consultations/consultations/index.html.erb
|
190
|
+
- app/views/decidim/consultations/consultations/index.js.erb
|
191
|
+
- app/views/decidim/consultations/consultations/show.html.erb
|
192
|
+
- app/views/decidim/consultations/question_votes/update_vote_button.js.erb
|
193
|
+
- app/views/decidim/consultations/question_widgets/show.html.erb
|
194
|
+
- app/views/decidim/consultations/questions/_results.html.erb
|
195
|
+
- app/views/decidim/consultations/questions/_right_column.html.erb
|
196
|
+
- app/views/decidim/consultations/questions/_statistics.html.erb
|
197
|
+
- app/views/decidim/consultations/questions/_technical_data.html.erb
|
198
|
+
- app/views/decidim/consultations/questions/_vote_button.html.erb
|
199
|
+
- app/views/decidim/consultations/questions/_vote_modal.html.erb
|
200
|
+
- app/views/decidim/consultations/questions/_vote_modal_confirm.html.erb
|
201
|
+
- app/views/decidim/consultations/questions/show.html.erb
|
202
|
+
- app/views/layouts/decidim/_consultation_header.html.erb
|
203
|
+
- app/views/layouts/decidim/_consultation_voting_data.html.erb
|
204
|
+
- app/views/layouts/decidim/_question_components.html.erb
|
205
|
+
- app/views/layouts/decidim/_question_header.html.erb
|
206
|
+
- app/views/layouts/decidim/admin/consultation.html.erb
|
207
|
+
- app/views/layouts/decidim/admin/consultations.html.erb
|
208
|
+
- app/views/layouts/decidim/admin/question.html.erb
|
209
|
+
- app/views/layouts/decidim/consultation.html.erb
|
210
|
+
- app/views/layouts/decidim/consultation_choose.html.erb
|
211
|
+
- app/views/layouts/decidim/question.html.erb
|
212
|
+
- config/locales/ca.yml
|
213
|
+
- config/locales/en.yml
|
214
|
+
- config/locales/es.yml
|
215
|
+
- config/locales/eu.yml
|
216
|
+
- config/locales/fi.yml
|
217
|
+
- config/locales/fr.yml
|
218
|
+
- config/locales/gl.yml
|
219
|
+
- config/locales/it.yml
|
220
|
+
- config/locales/nl.yml
|
221
|
+
- config/locales/pl.yml
|
222
|
+
- config/locales/pt-BR.yml
|
223
|
+
- config/locales/pt.yml
|
224
|
+
- config/locales/ru.yml
|
225
|
+
- config/locales/sv.yml
|
226
|
+
- config/locales/uk.yml
|
227
|
+
- db/migrate/20180109092205_create_decidim_consultations.rb
|
228
|
+
- db/migrate/20180112053247_create_decidim_consultations_questions.rb
|
229
|
+
- db/migrate/20180115132000_add_end_voting_date_to_decidim_consultations.rb
|
230
|
+
- db/migrate/20180115170933_add_slug_to_decidim_consultations_questions.rb
|
231
|
+
- db/migrate/20180119084217_create_decidim_consultations_votes.rb
|
232
|
+
- db/migrate/20180119084331_add_votes_count_to_decidim_consultations_question.rb
|
233
|
+
- db/migrate/20180122113155_add_origin_scope_to_decidim_consultations_questions.rb
|
234
|
+
- db/migrate/20180122113400_add_origin_title_to_decidim_consultations_questions.rb
|
235
|
+
- db/migrate/20180122113447_add_origin_string_to_decidim_consultations_questions.rb
|
236
|
+
- db/migrate/20180126142459_add_enable_highlighted_banner_to_decidim_consultations.rb
|
237
|
+
- db/migrate/20180129063438_add_i_frame_url_to_decidim_consultations_questions.rb
|
238
|
+
- db/migrate/20180129063700_create_decidim_consultations_responses.rb
|
239
|
+
- db/migrate/20180129122226_rename_decidim_consultations_vote_to_decidim_consultations_endorsement.rb
|
240
|
+
- db/migrate/20180129122504_rename_decidim_consultations_questions_votes_count_to_endorsements_count.rb
|
241
|
+
- db/migrate/20180130060754_add_responses_count_to_decidim_consultations_questions.rb
|
242
|
+
- db/migrate/20180130110449_rename_vote_related_attributes.rb
|
243
|
+
- db/migrate/20180130142018_add_decidim_user_group_id_to_decidim_consultations_endorsements.rb
|
244
|
+
- db/migrate/20180130142411_rename_vote_indexes_to_endorsement_indexes.rb
|
245
|
+
- db/migrate/20180131083844_add_response_to_decidim_consultations_endorsements.rb
|
246
|
+
- db/migrate/20180201135823_rename_endorsement_to_vote.rb
|
247
|
+
- db/migrate/20180202050920_add_hero_image_to_decidim_consultations_question.rb
|
248
|
+
- db/migrate/20180202085309_add_results_published_at_to_decidim_consultations.rb
|
249
|
+
- db/migrate/20180202133655_add_votes_count_to_decidim_consultations_response.rb
|
250
|
+
- db/migrate/20180212100503_remove_enable_highlighted_banner_flag.rb
|
251
|
+
- db/migrate/20180219092120_add_order_to_decidim_consultations_questions.rb
|
252
|
+
- db/migrate/20180320100658_add_introductory_image_to_decidim_consultations.rb
|
253
|
+
- db/seeds/Exampledocument.pdf
|
254
|
+
- db/seeds/city.jpeg
|
255
|
+
- db/seeds/city2.jpeg
|
256
|
+
- db/seeds/homepage_image.jpg
|
257
|
+
- lib/decidim/consultations.rb
|
258
|
+
- lib/decidim/consultations/admin.rb
|
259
|
+
- lib/decidim/consultations/admin_engine.rb
|
260
|
+
- lib/decidim/consultations/engine.rb
|
261
|
+
- lib/decidim/consultations/participatory_space.rb
|
262
|
+
- lib/decidim/consultations/test/factories.rb
|
263
|
+
- lib/decidim/consultations/version.rb
|
264
|
+
homepage: https://github.com/decidim/decidim
|
265
|
+
licenses:
|
266
|
+
- AGPL-3.0
|
267
|
+
metadata: {}
|
268
|
+
post_install_message:
|
269
|
+
rdoc_options: []
|
270
|
+
require_paths:
|
271
|
+
- lib
|
272
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
273
|
+
requirements:
|
274
|
+
- - ">="
|
275
|
+
- !ruby/object:Gem::Version
|
276
|
+
version: 2.3.1
|
277
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
278
|
+
requirements:
|
279
|
+
- - ">"
|
280
|
+
- !ruby/object:Gem::Version
|
281
|
+
version: 1.3.1
|
282
|
+
requirements: []
|
283
|
+
rubyforge_project:
|
284
|
+
rubygems_version: 2.7.3
|
285
|
+
signing_key:
|
286
|
+
specification_version: 4
|
287
|
+
summary: Decidim consultations module
|
288
|
+
test_files: []
|