decidim-conferences 0.27.10 → 0.28.0.rc4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 -612
- data/config/locales/ca.yml +35 -55
- data/config/locales/cs.yml +35 -53
- data/config/locales/de.yml +34 -54
- 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 -81
- 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 +22 -77
- 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 +47 -51
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39eb9292b9b27b71602e8d5281d48e4a9a2c1c3e969ad7e27f91e16210d8a708
|
4
|
+
data.tar.gz: 86dc3e8e81fe333a9a1d5b56fc46c5e933237adbd543ffb7316cb0b70b5b8f23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ba0a6a1a565e3965ac49992f8ea45a45a1bb36f26012549d210e5d0ae8827485faadbab5d4b1fefaab853b71d979f59bf034697b07e2e6710eac73019508912
|
7
|
+
data.tar.gz: 3d27d221c937ef92b004e0d2d947355cf984941d4c491a4f40278dc41a2f1cee3d83c4eb6e694d228fe7bd3876951cbeaa648cf602c063a5a7c520e188de5917
|
@@ -2,17 +2,22 @@
|
|
2
2
|
|
3
3
|
module Decidim
|
4
4
|
module Conferences
|
5
|
-
# This cell renders the conference card for an instance of
|
6
|
-
# the default size is the
|
5
|
+
# This cell renders the conference card for an instance of a Conference
|
6
|
+
# the default size is the Grid Card (:g)
|
7
7
|
class ConferenceCell < Decidim::ViewModel
|
8
8
|
def show
|
9
|
-
cell card_size, model
|
9
|
+
cell card_size, model, options
|
10
10
|
end
|
11
11
|
|
12
12
|
private
|
13
13
|
|
14
14
|
def card_size
|
15
|
-
|
15
|
+
case @options[:size]
|
16
|
+
when :s
|
17
|
+
"decidim/conferences/conference_s"
|
18
|
+
else
|
19
|
+
"decidim/conferences/conference_g"
|
20
|
+
end
|
16
21
|
end
|
17
22
|
end
|
18
23
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Conferences
|
5
|
+
class ConferenceDropdownMetadataCell < Decidim::ParticipatorySpaceDropdownMetadataCell
|
6
|
+
include ConferenceHelper
|
7
|
+
include Decidim::ComponentPathHelper
|
8
|
+
include ActiveLinkTo
|
9
|
+
|
10
|
+
def decidim_conferences
|
11
|
+
Decidim::Conferences::Engine.routes.url_helpers
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
def nav_items_method = :conference_nav_items
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Conferences
|
5
|
+
# This cell renders the Grid (:g) conference card
|
6
|
+
# for a given instance of a Conference
|
7
|
+
class ConferenceGCell < Decidim::CardGCell
|
8
|
+
private
|
9
|
+
|
10
|
+
def resource_path
|
11
|
+
Decidim::Conferences::Engine.routes.url_helpers.conference_path(model)
|
12
|
+
end
|
13
|
+
|
14
|
+
def resource_image_path
|
15
|
+
model.attached_uploader(:hero_image).path
|
16
|
+
end
|
17
|
+
|
18
|
+
def metadata_cell
|
19
|
+
"decidim/conferences/conference_metadata"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "cell/partial"
|
4
|
+
|
5
|
+
module Decidim
|
6
|
+
module Conferences
|
7
|
+
class ConferenceMetadataCell < Decidim::CardMetadataCell
|
8
|
+
def items
|
9
|
+
[dates_item].compact
|
10
|
+
end
|
11
|
+
|
12
|
+
def start_date
|
13
|
+
model.start_date.to_time
|
14
|
+
end
|
15
|
+
|
16
|
+
def end_date
|
17
|
+
model.end_date.to_time
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Conferences
|
5
|
+
# This cell renders the Search (:s) conference card
|
6
|
+
# for a given instance of a Conference
|
7
|
+
class ConferenceSCell < Decidim::CardSCell
|
8
|
+
def metadata_cell
|
9
|
+
"decidim/conferences/conference_metadata"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -1,87 +1,73 @@
|
|
1
|
-
<
|
2
|
-
<div class="
|
3
|
-
|
4
|
-
<%= image_tag avatar_path, alt: "speaker-image" %>
|
5
|
-
</div>
|
1
|
+
<button class="conference__speaker__item" data-conference-speaker data-dialog-open="<%= model.id %>">
|
2
|
+
<div class="conference__speaker__item-image">
|
3
|
+
<%= image_tag avatar_path, alt: nickname || "" %>
|
6
4
|
</div>
|
7
|
-
<div
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<div class="data-extra">
|
16
|
-
<%= affiliation %>
|
17
|
-
</div>
|
18
|
-
<% end %>
|
19
|
-
<div class="data-extra">
|
20
|
-
<% if nickname.present? %>
|
21
|
-
<%= link_to nickname, profile_path, class: "card-link" %>
|
22
|
-
<% else %>
|
23
|
-
<div class="author__nickname"> </div>
|
5
|
+
<div>
|
6
|
+
<h2 class="h5 conference__speaker__item-name"><%= name %></h2>
|
7
|
+
<div class="conference__speaker__item-text">
|
8
|
+
<% if position.presence %>
|
9
|
+
<span><%= position %></span>
|
10
|
+
<% end %>
|
11
|
+
<% if affiliation.presence %>
|
12
|
+
<span><%= affiliation %></span>
|
24
13
|
<% end %>
|
25
|
-
<div><u><%= t(".more_info") %></u></div>
|
26
14
|
</div>
|
27
15
|
</div>
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
16
|
+
</button>
|
17
|
+
|
18
|
+
<%= decidim_modal id: model.id, class: "conference__speaker__modal" do %>
|
19
|
+
<h3 class="conference__speaker__modal-title">
|
20
|
+
<%= icon "user-voice-line", class: "w-6 h-6 text-gray fill-current" %>
|
21
|
+
<span><%= t("decidim.conferences.conference_speakers.index.speakers", count: 1) %></span>
|
22
|
+
</h3>
|
23
|
+
<div class="conference__speaker__modal-bio-container">
|
24
|
+
<div class="conference__speaker__modal-img">
|
25
|
+
<%= image_tag avatar_path, alt: "speaker-image" %>
|
26
|
+
</div>
|
27
|
+
<div class="conference__speaker__modal-bio">
|
28
|
+
<div>
|
29
|
+
<h4 class="conference__speaker__modal-bio-name" id="dialog-title-<%= model.id %>"><%= name %></h4>
|
30
|
+
<div class="conference__speaker__modal-bio-roles">
|
38
31
|
<% if position.presence %>
|
39
|
-
<
|
32
|
+
<span><%= position %></span>
|
40
33
|
<% end %>
|
41
34
|
<% if affiliation.presence %>
|
42
|
-
<
|
43
|
-
|
44
|
-
|
35
|
+
<span><%= affiliation %></span>
|
36
|
+
<% end %>
|
37
|
+
</div>
|
38
|
+
<div class="conference__speaker__modal-bio-networks">
|
39
|
+
<% if nickname.present? %>
|
40
|
+
<%= link_to nickname, profile_path, class: "card-link" %>
|
45
41
|
<% end %>
|
46
|
-
<div class="data-extra">
|
47
|
-
<% if nickname.present? %>
|
48
|
-
<%= link_to nickname, profile_path, class: "card-link" %>
|
49
|
-
<% else %>
|
50
|
-
<div class="author__nickname"> </div>
|
51
|
-
<% end %>
|
52
|
-
<div><u><%= t(".more_info") %></u></div>
|
53
|
-
</div>
|
54
42
|
<% if personal_url.presence %>
|
55
43
|
<div>
|
44
|
+
<%= icon "link", class: "w-3.5 h-3.5 text-gray fill-current" %>
|
56
45
|
<%= personal_url %>
|
57
46
|
</div>
|
58
47
|
<% end %>
|
59
48
|
<% if twitter_handle.presence %>
|
60
49
|
<div>
|
50
|
+
<%= icon "twitter-x-line", class: "w-3.5 h-3.5 text-gray fill-current" %>
|
61
51
|
<%= twitter_handle %>
|
62
52
|
</div>
|
63
53
|
<% end %>
|
64
54
|
</div>
|
65
55
|
</div>
|
66
56
|
<% if short_bio.presence %>
|
67
|
-
<div class="
|
57
|
+
<div class="conference__speaker__modal-bio-description" id="dialog-desc-<%= model.id %>">
|
68
58
|
<%= short_bio %>
|
69
59
|
</div>
|
70
60
|
<% end %>
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
<div class="column medium-12">
|
76
|
-
<div class="bio-acts"><%= t("conferences.conference_speaker.show.speaking_at", scope: "decidim") %></div>
|
77
|
-
|
78
|
-
<ul class="list-reset">
|
61
|
+
<% if meetings.present? %>
|
62
|
+
<div>
|
63
|
+
<div class="conference__speaker__modal-bio-meetings-title"><%= t("conferences.conference_speaker.show.speaking_at", scope: "decidim") %></div>
|
64
|
+
<ul class="conference__speaker__modal-bio-meetings">
|
79
65
|
<% meetings.each do |meeting| %>
|
80
|
-
<%= meeting_title meeting %>
|
66
|
+
<%= meeting_title meeting %>
|
81
67
|
<% end %>
|
82
68
|
</ul>
|
83
69
|
</div>
|
84
|
-
|
85
|
-
|
70
|
+
<% end %>
|
71
|
+
</div>
|
86
72
|
</div>
|
87
|
-
|
73
|
+
<% end %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Decidim
|
4
4
|
module Conferences
|
5
|
-
# This cell renders the card for an instance of
|
5
|
+
# This cell renders the card for an instance of a Conference Speaker
|
6
6
|
class ConferenceSpeakerCell < Decidim::AuthorCell
|
7
7
|
include Decidim::Meetings::MeetingCellsHelper
|
8
8
|
include Cell::ViewModel::Partial
|
@@ -12,17 +12,7 @@ module Decidim
|
|
12
12
|
property :profile_path
|
13
13
|
|
14
14
|
def show
|
15
|
-
render
|
16
|
-
end
|
17
|
-
|
18
|
-
def speakers_list
|
19
|
-
cell(
|
20
|
-
"decidim/collapsible_list",
|
21
|
-
presenters_for_speakers(list),
|
22
|
-
cell_name: "decidim/author",
|
23
|
-
cell_options: options.merge(has_actions: false),
|
24
|
-
size: size
|
25
|
-
)
|
15
|
+
render :show
|
26
16
|
end
|
27
17
|
|
28
18
|
private
|
@@ -60,13 +50,13 @@ module Decidim
|
|
60
50
|
def short_bio
|
61
51
|
return unless model.short_bio.presence
|
62
52
|
|
63
|
-
|
53
|
+
translated_attribute model.short_bio
|
64
54
|
end
|
65
55
|
|
66
56
|
def twitter_handle
|
67
57
|
return unless model.twitter_handle.presence
|
68
58
|
|
69
|
-
link_to
|
59
|
+
link_to "@#{model.twitter_handle}", "https://twitter.com/#{model.twitter_handle}", target: "_blank", rel: "noopener"
|
70
60
|
end
|
71
61
|
|
72
62
|
def personal_url
|
@@ -3,32 +3,33 @@
|
|
3
3
|
module Decidim
|
4
4
|
module Conferences
|
5
5
|
module ContentBlocks
|
6
|
-
class HighlightedConferencesCell < Decidim::
|
6
|
+
class HighlightedConferencesCell < Decidim::ContentBlocks::HighlightedParticipatorySpacesCell
|
7
7
|
delegate :current_user, to: :controller
|
8
8
|
|
9
|
-
def
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
9
|
+
def highlighted_spaces
|
10
|
+
@highlighted_spaces ||= OrganizationPrioritizedConferences
|
11
|
+
.new(current_organization, current_user)
|
12
|
+
.query
|
13
|
+
.with_attached_hero_image
|
14
|
+
.includes([:organization])
|
15
15
|
end
|
16
16
|
|
17
17
|
def i18n_scope
|
18
18
|
"decidim.conferences.pages.home.highlighted_conferences"
|
19
19
|
end
|
20
20
|
|
21
|
-
def
|
22
|
-
Decidim::Conferences::Engine.routes.url_helpers
|
21
|
+
def all_path
|
22
|
+
Decidim::Conferences::Engine.routes.url_helpers.conferences_path
|
23
|
+
end
|
24
|
+
|
25
|
+
def max_results
|
26
|
+
model.settings.max_results
|
23
27
|
end
|
24
28
|
|
25
29
|
private
|
26
30
|
|
27
|
-
def
|
28
|
-
|
29
|
-
hash.push(I18n.locale)
|
30
|
-
hash.push(highlighted_conferences.map(&:cache_key_with_version))
|
31
|
-
hash.join(Decidim.cache_key_separator)
|
31
|
+
def block_id
|
32
|
+
"highlighted-conferences"
|
32
33
|
end
|
33
34
|
end
|
34
35
|
end
|
data/app/cells/decidim/conferences/content_blocks/highlighted_conferences_settings_form_cell.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Conferences
|
5
|
+
module ContentBlocks
|
6
|
+
class HighlightedConferencesSettingsFormCell < Decidim::ViewModel
|
7
|
+
alias form model
|
8
|
+
|
9
|
+
def content_block
|
10
|
+
options[:content_block]
|
11
|
+
end
|
12
|
+
|
13
|
+
def label
|
14
|
+
I18n.t("decidim.conferences.admin.content_blocks.highlighted_conferences.max_results")
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -1,10 +1,8 @@
|
|
1
1
|
<% conference_spaces.each do |block_space| %>
|
2
|
-
<
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
</div>
|
9
|
-
</div>
|
2
|
+
<section class="content-block">
|
3
|
+
<h2 class="h2 decorator"><%= t("conferences.show.related_#{title(block_space)}", scope: "decidim") %></h2>
|
4
|
+
<% block_space.each do |space| %>
|
5
|
+
<%= card_for space %>
|
6
|
+
<% end %>
|
7
|
+
</section>
|
10
8
|
<% end %>
|
@@ -15,7 +15,7 @@ module Decidim
|
|
15
15
|
private
|
16
16
|
|
17
17
|
def conference_spaces
|
18
|
-
[conference_participatory_processes, conference_assemblies
|
18
|
+
[conference_participatory_processes, conference_assemblies].compact
|
19
19
|
end
|
20
20
|
|
21
21
|
def conference_participatory_processes
|
@@ -36,15 +36,6 @@ module Decidim
|
|
36
36
|
assemblies
|
37
37
|
end
|
38
38
|
|
39
|
-
def conference_consultations
|
40
|
-
return unless Decidim.participatory_space_manifests.map(&:name).include?(:consultations)
|
41
|
-
|
42
|
-
consultations = model.linked_participatory_space_resources(:consultations, "included_consultations")
|
43
|
-
return unless consultations.any?
|
44
|
-
|
45
|
-
consultations
|
46
|
-
end
|
47
|
-
|
48
39
|
def title(block_space)
|
49
40
|
block_space.first.class.name.demodulize.tableize
|
50
41
|
end
|
@@ -1,9 +1,7 @@
|
|
1
|
-
<
|
2
|
-
<%=
|
3
|
-
<div>
|
4
|
-
|
5
|
-
|
6
|
-
<% end %>
|
7
|
-
<div class="text-small"><%= l(model.date, format: :decidim_short_with_month_name_short) %> · <%= model.link %></div>
|
1
|
+
<div class="card__list-content">
|
2
|
+
<%= link_to decidim_html_escape(translated_attribute(model.title)), model.link, rel: "noopener noreferrer", target: "_blank", class: "card__list-title" %>
|
3
|
+
<div class="card__list-metadata">
|
4
|
+
<span><%= icon "calendar-line" %><%= l(model.date, format: :decidim_short_with_month_name_short) %></span>
|
5
|
+
<span><%= icon "link-m" %><%= model.link %></span>
|
8
6
|
</div>
|
9
|
-
</
|
7
|
+
</div>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<% if model.link.
|
2
|
-
<%= link_to model.link, class: "
|
3
|
-
<%=
|
4
|
-
<%=
|
1
|
+
<% if model.link.present? %>
|
2
|
+
<%= link_to model.link, target: "_blank", class: "conference__grid-item", data: { "external-link": "false" } do %>
|
3
|
+
<%= render :image %>
|
4
|
+
<%= render :text %>
|
5
5
|
<% end %>
|
6
6
|
<% else %>
|
7
|
-
|
8
|
-
<%=
|
9
|
-
<%=
|
10
|
-
|
7
|
+
<%= content_tag :div, nil, class: "conference__grid-item" do %>
|
8
|
+
<%= render :image %>
|
9
|
+
<%= render :text %>
|
10
|
+
<% end %>
|
11
11
|
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<h3 class="h5 conference__grid-item-text"><%= model.name %></h3>
|
@@ -10,16 +10,18 @@ module Decidim
|
|
10
10
|
|
11
11
|
private
|
12
12
|
|
13
|
+
# deprecated
|
13
14
|
def name
|
14
15
|
return unless model.name.presence
|
15
16
|
|
16
|
-
"<div
|
17
|
+
"<div> #{model.name} </div>"
|
17
18
|
end
|
18
19
|
|
20
|
+
# deprecated
|
19
21
|
def logo
|
20
22
|
return unless model.logo.attached?
|
21
23
|
|
22
|
-
"<div class='card p-m
|
24
|
+
"<div class='card p-m'> #{image_tag model.attached_uploader(:logo).path(variant: :medium), alt: "logo"} </div>"
|
23
25
|
end
|
24
26
|
end
|
25
27
|
end
|
@@ -2,23 +2,26 @@
|
|
2
2
|
<% if conference.has_registration_for_user_and_registration_type?(current_user, model) %>
|
3
3
|
<% if allowed? %>
|
4
4
|
<%= button_to conference_registration_type_conference_registration_path(conference, model),
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<%= icon
|
10
|
-
<%= t("going", scope: "decidim.conferences.conference.show") %>
|
5
|
+
method: :delete,
|
6
|
+
class: "#{button_classes} bg-success text-white border-transparent conference__registration-button",
|
7
|
+
data: { disable: true } do %>
|
8
|
+
<span><%= t("going", scope: "decidim.conferences.conference.show") %></span>
|
9
|
+
<%= icon "checkbox-circle-line", class: "w-3.5 h-3.5 fill-current flex-none" %>
|
11
10
|
<% end %>
|
12
11
|
<% end %>
|
13
12
|
<% else %>
|
14
|
-
<%= render :registration_confirm %>
|
15
13
|
<% if allowed? %>
|
16
|
-
<%=
|
17
|
-
|
14
|
+
<%= button_tag(
|
15
|
+
type: "button",
|
16
|
+
class: "#{button_classes} conference__registration-button",
|
18
17
|
disabled: !conference.has_available_slots? || conference.has_registration_for?(current_user),
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
data: { dialog_open: current_user.present? ? "conference-registration-confirm-#{model.id}" : "loginModal" }
|
19
|
+
) do %>
|
20
|
+
<span><%= i18n_join_text %></span>
|
21
|
+
<%= icon "ticket-line", class: "w-3.5 h-3.5 fill-current flex-none" %>
|
22
|
+
<% end %>
|
23
|
+
|
24
|
+
<%= render :registration_confirm %>
|
22
25
|
<% end %>
|
23
26
|
<% end %>
|
24
27
|
<% end %>
|
@@ -1,15 +1,15 @@
|
|
1
|
-
|
2
|
-
<div class="
|
3
|
-
|
4
|
-
|
5
|
-
</div>
|
1
|
+
<%= decidim_modal id: "conference-registration-confirm-#{model.id}", class: "conference__registration-modal" do %>
|
2
|
+
<div class="flex items-center gap-2">
|
3
|
+
<%= icon "ticket-line", class: "w-6 h-6 text-gray fill-current flex-none" %>
|
4
|
+
<div class="font-semibold text-black text-2xl" id="dialog-title-conference-registration-confirm-<%= model.id %>"><%= I18n.t("registration", scope: "decidim.conferences.conference.show") %></div>
|
6
5
|
</div>
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
</div>
|
6
|
+
|
7
|
+
<div id="dialog-desc-conference-registration-confirm-<%= model.id %>" class="text-gray-2 text-xl mt-9">
|
8
|
+
<%= decidim_sanitize_editor translated_attribute(conference.registration_terms) %>
|
11
9
|
</div>
|
12
|
-
|
13
|
-
|
10
|
+
|
11
|
+
<div class="flex justify-between mt-16">
|
12
|
+
<button class="button button__lg button__transparent-secondary" data-dialog-close="<%= model.id %>"><%= t("cancel", scope: "decidim.conferences.conference.registration_confirm") %></button>
|
13
|
+
<%= button_to t("confirm", scope: "decidim.conferences.conference.registration_confirm"), conference_registration_type_conference_registration_path(conference, model), class: "button button__lg button__secondary" %>
|
14
14
|
</div>
|
15
|
-
|
15
|
+
<% end %>
|
@@ -1,16 +1,13 @@
|
|
1
|
-
<div
|
2
|
-
<div class="
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<%= render :join_conference %>
|
13
|
-
</div>
|
14
|
-
</div>
|
1
|
+
<div id="registration-type-<%= model.id %>" class="conference__registration" data-conference-registration>
|
2
|
+
<div class="conference__registration-text">
|
3
|
+
<h2 class="h5 text-secondary"><%= title %></h2>
|
4
|
+
<span>
|
5
|
+
<%= icon "information-line", class: "text-gray fill-current" %>
|
6
|
+
<span class="truncate" title="<%= description %>"><%= description %></span>
|
7
|
+
</span>
|
8
|
+
</div>
|
9
|
+
<div class="conference__registration-button-container">
|
10
|
+
<span><%= price %></span>
|
11
|
+
<%= render :join_conference %>
|
15
12
|
</div>
|
16
13
|
</div>
|
@@ -22,11 +22,11 @@ module Decidim
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def description
|
25
|
-
|
25
|
+
strip_tags translated_attribute model.description
|
26
26
|
end
|
27
27
|
|
28
28
|
def price
|
29
|
-
return
|
29
|
+
return if model.price.blank? || model.price.zero?
|
30
30
|
|
31
31
|
number_to_currency(model.price, locale: I18n.locale, unit: Decidim.currency_unit)
|
32
32
|
end
|
@@ -36,7 +36,7 @@ module Decidim
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def button_classes
|
39
|
-
"button
|
39
|
+
"button button__sm button__transparent-secondary"
|
40
40
|
end
|
41
41
|
|
42
42
|
def conference
|
@@ -18,7 +18,7 @@ module Decidim
|
|
18
18
|
# Executes the command. Broadcasts these events:
|
19
19
|
#
|
20
20
|
# - :ok when everything is valid.
|
21
|
-
# - :invalid if the form
|
21
|
+
# - :invalid if the form was not valid and we could not proceed.
|
22
22
|
#
|
23
23
|
# Returns nothing.
|
24
24
|
def call
|