decidim-conferences 0.27.6 → 0.28.0.rc4
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/conferences/conference_cell.rb +9 -4
- data/app/cells/decidim/conferences/conference_dropdown_metadata_cell.rb +19 -0
- data/app/cells/decidim/conferences/conference_g_cell.rb +23 -0
- data/app/cells/decidim/conferences/conference_metadata_cell.rb +21 -0
- data/app/cells/decidim/conferences/conference_s_cell.rb +13 -0
- data/app/cells/decidim/conferences/conference_speaker/show.erb +44 -58
- data/app/cells/decidim/conferences/conference_speaker_cell.rb +4 -14
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb +15 -14
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form/show.erb +3 -0
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form_cell.rb +19 -0
- data/app/cells/decidim/conferences/linked_participatory_spaces/show.erb +6 -8
- data/app/cells/decidim/conferences/linked_participatory_spaces_cell.rb +1 -10
- data/app/cells/decidim/conferences/media_link/show.erb +6 -8
- data/app/cells/decidim/conferences/partner/image.erb +3 -0
- data/app/cells/decidim/conferences/partner/show.erb +8 -8
- data/app/cells/decidim/conferences/partner/text.erb +1 -0
- data/app/cells/decidim/conferences/partner_cell.rb +4 -2
- data/app/cells/decidim/conferences/registration_type/join_conference.erb +15 -12
- data/app/cells/decidim/conferences/registration_type/registration_confirm.erb +12 -12
- data/app/cells/decidim/conferences/registration_type/show.erb +11 -14
- data/app/cells/decidim/conferences/registration_type_cell.rb +3 -3
- data/app/commands/decidim/conferences/admin/copy_conference.rb +1 -1
- data/app/commands/decidim/conferences/admin/create_conference.rb +2 -11
- data/app/commands/decidim/conferences/admin/create_conference_speaker.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_media_link.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_partner.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_registration_type.rb +2 -2
- data/app/commands/decidim/conferences/admin/destroy_conference_speaker.rb +2 -2
- data/app/commands/decidim/conferences/admin/destroy_media_link.rb +1 -1
- data/app/commands/decidim/conferences/admin/destroy_partner.rb +3 -3
- data/app/commands/decidim/conferences/admin/destroy_registration_type.rb +1 -1
- data/app/commands/decidim/conferences/admin/invite_user_to_join_conference.rb +5 -5
- data/app/commands/decidim/conferences/admin/publish_conference.rb +9 -26
- data/app/commands/decidim/conferences/admin/send_conference_diplomas.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_conference.rb +2 -11
- data/app/commands/decidim/conferences/admin/update_conference_speaker.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_media_link.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_partner.rb +1 -1
- data/app/commands/decidim/conferences/admin/update_registration_type.rb +1 -1
- data/app/commands/decidim/conferences/decline_invitation.rb +1 -1
- data/app/commands/decidim/conferences/join_conference.rb +5 -5
- data/app/constraints/decidim/conferences/current_component.rb +2 -2
- data/app/constraints/decidim/conferences/current_conference.rb +2 -2
- data/app/controllers/concerns/decidim/conferences/admin/conference_context.rb +1 -1
- data/app/controllers/decidim/conferences/admin/concerns/conference_admin.rb +2 -2
- data/app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb +6 -1
- data/app/controllers/decidim/conferences/admin/conference_attachments_controller.rb +5 -0
- data/app/controllers/decidim/conferences/admin/conference_invites_controller.rb +2 -1
- data/app/controllers/decidim/conferences/admin/conference_publications_controller.rb +10 -28
- data/app/controllers/decidim/conferences/admin/conference_registrations_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/conference_user_roles_controller.rb +8 -90
- data/app/controllers/decidim/conferences/admin/conferences_controller.rb +2 -0
- data/app/controllers/decidim/conferences/admin/diplomas_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/exports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/imports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/moderations/reports_controller.rb +1 -1
- data/app/controllers/decidim/conferences/admin/moderations_controller.rb +1 -1
- data/app/controllers/decidim/conferences/application_controller.rb +6 -0
- data/app/controllers/decidim/conferences/conference_registrations_controller.rb +3 -3
- data/app/controllers/decidim/conferences/conferences_controller.rb +9 -2
- data/app/events/decidim/conferences/conference_registration_notification_event.rb +3 -13
- data/app/events/decidim/conferences/conference_registrations_enabled_event.rb +1 -1
- data/app/events/decidim/conferences/conference_registrations_over_percentage_event.rb +1 -1
- data/app/events/decidim/conferences/conference_role_assigned_event.rb +6 -6
- data/app/forms/decidim/conferences/admin/conference_copy_form.rb +1 -1
- data/app/forms/decidim/conferences/admin/conference_form.rb +4 -15
- data/app/forms/decidim/conferences/admin/conference_user_role_form.rb +2 -17
- data/app/helpers/decidim/conferences/admin/conferences_helper.rb +0 -4
- data/app/helpers/decidim/conferences/conference_helper.rb +55 -0
- data/app/helpers/decidim/conferences/conference_program_helper.rb +1 -1
- data/app/helpers/decidim/conferences/media_attachments_helper.rb +0 -10
- data/app/helpers/decidim/conferences/partners_helper.rb +3 -1
- data/app/mailers/decidim/conferences/admin/invite_join_conference_mailer.rb +1 -1
- data/app/mailers/decidim/conferences/admin/send_conference_diploma_mailer.rb +1 -1
- data/app/mailers/decidim/conferences/conference_registration_mailer.rb +2 -2
- data/app/models/decidim/conference.rb +4 -4
- data/app/models/decidim/conference_user_role.rb +6 -34
- data/app/packs/entrypoints/decidim_conferences.js +5 -0
- data/app/packs/src/decidim/conferences/admin/conferences.js +6 -6
- data/app/packs/stylesheets/decidim/conferences/_conference.scss +102 -0
- data/app/packs/stylesheets/decidim/conferences/_media.scss +13 -0
- data/app/packs/stylesheets/decidim/conferences/_program.scss +43 -0
- data/app/packs/stylesheets/decidim/conferences/_registration.scss +39 -0
- data/app/packs/stylesheets/decidim/conferences/_speaker.scss +83 -0
- data/app/packs/stylesheets/decidim/conferences/conferences.scss +5 -3
- data/app/permissions/decidim/conferences/permissions.rb +2 -13
- data/app/presenters/decidim/conference_speaker_presenter.rb +1 -1
- data/app/presenters/decidim/conferences/admin_log/conference_invite_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_registration_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_speaker_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_user_role_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/media_link_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/partner_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/registration_type_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/conference_stats_presenter.rb +3 -28
- data/app/queries/decidim/conferences/admin/admin_users.rb +4 -4
- data/app/queries/decidim/conferences/conferences_with_user_role.rb +2 -2
- data/app/queries/decidim/conferences/organization_conferences.rb +1 -1
- data/app/queries/decidim/conferences/organization_published_conferences.rb +1 -1
- data/app/views/decidim/conferences/admin/conference_copies/_form.html.erb +22 -28
- data/app/views/decidim/conferences/admin/conference_copies/new.html.erb +16 -5
- data/app/views/decidim/conferences/admin/conference_invites/_form.html.erb +17 -19
- data/app/views/decidim/conferences/admin/conference_invites/index.html.erb +69 -74
- data/app/views/decidim/conferences/admin/conference_invites/new.html.erb +21 -17
- data/app/views/decidim/conferences/admin/conference_registrations/index.html.erb +45 -45
- data/app/views/decidim/conferences/admin/conference_speakers/_form.html.erb +42 -46
- data/app/views/decidim/conferences/admin/conference_speakers/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_speakers/index.html.erb +52 -55
- data/app/views/decidim/conferences/admin/conference_speakers/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_user_roles/_form.html.erb +14 -18
- data/app/views/decidim/conferences/admin/conference_user_roles/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conference_user_roles/index.html.erb +53 -56
- data/app/views/decidim/conferences/admin/conference_user_roles/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/conferences/_form.html.erb +88 -88
- data/app/views/decidim/conferences/admin/conferences/edit.html.erb +26 -12
- data/app/views/decidim/conferences/admin/conferences/index.html.erb +55 -64
- data/app/views/decidim/conferences/admin/conferences/new.html.erb +16 -8
- data/app/views/decidim/conferences/admin/diplomas/_form.html.erb +18 -24
- data/app/views/decidim/conferences/admin/diplomas/edit.html.erb +19 -5
- data/app/views/decidim/conferences/admin/media_links/_form.html.erb +15 -19
- data/app/views/decidim/conferences/admin/media_links/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/media_links/index.html.erb +37 -40
- data/app/views/decidim/conferences/admin/media_links/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/partners/_form.html.erb +18 -22
- data/app/views/decidim/conferences/admin/partners/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/partners/index.html.erb +45 -48
- data/app/views/decidim/conferences/admin/partners/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/registration_types/_form.html.erb +23 -23
- data/app/views/decidim/conferences/admin/registration_types/edit.html.erb +16 -6
- data/app/views/decidim/conferences/admin/registration_types/index.html.erb +52 -56
- data/app/views/decidim/conferences/admin/registration_types/new.html.erb +16 -6
- data/app/views/decidim/conferences/admin/send_conference_diploma_mailer/diploma_user.html.erb +2 -2
- data/app/views/decidim/conferences/conference_program/_program_item.html.erb +21 -24
- data/app/views/decidim/conferences/conference_program/_program_meeting.html.erb +29 -63
- data/app/views/decidim/conferences/conference_program/show.html.erb +27 -39
- data/app/views/decidim/conferences/conference_speakers/index.html.erb +12 -6
- data/app/views/decidim/conferences/conferences/_conference_hero.html.erb +33 -0
- data/app/views/decidim/conferences/conferences/_partners.html.erb +10 -13
- data/app/views/decidim/conferences/conferences/index.html.erb +17 -7
- data/app/views/decidim/conferences/conferences/show.html.erb +84 -50
- data/app/views/decidim/conferences/media/index.html.erb +33 -19
- data/app/views/decidim/conferences/registration_types/index.html.erb +25 -17
- data/app/views/layouts/decidim/admin/conference.html.erb +12 -14
- data/app/views/layouts/decidim/admin/conferences.html.erb +13 -8
- data/app/views/layouts/decidim/conference.html.erb +7 -17
- data/app/views/layouts/decidim/conferences/_conference_nav_item.html.erb +6 -0
- data/app/views/layouts/decidim/conferences/application.html.erb +6 -0
- data/config/assets.rb +1 -1
- data/config/initializers/wicked_pdf.rb +1 -1
- data/config/locales/ar.yml +3 -64
- data/config/locales/bg.yml +0 -85
- data/config/locales/ca.yml +34 -54
- data/config/locales/cs.yml +35 -53
- data/config/locales/de.yml +33 -53
- data/config/locales/el.yml +11 -51
- data/config/locales/en.yml +34 -54
- data/config/locales/es-MX.yml +32 -52
- data/config/locales/es-PY.yml +32 -52
- data/config/locales/es.yml +32 -52
- data/config/locales/eu.yml +33 -58
- data/config/locales/fi-plain.yml +32 -52
- data/config/locales/fi.yml +32 -52
- data/config/locales/fr-CA.yml +31 -51
- data/config/locales/fr.yml +31 -51
- data/config/locales/ga-IE.yml +0 -17
- data/config/locales/gl.yml +3 -62
- data/config/locales/hu.yml +15 -53
- data/config/locales/id-ID.yml +3 -57
- data/config/locales/it.yml +4 -62
- data/config/locales/ja.yml +33 -54
- data/config/locales/lb.yml +1 -55
- data/config/locales/lt.yml +14 -52
- data/config/locales/lv.yml +1 -61
- data/config/locales/nl.yml +3 -62
- data/config/locales/no.yml +1 -62
- data/config/locales/pl.yml +1 -79
- data/config/locales/pt-BR.yml +1 -72
- data/config/locales/pt.yml +2 -63
- data/config/locales/ro-RO.yml +13 -50
- data/config/locales/sk.yml +1 -61
- data/config/locales/sl.yml +0 -2
- data/config/locales/sr-CS.yml +0 -9
- data/config/locales/sv.yml +7 -62
- data/config/locales/tr-TR.yml +13 -62
- data/config/locales/zh-CN.yml +3 -60
- data/config/locales/zh-TW.yml +6 -47
- data/db/migrate/20221116084952_add_weight_to_conferences.rb +7 -0
- data/lib/decidim/conferences/admin_engine.rb +14 -138
- data/lib/decidim/conferences/content_blocks/registry_manager.rb +21 -0
- data/lib/decidim/conferences/engine.rb +17 -15
- data/lib/decidim/conferences/menu.rb +182 -0
- data/lib/decidim/conferences/participatory_space.rb +6 -200
- data/lib/decidim/conferences/query_extensions.rb +2 -2
- data/lib/decidim/conferences/seeds.rb +153 -0
- data/lib/decidim/conferences/test/factories.rb +37 -73
- data/lib/decidim/conferences/version.rb +1 -1
- metadata +48 -52
- data/app/cells/decidim/conferences/conference_address/show.erb +0 -11
- data/app/cells/decidim/conferences/conference_address_cell.rb +0 -11
- data/app/cells/decidim/conferences/conference_m/footer.erb +0 -9
- data/app/cells/decidim/conferences/conference_m/tags.erb +0 -1
- data/app/cells/decidim/conferences/conference_m_cell.rb +0 -38
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences/show.erb +0 -30
- data/app/cells/decidim/conferences/photo/show.erb +0 -26
- data/app/cells/decidim/conferences/photo_cell.rb +0 -41
- data/app/cells/decidim/conferences/photos_list/show.erb +0 -8
- data/app/cells/decidim/conferences/photos_list_cell.rb +0 -18
- data/app/commands/decidim/conferences/admin/create_conference_admin.rb +0 -114
- data/app/commands/decidim/conferences/admin/destroy_conference_admin.rb +0 -58
- data/app/commands/decidim/conferences/admin/notify_role_assigned_to_conference.rb +0 -22
- data/app/commands/decidim/conferences/admin/unpublish_conference.rb +0 -39
- data/app/commands/decidim/conferences/admin/update_conference_admin.rb +0 -53
- data/app/controllers/decidim/conferences/conference_widgets_controller.rb +0 -33
- data/app/queries/decidim/conferences/admin/conference_invites.rb +0 -60
- data/app/views/decidim/conferences/_order_by_conferences.html.erb +0 -3
- data/app/views/decidim/conferences/conferences/_promoted_conference.html.erb +0 -27
- data/app/views/decidim/conferences/media/_attachments.html.erb +0 -6
- data/app/views/decidim/conferences/shared/_conference_user_login.html.erb +0 -14
- data/app/views/layouts/decidim/_conference_hero.html.erb +0 -42
- data/app/views/layouts/decidim/_conferences_nav.html.erb +0 -46
- data/config/locales/he-IL.yml +0 -1
- 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/db/seeds/logo.png +0 -0
- data/decidim-conferences.gemspec +0 -33
@@ -10,15 +10,13 @@ FactoryBot.define do
|
|
10
10
|
end
|
11
11
|
|
12
12
|
factory :conference, class: "Decidim::Conference" do
|
13
|
-
|
14
|
-
skip_injection { false }
|
15
|
-
end
|
16
|
-
title { generate_localized_title(:conference_title, skip_injection: skip_injection) }
|
13
|
+
title { generate_localized_title }
|
17
14
|
slug { generate(:conference_slug) }
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
15
|
+
weight { 1 }
|
16
|
+
slogan { generate_localized_title }
|
17
|
+
short_description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
|
18
|
+
description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
|
19
|
+
objectives { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
|
22
20
|
organization
|
23
21
|
hero_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") } # Keep after organization
|
24
22
|
banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") } # Keep after organization
|
@@ -27,7 +25,7 @@ FactoryBot.define do
|
|
27
25
|
show_statistics { true }
|
28
26
|
start_date { 1.month.ago }
|
29
27
|
end_date { 1.month.ago + 3.days }
|
30
|
-
registration_terms { generate_localized_title
|
28
|
+
registration_terms { generate_localized_title }
|
31
29
|
|
32
30
|
trait :promoted do
|
33
31
|
promoted { true }
|
@@ -50,18 +48,14 @@ FactoryBot.define do
|
|
50
48
|
end
|
51
49
|
|
52
50
|
factory :conference_user_role, class: "Decidim::ConferenceUserRole" do
|
53
|
-
transient do
|
54
|
-
skip_injection { false }
|
55
|
-
end
|
56
51
|
user
|
57
|
-
conference { create :conference, organization: user.organization
|
52
|
+
conference { create :conference, organization: user.organization }
|
58
53
|
role { "admin" }
|
59
54
|
end
|
60
55
|
|
61
56
|
factory :conference_admin, parent: :user, class: "Decidim::User" do
|
62
57
|
transient do
|
63
|
-
|
64
|
-
conference { create(:conference, skip_injection: skip_injection) }
|
58
|
+
conference { create(:conference) }
|
65
59
|
end
|
66
60
|
|
67
61
|
organization { conference.organization }
|
@@ -69,17 +63,15 @@ FactoryBot.define do
|
|
69
63
|
|
70
64
|
after(:create) do |user, evaluator|
|
71
65
|
create :conference_user_role,
|
72
|
-
user
|
66
|
+
user:,
|
73
67
|
conference: evaluator.conference,
|
74
|
-
role: :admin
|
75
|
-
skip_injection: evaluator.skip_injection
|
68
|
+
role: :admin
|
76
69
|
end
|
77
70
|
end
|
78
71
|
|
79
72
|
factory :conference_moderator, parent: :user, class: "Decidim::User" do
|
80
73
|
transient do
|
81
|
-
|
82
|
-
conference { create(:conference, skip_injection: skip_injection) }
|
74
|
+
conference { create(:conference) }
|
83
75
|
end
|
84
76
|
|
85
77
|
organization { conference.organization }
|
@@ -87,17 +79,15 @@ FactoryBot.define do
|
|
87
79
|
|
88
80
|
after(:create) do |user, evaluator|
|
89
81
|
create :conference_user_role,
|
90
|
-
user
|
82
|
+
user:,
|
91
83
|
conference: evaluator.conference,
|
92
|
-
role: :moderator
|
93
|
-
skip_injection: evaluator.skip_injection
|
84
|
+
role: :moderator
|
94
85
|
end
|
95
86
|
end
|
96
87
|
|
97
88
|
factory :conference_collaborator, parent: :user, class: "Decidim::User" do
|
98
89
|
transient do
|
99
|
-
|
100
|
-
conference { create(:conference, skip_injection: skip_injection) }
|
90
|
+
conference { create(:conference) }
|
101
91
|
end
|
102
92
|
|
103
93
|
organization { conference.organization }
|
@@ -105,17 +95,15 @@ FactoryBot.define do
|
|
105
95
|
|
106
96
|
after(:create) do |user, evaluator|
|
107
97
|
create :conference_user_role,
|
108
|
-
user
|
98
|
+
user:,
|
109
99
|
conference: evaluator.conference,
|
110
|
-
role: :collaborator
|
111
|
-
skip_injection: evaluator.skip_injection
|
100
|
+
role: :collaborator
|
112
101
|
end
|
113
102
|
end
|
114
103
|
|
115
104
|
factory :conference_valuator, parent: :user, class: "Decidim::User" do
|
116
105
|
transient do
|
117
|
-
|
118
|
-
conference { create(:conference, skip_injection: skip_injection) }
|
106
|
+
conference { create(:conference) }
|
119
107
|
end
|
120
108
|
|
121
109
|
organization { conference.organization }
|
@@ -123,23 +111,19 @@ FactoryBot.define do
|
|
123
111
|
|
124
112
|
after(:create) do |user, evaluator|
|
125
113
|
create :conference_user_role,
|
126
|
-
user
|
114
|
+
user:,
|
127
115
|
conference: evaluator.conference,
|
128
|
-
role: :valuator
|
129
|
-
skip_injection: evaluator.skip_injection
|
116
|
+
role: :valuator
|
130
117
|
end
|
131
118
|
end
|
132
119
|
|
133
120
|
factory :conference_speaker, class: "Decidim::ConferenceSpeaker" do
|
134
|
-
|
135
|
-
skip_injection { false }
|
136
|
-
end
|
137
|
-
conference { create(:conference, skip_injection: skip_injection) }
|
121
|
+
conference { create(:conference) }
|
138
122
|
|
139
123
|
full_name { Faker::Name.name }
|
140
124
|
position { Decidim::Faker::Localized.word }
|
141
125
|
affiliation { Decidim::Faker::Localized.word }
|
142
|
-
short_bio { generate_localized_title
|
126
|
+
short_bio { generate_localized_title }
|
143
127
|
twitter_handle { Faker::Internet.user_name }
|
144
128
|
personal_url { Faker::Internet.url }
|
145
129
|
|
@@ -148,66 +132,58 @@ FactoryBot.define do
|
|
148
132
|
end
|
149
133
|
|
150
134
|
trait :with_user do
|
151
|
-
user { create(:user, organization: conference.organization
|
135
|
+
user { create(:user, organization: conference.organization) }
|
152
136
|
end
|
153
137
|
|
154
138
|
trait :with_meeting do
|
155
139
|
transient do
|
156
|
-
meetings_component { create(:meetings_component, participatory_space: conference.participatory_space
|
140
|
+
meetings_component { create(:meetings_component, participatory_space: conference.participatory_space) }
|
157
141
|
end
|
158
142
|
|
159
143
|
after :build do |conference_speaker, evaluator|
|
160
144
|
conference_speaker.conference_speaker_conference_meetings << build(:conference_speaker_conference_meeting,
|
161
145
|
meetings_component: evaluator.meetings_component,
|
162
|
-
conference_speaker:
|
163
|
-
skip_injection: evaluator.skip_injection)
|
146
|
+
conference_speaker:)
|
164
147
|
end
|
165
148
|
end
|
166
149
|
end
|
167
150
|
|
168
151
|
factory :conference_speaker_conference_meeting, class: "Decidim::ConferenceSpeakerConferenceMeeting" do
|
169
152
|
transient do
|
170
|
-
|
171
|
-
|
172
|
-
meetings_component { create(:meetings_component, skip_injection: skip_injection, participatory_space: conference.participatory_space) }
|
153
|
+
conference { create(:conference) }
|
154
|
+
meetings_component { create(:meetings_component, participatory_space: conference.participatory_space) }
|
173
155
|
end
|
174
156
|
|
175
|
-
conference_meeting { create(:conference_meeting, :published, conference
|
176
|
-
conference_speaker { create(:conference_speaker, conference:
|
157
|
+
conference_meeting { create(:conference_meeting, :published, conference:, component: meetings_component) }
|
158
|
+
conference_speaker { create(:conference_speaker, conference:) }
|
177
159
|
end
|
178
160
|
|
179
161
|
factory :conference_meeting_registration_type, class: "Decidim::Conferences::ConferenceMeetingRegistrationType" do
|
180
162
|
transient do
|
181
|
-
|
182
|
-
conference { create(:conference, skip_injection: skip_injection) }
|
163
|
+
conference { create(:conference) }
|
183
164
|
end
|
184
165
|
|
185
166
|
conference_meeting
|
186
|
-
registration_type { build(:registration_type, conference:
|
167
|
+
registration_type { build(:registration_type, conference:) }
|
187
168
|
end
|
188
169
|
|
189
170
|
factory :conference_meeting, parent: :meeting, class: "Decidim::ConferenceMeeting" do
|
190
171
|
transient do
|
191
|
-
|
192
|
-
conference { create(:conference, skip_injection: skip_injection) }
|
172
|
+
conference { create(:conference) }
|
193
173
|
end
|
194
174
|
|
195
175
|
after :build do |conference_meeting, evaluator|
|
196
176
|
conference_meeting.conference_meeting_registration_types << build(:conference_meeting_registration_type,
|
197
|
-
conference_meeting
|
198
|
-
conference: evaluator.conference
|
199
|
-
skip_injection: evaluator.skip_injection)
|
177
|
+
conference_meeting:,
|
178
|
+
conference: evaluator.conference)
|
200
179
|
end
|
201
180
|
end
|
202
181
|
|
203
182
|
factory :registration_type, class: "Decidim::Conferences::RegistrationType" do
|
204
|
-
transient do
|
205
|
-
skip_injection { false }
|
206
|
-
end
|
207
183
|
conference
|
208
184
|
|
209
|
-
title { generate_localized_title
|
210
|
-
description {
|
185
|
+
title { generate_localized_title }
|
186
|
+
description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
|
211
187
|
published_at { Time.current }
|
212
188
|
price { Faker::Number.between(from: 1, to: 300) }
|
213
189
|
weight { Faker::Number.between(from: 1, to: 10) }
|
@@ -222,9 +198,6 @@ FactoryBot.define do
|
|
222
198
|
end
|
223
199
|
|
224
200
|
factory :conference_registration, class: "Decidim::Conferences::ConferenceRegistration" do
|
225
|
-
transient do
|
226
|
-
skip_injection { false }
|
227
|
-
end
|
228
201
|
conference
|
229
202
|
user
|
230
203
|
registration_type
|
@@ -240,9 +213,6 @@ FactoryBot.define do
|
|
240
213
|
end
|
241
214
|
|
242
215
|
factory :conference_invite, class: "Decidim::Conferences::ConferenceInvite" do
|
243
|
-
transient do
|
244
|
-
skip_injection { false }
|
245
|
-
end
|
246
216
|
conference
|
247
217
|
user
|
248
218
|
sent_at { 1.day.ago }
|
@@ -260,9 +230,6 @@ FactoryBot.define do
|
|
260
230
|
end
|
261
231
|
|
262
232
|
factory :partner, class: "Decidim::Conferences::Partner" do
|
263
|
-
transient do
|
264
|
-
skip_injection { false }
|
265
|
-
end
|
266
233
|
conference
|
267
234
|
|
268
235
|
name { Faker::Name.name }
|
@@ -281,11 +248,8 @@ FactoryBot.define do
|
|
281
248
|
end
|
282
249
|
|
283
250
|
factory :media_link, class: "Decidim::Conferences::MediaLink" do
|
284
|
-
transient do
|
285
|
-
skip_injection { false }
|
286
|
-
end
|
287
251
|
conference
|
288
|
-
title { generate_localized_title
|
252
|
+
title { generate_localized_title }
|
289
253
|
weight { Faker::Number.between(from: 1, to: 10) }
|
290
254
|
link { Faker::Internet.url }
|
291
255
|
date { 1.month.ago }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-conferences
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.0.rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Massot Gil
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-core
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.28.0.rc4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.28.0.rc4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: decidim-meetings
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.28.0.rc4
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.28.0.rc4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: wicked_pdf
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
47
|
+
version: '2.7'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
54
|
+
version: '2.7'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: wkhtmltopdf-binary
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,28 +72,28 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.28.0.rc4
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.28.0.rc4
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: decidim-dev
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.28.0.rc4
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.28.0.rc4
|
97
97
|
description: Conferences component for decidim.
|
98
98
|
email:
|
99
99
|
- isaac.mg@coditramuntana.com
|
@@ -103,26 +103,24 @@ extra_rdoc_files: []
|
|
103
103
|
files:
|
104
104
|
- README.md
|
105
105
|
- Rakefile
|
106
|
-
- app/cells/decidim/conferences/conference_address/show.erb
|
107
|
-
- app/cells/decidim/conferences/conference_address_cell.rb
|
108
106
|
- app/cells/decidim/conferences/conference_cell.rb
|
109
|
-
- app/cells/decidim/conferences/
|
110
|
-
- app/cells/decidim/conferences/
|
111
|
-
- app/cells/decidim/conferences/
|
107
|
+
- app/cells/decidim/conferences/conference_dropdown_metadata_cell.rb
|
108
|
+
- app/cells/decidim/conferences/conference_g_cell.rb
|
109
|
+
- app/cells/decidim/conferences/conference_metadata_cell.rb
|
110
|
+
- app/cells/decidim/conferences/conference_s_cell.rb
|
112
111
|
- app/cells/decidim/conferences/conference_speaker/show.erb
|
113
112
|
- app/cells/decidim/conferences/conference_speaker_cell.rb
|
114
|
-
- app/cells/decidim/conferences/content_blocks/highlighted_conferences/show.erb
|
115
113
|
- app/cells/decidim/conferences/content_blocks/highlighted_conferences_cell.rb
|
114
|
+
- app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form/show.erb
|
115
|
+
- app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form_cell.rb
|
116
116
|
- app/cells/decidim/conferences/linked_participatory_spaces/show.erb
|
117
117
|
- app/cells/decidim/conferences/linked_participatory_spaces_cell.rb
|
118
118
|
- app/cells/decidim/conferences/media_link/show.erb
|
119
119
|
- app/cells/decidim/conferences/media_link_cell.rb
|
120
|
+
- app/cells/decidim/conferences/partner/image.erb
|
120
121
|
- app/cells/decidim/conferences/partner/show.erb
|
122
|
+
- app/cells/decidim/conferences/partner/text.erb
|
121
123
|
- app/cells/decidim/conferences/partner_cell.rb
|
122
|
-
- app/cells/decidim/conferences/photo/show.erb
|
123
|
-
- app/cells/decidim/conferences/photo_cell.rb
|
124
|
-
- app/cells/decidim/conferences/photos_list/show.erb
|
125
|
-
- app/cells/decidim/conferences/photos_list_cell.rb
|
126
124
|
- app/cells/decidim/conferences/registration_type/join_conference.erb
|
127
125
|
- app/cells/decidim/conferences/registration_type/registration_confirm.erb
|
128
126
|
- app/cells/decidim/conferences/registration_type/show.erb
|
@@ -130,26 +128,21 @@ files:
|
|
130
128
|
- app/commands/decidim/conferences/admin/confirm_conference_registration.rb
|
131
129
|
- app/commands/decidim/conferences/admin/copy_conference.rb
|
132
130
|
- app/commands/decidim/conferences/admin/create_conference.rb
|
133
|
-
- app/commands/decidim/conferences/admin/create_conference_admin.rb
|
134
131
|
- app/commands/decidim/conferences/admin/create_conference_speaker.rb
|
135
132
|
- app/commands/decidim/conferences/admin/create_media_link.rb
|
136
133
|
- app/commands/decidim/conferences/admin/create_partner.rb
|
137
134
|
- app/commands/decidim/conferences/admin/create_registration_type.rb
|
138
|
-
- app/commands/decidim/conferences/admin/destroy_conference_admin.rb
|
139
135
|
- app/commands/decidim/conferences/admin/destroy_conference_speaker.rb
|
140
136
|
- app/commands/decidim/conferences/admin/destroy_media_link.rb
|
141
137
|
- app/commands/decidim/conferences/admin/destroy_partner.rb
|
142
138
|
- app/commands/decidim/conferences/admin/destroy_registration_type.rb
|
143
139
|
- app/commands/decidim/conferences/admin/export_conference_registrations.rb
|
144
140
|
- app/commands/decidim/conferences/admin/invite_user_to_join_conference.rb
|
145
|
-
- app/commands/decidim/conferences/admin/notify_role_assigned_to_conference.rb
|
146
141
|
- app/commands/decidim/conferences/admin/publish_conference.rb
|
147
142
|
- app/commands/decidim/conferences/admin/publish_registration_type.rb
|
148
143
|
- app/commands/decidim/conferences/admin/send_conference_diplomas.rb
|
149
|
-
- app/commands/decidim/conferences/admin/unpublish_conference.rb
|
150
144
|
- app/commands/decidim/conferences/admin/unpublish_registration_type.rb
|
151
145
|
- app/commands/decidim/conferences/admin/update_conference.rb
|
152
|
-
- app/commands/decidim/conferences/admin/update_conference_admin.rb
|
153
146
|
- app/commands/decidim/conferences/admin/update_conference_speaker.rb
|
154
147
|
- app/commands/decidim/conferences/admin/update_diploma.rb
|
155
148
|
- app/commands/decidim/conferences/admin/update_media_link.rb
|
@@ -190,7 +183,6 @@ files:
|
|
190
183
|
- app/controllers/decidim/conferences/conference_program_controller.rb
|
191
184
|
- app/controllers/decidim/conferences/conference_registrations_controller.rb
|
192
185
|
- app/controllers/decidim/conferences/conference_speakers_controller.rb
|
193
|
-
- app/controllers/decidim/conferences/conference_widgets_controller.rb
|
194
186
|
- app/controllers/decidim/conferences/conferences_controller.rb
|
195
187
|
- app/controllers/decidim/conferences/media_controller.rb
|
196
188
|
- app/controllers/decidim/conferences/registration_types_controller.rb
|
@@ -230,11 +222,17 @@ files:
|
|
230
222
|
- app/models/decidim/conferences/media_link.rb
|
231
223
|
- app/models/decidim/conferences/partner.rb
|
232
224
|
- app/models/decidim/conferences/registration_type.rb
|
225
|
+
- app/packs/entrypoints/decidim_conferences.js
|
233
226
|
- app/packs/entrypoints/decidim_conferences_admin.js
|
234
227
|
- app/packs/images/decidim/conferences/decidim_conferences.svg
|
235
228
|
- app/packs/src/decidim/conferences/admin/conference_invite_form.js
|
236
229
|
- app/packs/src/decidim/conferences/admin/conference_speakers.js
|
237
230
|
- app/packs/src/decidim/conferences/admin/conferences.js
|
231
|
+
- app/packs/stylesheets/decidim/conferences/_conference.scss
|
232
|
+
- app/packs/stylesheets/decidim/conferences/_media.scss
|
233
|
+
- app/packs/stylesheets/decidim/conferences/_program.scss
|
234
|
+
- app/packs/stylesheets/decidim/conferences/_registration.scss
|
235
|
+
- app/packs/stylesheets/decidim/conferences/_speaker.scss
|
238
236
|
- app/packs/stylesheets/decidim/conferences/conferences.scss
|
239
237
|
- app/permissions/decidim/conferences/permissions.rb
|
240
238
|
- app/presenters/decidim/admin/conference_speaker_presenter.rb
|
@@ -253,7 +251,6 @@ files:
|
|
253
251
|
- app/presenters/decidim/conferences/conference_stats_presenter.rb
|
254
252
|
- app/presenters/decidim/log/value_types/conference_presenter.rb
|
255
253
|
- app/queries/decidim/conferences/admin/admin_users.rb
|
256
|
-
- app/queries/decidim/conferences/admin/conference_invites.rb
|
257
254
|
- app/queries/decidim/conferences/admin/conference_speakers.rb
|
258
255
|
- app/queries/decidim/conferences/conference_program_meetings.rb
|
259
256
|
- app/queries/decidim/conferences/conference_program_meetings_by_day.rb
|
@@ -274,7 +271,6 @@ files:
|
|
274
271
|
- app/uploaders/decidim/cw/conferences/partner_logo_uploader.rb
|
275
272
|
- app/views/decidim/conference_speakers/_conference_speaker.html.erb
|
276
273
|
- app/views/decidim/conferences/_conference.html.erb
|
277
|
-
- app/views/decidim/conferences/_order_by_conferences.html.erb
|
278
274
|
- app/views/decidim/conferences/admin/conference_copies/_form.html.erb
|
279
275
|
- app/views/decidim/conferences/admin/conference_copies/new.html.erb
|
280
276
|
- app/views/decidim/conferences/admin/conference_invites/_form.html.erb
|
@@ -316,21 +312,19 @@ files:
|
|
316
312
|
- app/views/decidim/conferences/conference_registration_mailer/confirmation.html.erb
|
317
313
|
- app/views/decidim/conferences/conference_registration_mailer/pending_validation.html.erb
|
318
314
|
- app/views/decidim/conferences/conference_speakers/index.html.erb
|
315
|
+
- app/views/decidim/conferences/conferences/_conference_hero.html.erb
|
319
316
|
- app/views/decidim/conferences/conferences/_partners.html.erb
|
320
|
-
- app/views/decidim/conferences/conferences/_promoted_conference.html.erb
|
321
317
|
- app/views/decidim/conferences/conferences/index.html.erb
|
322
318
|
- app/views/decidim/conferences/conferences/show.html.erb
|
323
|
-
- app/views/decidim/conferences/media/_attachments.html.erb
|
324
319
|
- app/views/decidim/conferences/media/index.html.erb
|
325
320
|
- app/views/decidim/conferences/registration_types/index.html.erb
|
326
|
-
- app/views/decidim/conferences/shared/_conference_user_login.html.erb
|
327
321
|
- app/views/devise/mailer/join_conference.html.erb
|
328
322
|
- app/views/devise/mailer/join_conference.text.erb
|
329
|
-
- app/views/layouts/decidim/_conference_hero.html.erb
|
330
|
-
- app/views/layouts/decidim/_conferences_nav.html.erb
|
331
323
|
- app/views/layouts/decidim/admin/conference.html.erb
|
332
324
|
- app/views/layouts/decidim/admin/conferences.html.erb
|
333
325
|
- app/views/layouts/decidim/conference.html.erb
|
326
|
+
- app/views/layouts/decidim/conferences/_conference_nav_item.html.erb
|
327
|
+
- app/views/layouts/decidim/conferences/application.html.erb
|
334
328
|
- app/views/layouts/decidim/diploma.html.erb
|
335
329
|
- config/assets.rb
|
336
330
|
- config/initializers/wicked_pdf.rb
|
@@ -366,7 +360,6 @@ files:
|
|
366
360
|
- config/locales/ga-IE.yml
|
367
361
|
- config/locales/gl.yml
|
368
362
|
- config/locales/gn-PY.yml
|
369
|
-
- config/locales/he-IL.yml
|
370
363
|
- config/locales/hr-HR.yml
|
371
364
|
- config/locales/hr.yml
|
372
365
|
- config/locales/hu.yml
|
@@ -432,12 +425,7 @@ files:
|
|
432
425
|
- db/migrate/20200320105915_index_foreign_keys_in_decidim_conferences_conference_registrations.rb
|
433
426
|
- db/migrate/20210310134942_add_followable_counter_cache_to_conferences.rb
|
434
427
|
- db/migrate/20210408204953_allow_null_logo_column_in_decidim_conferences_partners_table.rb
|
435
|
-
- db/
|
436
|
-
- db/seeds/city.jpeg
|
437
|
-
- db/seeds/city2.jpeg
|
438
|
-
- db/seeds/homepage_image.jpg
|
439
|
-
- db/seeds/logo.png
|
440
|
-
- decidim-conferences.gemspec
|
428
|
+
- db/migrate/20221116084952_add_weight_to_conferences.rb
|
441
429
|
- lib/decidim/api/conference_media_link_type.rb
|
442
430
|
- lib/decidim/api/conference_partner_type.rb
|
443
431
|
- lib/decidim/api/conference_speaker_type.rb
|
@@ -446,32 +434,40 @@ files:
|
|
446
434
|
- lib/decidim/conferences/admin.rb
|
447
435
|
- lib/decidim/conferences/admin_engine.rb
|
448
436
|
- lib/decidim/conferences/api.rb
|
437
|
+
- lib/decidim/conferences/content_blocks/registry_manager.rb
|
449
438
|
- lib/decidim/conferences/engine.rb
|
439
|
+
- lib/decidim/conferences/menu.rb
|
450
440
|
- lib/decidim/conferences/participatory_space.rb
|
451
441
|
- lib/decidim/conferences/query_extensions.rb
|
442
|
+
- lib/decidim/conferences/seeds.rb
|
452
443
|
- lib/decidim/conferences/test/factories.rb
|
453
444
|
- lib/decidim/conferences/version.rb
|
454
|
-
homepage: https://
|
445
|
+
homepage: https://decidim.org
|
455
446
|
licenses:
|
456
447
|
- AGPL-3.0
|
457
|
-
metadata:
|
458
|
-
|
448
|
+
metadata:
|
449
|
+
bug_tracker_uri: https://github.com/decidim/decidim/issues
|
450
|
+
documentation_uri: https://docs.decidim.org/
|
451
|
+
funding_uri: https://opencollective.com/decidim
|
452
|
+
homepage_uri: https://decidim.org
|
453
|
+
source_code_uri: https://github.com/decidim/decidim
|
454
|
+
post_install_message:
|
459
455
|
rdoc_options: []
|
460
456
|
require_paths:
|
461
457
|
- lib
|
462
458
|
required_ruby_version: !ruby/object:Gem::Requirement
|
463
459
|
requirements:
|
464
|
-
- - "
|
460
|
+
- - ">="
|
465
461
|
- !ruby/object:Gem::Version
|
466
|
-
version: 3.
|
462
|
+
version: '3.1'
|
467
463
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
468
464
|
requirements:
|
469
|
-
- - "
|
465
|
+
- - ">"
|
470
466
|
- !ruby/object:Gem::Version
|
471
|
-
version:
|
467
|
+
version: 1.3.1
|
472
468
|
requirements: []
|
473
|
-
rubygems_version: 3.
|
474
|
-
signing_key:
|
469
|
+
rubygems_version: 3.4.20
|
470
|
+
signing_key:
|
475
471
|
specification_version: 4
|
476
472
|
summary: Decidim conferences module
|
477
473
|
test_files: []
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<div class="mb-s">
|
2
|
-
<% if model.respond_to? :location %>
|
3
|
-
<div>
|
4
|
-
<strong><%= decidim_escape_translated model.location %></strong><br>
|
5
|
-
</div>
|
6
|
-
<% end %>
|
7
|
-
<div class="text-medium"><%= model.address %></div>
|
8
|
-
<% if model.respond_to? :location_hints %>
|
9
|
-
<div class="text-medium"><%= decidim_escape_translated model.location_hints %></div>
|
10
|
-
<% end %>
|
11
|
-
</div>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render_hook :upcoming_meeting_for_card %>
|
@@ -1,38 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Conferences
|
5
|
-
# This cell renders the Medium (:m) conference card
|
6
|
-
# for an given instance of an Conference
|
7
|
-
class ConferenceMCell < Decidim::CardMCell
|
8
|
-
include Decidim::ViewHooksHelper
|
9
|
-
|
10
|
-
# Needed for the view hooks
|
11
|
-
def current_participatory_space
|
12
|
-
model
|
13
|
-
end
|
14
|
-
|
15
|
-
private
|
16
|
-
|
17
|
-
def has_image?
|
18
|
-
true
|
19
|
-
end
|
20
|
-
|
21
|
-
def resource_path
|
22
|
-
Decidim::Conferences::Engine.routes.url_helpers.conference_path(model)
|
23
|
-
end
|
24
|
-
|
25
|
-
def resource_image_path
|
26
|
-
model.attached_uploader(:hero_image).path
|
27
|
-
end
|
28
|
-
|
29
|
-
def statuses
|
30
|
-
[:creation_date, :follow]
|
31
|
-
end
|
32
|
-
|
33
|
-
def resource_icon
|
34
|
-
icon "conferences", class: "icon--big"
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|