decidim-conferences 0.27.4 → 0.28.0.rc5
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 +3 -13
- 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 +10 -3
- data/app/events/decidim/conferences/conference_registration_notification_event.rb +3 -3
- 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 -2
- 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/environment.rb +3 -0
- data/config/initializers/wicked_pdf.rb +1 -1
- data/config/locales/ar.yml +1 -68
- data/config/locales/bg.yml +0 -1
- data/config/locales/ca.yml +35 -55
- data/config/locales/cs.yml +40 -58
- data/config/locales/de.yml +37 -57
- data/config/locales/el.yml +11 -57
- data/config/locales/en.yml +36 -56
- data/config/locales/es-MX.yml +34 -54
- data/config/locales/es-PY.yml +34 -54
- data/config/locales/es.yml +33 -53
- data/config/locales/eu.yml +179 -198
- data/config/locales/fi-plain.yml +33 -53
- data/config/locales/fi.yml +39 -59
- data/config/locales/fr-CA.yml +33 -53
- data/config/locales/fr.yml +34 -54
- data/config/locales/ga-IE.yml +0 -17
- data/config/locales/gl.yml +1 -68
- data/config/locales/hu.yml +15 -57
- data/config/locales/id-ID.yml +1 -62
- data/config/locales/it.yml +2 -68
- data/config/locales/ja.yml +34 -55
- data/config/locales/lb.yml +1 -59
- data/config/locales/lt.yml +21 -54
- data/config/locales/lv.yml +1 -65
- data/config/locales/nl.yml +1 -68
- data/config/locales/no.yml +1 -68
- data/config/locales/pl.yml +1 -66
- data/config/locales/pt-BR.yml +1 -68
- data/config/locales/pt.yml +1 -68
- data/config/locales/ro-RO.yml +11 -56
- data/config/locales/sk.yml +1 -65
- data/config/locales/sl.yml +0 -3
- data/config/locales/sq-AL.yml +1 -0
- data/config/locales/sr-CS.yml +0 -5
- data/config/locales/sv.yml +7 -67
- data/config/locales/th-TH.yml +1 -0
- data/config/locales/tr-TR.yml +12 -66
- data/config/locales/zh-CN.yml +1 -65
- data/config/locales/zh-TW.yml +6 -53
- data/db/migrate/20221116084952_add_weight_to_conferences.rb +7 -0
- data/lib/decidim/api/conference_speaker_type.rb +1 -1
- 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 +10 -9
- data/lib/decidim/conferences/version.rb +1 -1
- metadata +46 -46
- 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 -42
- 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 -23
- 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/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
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Conferences
|
5
|
-
module Admin
|
6
|
-
# A command to notify users when a role is assigned for a Conference
|
7
|
-
class NotifyRoleAssignedToConference < Decidim::Command
|
8
|
-
def send_notification(user)
|
9
|
-
Decidim::EventsManager.publish(
|
10
|
-
event: "decidim.events.conferences.role_assigned",
|
11
|
-
event_class: Decidim::Conferences::ConferenceRoleAssignedEvent,
|
12
|
-
resource: form.current_participatory_space,
|
13
|
-
affected_users: [user],
|
14
|
-
extra: {
|
15
|
-
role: form.role
|
16
|
-
}
|
17
|
-
)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,39 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Conferences
|
5
|
-
module Admin
|
6
|
-
# A command that sets an conference as unpublished.
|
7
|
-
class UnpublishConference < Decidim::Command
|
8
|
-
# Public: Initializes the command.
|
9
|
-
#
|
10
|
-
# conference - A Conference that will be published
|
11
|
-
# current_user - the user performing the action
|
12
|
-
def initialize(conference, current_user)
|
13
|
-
@conference = conference
|
14
|
-
@current_user = current_user
|
15
|
-
end
|
16
|
-
|
17
|
-
# Executes the command. Broadcasts these events:
|
18
|
-
#
|
19
|
-
# - :ok when everything is valid.
|
20
|
-
# - :invalid if the data wasn't valid and we couldn't proceed.
|
21
|
-
#
|
22
|
-
# Returns nothing.
|
23
|
-
def call
|
24
|
-
return broadcast(:invalid) if conference.nil? || !conference.published?
|
25
|
-
|
26
|
-
Decidim.traceability.perform_action!("unpublish", conference, current_user) do
|
27
|
-
conference.unpublish!
|
28
|
-
end
|
29
|
-
|
30
|
-
broadcast(:ok)
|
31
|
-
end
|
32
|
-
|
33
|
-
private
|
34
|
-
|
35
|
-
attr_reader :conference, :current_user
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Conferences
|
5
|
-
module Admin
|
6
|
-
# A command with all the business logic when updated a participatory
|
7
|
-
# process admin in the system.
|
8
|
-
class UpdateConferenceAdmin < NotifyRoleAssignedToConference
|
9
|
-
# Public: Initializes the command.
|
10
|
-
#
|
11
|
-
# form - A form object with the params.
|
12
|
-
# user_role - The ConferenceUSerRole to update
|
13
|
-
def initialize(form, user_role)
|
14
|
-
@form = form
|
15
|
-
@user_role = user_role
|
16
|
-
end
|
17
|
-
|
18
|
-
# Executes the command. Broadcasts these events:
|
19
|
-
#
|
20
|
-
# - :ok when everything is valid.
|
21
|
-
# - :invalid if the form wasn't valid and we couldn't proceed.
|
22
|
-
#
|
23
|
-
# Returns nothing.
|
24
|
-
def call
|
25
|
-
return broadcast(:invalid) if form.invalid?
|
26
|
-
return broadcast(:invalid) unless user_role
|
27
|
-
|
28
|
-
update_role!
|
29
|
-
broadcast(:ok)
|
30
|
-
end
|
31
|
-
|
32
|
-
private
|
33
|
-
|
34
|
-
attr_reader :form, :user_role
|
35
|
-
|
36
|
-
def update_role!
|
37
|
-
log_info = {
|
38
|
-
resource: {
|
39
|
-
title: user_role.user.name
|
40
|
-
}
|
41
|
-
}
|
42
|
-
Decidim.traceability.update!(
|
43
|
-
user_role,
|
44
|
-
form.current_user,
|
45
|
-
{ role: form.role },
|
46
|
-
log_info
|
47
|
-
)
|
48
|
-
send_notification user_role.user
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Conferences
|
5
|
-
class ConferenceWidgetsController < Decidim::WidgetsController
|
6
|
-
helper Decidim::SanitizeHelper
|
7
|
-
|
8
|
-
private
|
9
|
-
|
10
|
-
def model
|
11
|
-
@model ||= Conference.find_by(slug: params[:conference_slug])
|
12
|
-
end
|
13
|
-
|
14
|
-
def current_participatory_space
|
15
|
-
model
|
16
|
-
end
|
17
|
-
|
18
|
-
def iframe_url
|
19
|
-
@iframe_url ||= conference_conference_widget_url(model)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Decidim
|
4
|
-
module Conferences
|
5
|
-
module Admin
|
6
|
-
# A class used to find the ConferenceInvites by their status status.
|
7
|
-
class ConferenceInvites < Decidim::Query
|
8
|
-
# Syntactic sugar to initialize the class and return the queried objects.
|
9
|
-
#
|
10
|
-
# conference_invites - the initial Invites relation that needs to be filtered.
|
11
|
-
# query - query to filter conference_invites
|
12
|
-
# status - invite status to be used as a filter
|
13
|
-
def self.for(conference_invites, query = nil, status = nil)
|
14
|
-
new(conference_invites, query, status).query
|
15
|
-
end
|
16
|
-
|
17
|
-
# Initializes the class.
|
18
|
-
#
|
19
|
-
# conference_invites - the initial Invites relation that need to be filtered
|
20
|
-
# query - query to filter conference_invites
|
21
|
-
# status - invite status to be used as a filter
|
22
|
-
def initialize(conference_invites, query = nil, status = nil)
|
23
|
-
@conference_invites = conference_invites
|
24
|
-
@query = query
|
25
|
-
@status = status
|
26
|
-
end
|
27
|
-
|
28
|
-
# List the conference_invites by the different filters.
|
29
|
-
def query
|
30
|
-
@conference_invites = filter_by_search(@conference_invites)
|
31
|
-
@conference_invites = filter_by_status(@conference_invites)
|
32
|
-
@conference_invites
|
33
|
-
end
|
34
|
-
|
35
|
-
private
|
36
|
-
|
37
|
-
def filter_by_search(conference_invites)
|
38
|
-
return conference_invites if @query.blank?
|
39
|
-
|
40
|
-
conference_invites.joins(:user).where(
|
41
|
-
User.arel_table[:name].lower.matches("%#{@query}%").or(User.arel_table[:email].lower.matches("%#{@query}%"))
|
42
|
-
)
|
43
|
-
end
|
44
|
-
|
45
|
-
def filter_by_status(conference_invites)
|
46
|
-
case @status
|
47
|
-
when "accepted"
|
48
|
-
conference_invites.where.not(accepted_at: nil)
|
49
|
-
when "rejected"
|
50
|
-
conference_invites.where.not(rejected_at: nil)
|
51
|
-
when "sent"
|
52
|
-
conference_invites.where.not(sent_at: nil).where(accepted_at: nil, rejected_at: nil)
|
53
|
-
else
|
54
|
-
conference_invites
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
<div class="card card--full card--process">
|
2
|
-
<div class="row collapse card--process__row">
|
3
|
-
<div class="columns mediumlarge-8 large-6 card--process__column">
|
4
|
-
<div class="card__content">
|
5
|
-
<%= link_to conference_path(promoted_conference), class: "card__link" do %>
|
6
|
-
<h2 class="card__title"><%= translated_attribute promoted_conference.title %></h2>
|
7
|
-
<% end %>
|
8
|
-
<%= decidim_sanitize_editor html_truncate(translated_attribute(promoted_conference.short_description), length: 630, separator: "...") %>
|
9
|
-
<%= link_to conference_path(promoted_conference), class: "button small hollow card__button" do %>
|
10
|
-
<%= t("conferences.promoted_conference.more_info", scope: "layouts.decidim") %>
|
11
|
-
<% end %>
|
12
|
-
</div>
|
13
|
-
</div>
|
14
|
-
<div class="columns mediumlarge-8 large-6 card--process__column">
|
15
|
-
<div class="card--full__image"
|
16
|
-
style="background-image:url('<%= promoted_conference.attached_uploader(:hero_image).path %>')">
|
17
|
-
<div class="card__content row collapse">
|
18
|
-
<div class="large-6 large-offset-6 columns">
|
19
|
-
<%= link_to conference_path(promoted_conference), class: "button expanded button--sc" do %>
|
20
|
-
<%= t(promoted_conference.cta_button_text_key, scope: "layouts.decidim.conferences.promoted_conference") %>
|
21
|
-
<% end %>
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
</div>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<div class="row" data-equalizer>
|
2
|
-
<div class="column medium-6">
|
3
|
-
<div class="card p-m" data-equalizer-watch>
|
4
|
-
<p><%= t(".already_account") %></p>
|
5
|
-
<%= link_to t(".sign_in"), decidim.new_user_session_path, class: "" %>
|
6
|
-
</div>
|
7
|
-
</div>
|
8
|
-
<div class="column medium-6">
|
9
|
-
<div class="card p-m" data-equalizer-watch>
|
10
|
-
<p><%= t(".new_user") %></p>
|
11
|
-
<%= link_to t(".sign_up"), decidim.new_user_registration_path, class: "" %>
|
12
|
-
</div>
|
13
|
-
</div>
|
14
|
-
</div>
|
@@ -1,42 +0,0 @@
|
|
1
|
-
<section class="extended hero"
|
2
|
-
style="background-image:url('<%= current_participatory_space.attached_uploader(:banner_image).path %>');">
|
3
|
-
<div class="hero__container">
|
4
|
-
<div class="row">
|
5
|
-
<div class="columns large-10 text-left">
|
6
|
-
<h1 class="text-highlight hero-heading mb-none">
|
7
|
-
<%= translated_attribute(current_participatory_space.title) %>
|
8
|
-
</h1>
|
9
|
-
<h2 class="text-highlight">
|
10
|
-
<% if current_participatory_space.hashtag.present? %>
|
11
|
-
<span class="process-header__hashtag card__link">
|
12
|
-
<%= link_to "##{current_participatory_space.hashtag}", twitter_hashtag_url(current_participatory_space.hashtag), target: "_blank" %>
|
13
|
-
</span>
|
14
|
-
<% end %>
|
15
|
-
<%= translated_attribute(current_participatory_space.slogan) %>
|
16
|
-
</h2>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
<div class="row">
|
20
|
-
<div class="row column medium-8 text-left mt-m">
|
21
|
-
<div class="column medium-6">
|
22
|
-
<div class="conference--date button hollow light expanded">
|
23
|
-
<%= participatory_space_helpers.render_date(current_participatory_space) %>
|
24
|
-
<%= current_participatory_space.location %>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
<% if current_participatory_space.registrations_enabled? %>
|
28
|
-
<div class="column medium-3 end">
|
29
|
-
<%= link_to t(".register"), decidim_conferences.conference_registration_types_path(current_participatory_space), class:"button button--sc light expanded" %>
|
30
|
-
</div>
|
31
|
-
<% end %>
|
32
|
-
<% current_participatory_space.components.where(manifest_name: "meetings").each do |component_meeting| %>
|
33
|
-
<% if component_meeting.published? || component_meeting == self.try(:current_component) %>
|
34
|
-
<div class="column medium-3 end">
|
35
|
-
<%= link_to translated_attribute(component_meeting.name), decidim_conferences.conference_conference_program_path(current_participatory_space, id: component_meeting.id), class:"button button--sc light hollow expanded" %>
|
36
|
-
</div>
|
37
|
-
<% end %>
|
38
|
-
<% end %>
|
39
|
-
</div>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
</section>
|
@@ -1,46 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
components = current_participatory_space.components.published.where.not(manifest_name: "meetings")
|
3
|
-
meeting_components = current_participatory_space.components.published.where(manifest_name: "meetings")
|
4
|
-
%>
|
5
|
-
|
6
|
-
<%=
|
7
|
-
extended_navigation_bar(([
|
8
|
-
{
|
9
|
-
name: t(".conference_menu_item"),
|
10
|
-
url: decidim_conferences.conference_path(current_participatory_space),
|
11
|
-
active: is_active_link?(decidim_conferences.conference_path(current_participatory_space), :exclusive)
|
12
|
-
},
|
13
|
-
current_participatory_space.speakers.any? ? {
|
14
|
-
name: t(".conference_speaker_menu_item"),
|
15
|
-
url: decidim_conferences.conference_conference_speakers_path(current_participatory_space),
|
16
|
-
active: is_active_link?(decidim_conferences.conference_conference_speakers_path(current_participatory_space), :inclusive)
|
17
|
-
} : nil
|
18
|
-
] + meeting_components.map do |component|
|
19
|
-
Decidim::Meetings::Meeting.visible_for(current_user).any? ? {
|
20
|
-
name: translated_attribute(component.name),
|
21
|
-
url: decidim_conferences.conference_conference_program_path(current_participatory_space, id: component.id),
|
22
|
-
active: is_active_link?(decidim_conferences.conference_conference_program_path(current_participatory_space, id: component.id), :inclusive)
|
23
|
-
} : nil
|
24
|
-
end + [
|
25
|
-
current_participatory_space.partners.any? ? {
|
26
|
-
name: t(".conference_partners_menu_item"),
|
27
|
-
url: decidim_conferences.conference_path(current_participatory_space, anchor: "conference-partners"),
|
28
|
-
} : nil,
|
29
|
-
meeting_components.any? ? {
|
30
|
-
name: t(".venues"),
|
31
|
-
url: decidim_conferences.conference_path(current_participatory_space, anchor: "venues")
|
32
|
-
} : nil,
|
33
|
-
] + components.map do |component|
|
34
|
-
{
|
35
|
-
name: translated_attribute(component.name),
|
36
|
-
url: main_component_path(component),
|
37
|
-
active: is_active_link?(main_component_path(component), :inclusive)
|
38
|
-
}
|
39
|
-
end + [
|
40
|
-
current_participatory_space.attachments.any? || current_participatory_space.media_links.any? ? {
|
41
|
-
name: t(".media"),
|
42
|
-
url: decidim_conferences.conference_media_path(current_participatory_space),
|
43
|
-
active: is_active_link?(decidim_conferences.conference_media_path(current_participatory_space), :inclusive)
|
44
|
-
} : nil
|
45
|
-
]).compact)
|
46
|
-
%>
|
Binary file
|
data/db/seeds/city.jpeg
DELETED
Binary file
|
data/db/seeds/city2.jpeg
DELETED
Binary file
|
data/db/seeds/homepage_image.jpg
DELETED
Binary file
|
data/db/seeds/logo.png
DELETED
Binary file
|