rubycentral/cfp-app

View on GitHub
app/views/staff/grids/_grid.html.haml

Summary

Maintainability
Test Coverage
.schedule-grid{id: "schedule_day_#{day}"}
  %ul.ruler
  - schedule.each_room(day) do |room, slots|
    .room-column{class: grid_position_css(room)}
      .column-header
        = room.name
      .time-slots
         
        - slots.each do |ts|
          - ts = Staff::TimeSlotDecorator.decorate(ts)
          = render partial: 'staff/grids/time_slots/time_slot', locals: { ts: ts }