Commit d1a0ae09 authored by jon richter's avatar jon richter

cont. refactor unscheduled events display

parent c4092ffd
- if event.time_slots != nil
.event{ :id => "event_#{event.id}",
:style => "height: #{event.time_slots * 20 - 7}px;",
:class => event.conflict_level,
:"data-update-url" => schedule_update_event_path(:id => event.id),
:"data-room" => event.room ? event.room.name.downcase : nil,
:"data-time" => event.start_time ? event.start_time.to_s(:rfc822) : nil }
= link_to event.title, event
%p.small
= by_speakers(event)
(
= event.track.try(:name)
\/
= event.event_type
)
- if event.time_slots == nil
.unscheduled-event{ :id => "event_#{event.id}",
:"data-update-url" => schedule_update_event_path(:id => event.id) }
= link_to event.title, event
- @scheduled_events.each do |event|
- if event.time_slots != nil
.event{ :id => "event_#{event.id}",
:style => "height: #{event.time_slots * 20 - 7}px;",
:class => event.conflict_level,
:"data-update-url" => schedule_update_event_path(:id => event.id),
:"data-room" => event.room ? event.room.name.downcase : nil,
:"data-time" => event.start_time ? event.start_time.to_s(:rfc822) : nil }
= link_to event.title, event
%p.small
= by_speakers(event)
(
= event.track.try(:name)
\/
= event.event_type
)
%h2 No time slots assigned:
- @scheduled_events.each do |event|
- if event.time_slots == nil
%li.unscheduled-event{ :id => "event_#{event.id}",
:"data-update-url" => schedule_update_event_path(:id => event.id) }
= link_to event.title, event
......@@ -6,7 +6,7 @@
:"data-update-url" => schedule_update_event_path(:id => event.id),
:"data-height" => (event.time_slots * 20 - 7) }
= link_to event.title, event
%h2 No time slots assigned:
%h2 Nothing assigned:
- @unscheduled_events.each do |event|
- if event.time_slots == nil
%li.unscheduled-event{ :id => "event_#{event.id}",
......
......@@ -65,8 +65,8 @@
- slot += 1
.clear
#event-pane
- @scheduled_events.each do |event|
= render 'event', :event => event
%ul#scheduled-events
= render 'event'
%ul#unscheduled-events
= render 'unscheduled_events'
#add-event-modal.modal{:style => "display: none;"}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment