Make it possible for users to select events which they want to see in the public schedule and in the All events section of the public schedule.
42 lines
1.9 KiB
Text
42 lines
1.9 KiB
Text
.panel.panel-default.event-panel{ onClick: 'eventClicked(event, this);', "data-url" => "#{url_for(conference_program_proposal_path(@conference.short_title, event.id))}" }
|
|
.panel-body
|
|
- event.speakers_ordered.each do |speaker|
|
|
= image_tag speaker.gravatar_url, :class => "img-circle pull-right all-speaker-pic", |
|
|
:alt => speaker.name, |
|
|
:title => speaker.name |
|
|
%p
|
|
= canceled_replacement_event_label(event, event_schedule)
|
|
= replacement_event_notice(event_schedule)
|
|
- if current_user
|
|
= link_to('#', onClick: 'starClicked();') do
|
|
%span#star-events{ class: "fa fa-lg #{ event.favourite_users.exists?(current_user.id) ? 'fa-star' : 'fa-star-o' }", |
|
|
"aria-hidden" => "true", |
|
|
"data-url" => conference_program_proposal_path(@conference.short_title, event.id), |
|
|
"data-user" => current_user.id }
|
|
%span.h3
|
|
= event.title
|
|
%br
|
|
%small
|
|
= event.subtitle
|
|
%h4
|
|
- if(event.speakers.any?)
|
|
presented by #{event.speaker_names}
|
|
%p
|
|
= markdown(truncate(event.abstract, length: 400))
|
|
= link_to 'more', conference_program_proposal_path(@conference.short_title, event.id) if event.abstract.length > 400
|
|
- if event_schedule.present?
|
|
%span.track
|
|
%span.fa-solid.fa-clock
|
|
%span.label{ style: "background-color: grey" }
|
|
= event_schedule.start_time.strftime('%H:%M')
|
|
\-
|
|
= event_schedule.end_time.strftime('%H:%M')
|
|
%span.track
|
|
%span.fa-solid.fa-location-dot
|
|
%span.label{ style: "background-color: grey" }
|
|
= event_schedule.room.name
|
|
- if event.track
|
|
%span.track
|
|
%span.fa-solid.fa-road
|
|
%span.label{ style: "background-color: #{event.track.color}; color: #{ contrast_color(event.track.color) }" }
|
|
= event.track.name
|