Haml'fy schedule_item partial
This commit is contained in:
parent
7309782b05
commit
94bb76f5ec
2 changed files with 24 additions and 32 deletions
24
app/views/conference/_schedule_item.html.haml
Normal file
24
app/views/conference/_schedule_item.html.haml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
%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 if event[0].track}" }
|
||||
= event[0].track.name
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue