osem-fcy/app/views/conference/_schedule_item.html.haml
Björn Geuken b685628208 Remove superflous condition
We ensured that the event has a track in the condition 3 lines above. Thus
we can remove this one.
2015-05-16 15:00:21 +02:00

24 lines
967 B
Text

%td.event{ style: "width: #{95 / @rooms.length}%; cursor:pointer", |
rowspan: span[room.id], |
role: "button" } |
%a.unstyled-link{href: url_for(conference_proposal_path(@conference.short_title, event[0].id))}
- if speaker = event[0].speakers.first
= image_tag speaker.gravatar_url, :class => "img-circle pull-right", |
:alt => speaker.name, |
:title => speaker.name, |
:style => "padding:8px;" |
%h5
%span.fa.fa-comment
= event[0].title
- unless event[0].subtitle.blank?
%span.schedule-subtitle
= event[0].subtitle
%span.schedule-speaker
%span.fa.fa-user
= speaker.name
- if event[0].track
%span.schedule-track
%span.fa.fa-road
%span.label{ style: "background-color: #{event[0].track.color}" }
= event[0].track.name