| Time | <% @rooms.each do |room| %><%= room.name %> | <% end %>|
|---|---|---|
| <%= conf_start.strftime("%H:%M") %> | <% @rooms.each do |room| %> <% event = @events.find_all{|event|event.start_time and event.start_time.strftime("%Y-%m-%d %H:%M").eql? conf_start.strftime("%Y-%m-%d %H:%M") and event.room_id == room.id } %> <% if !event.empty? %> <% span[room.id] = event[0].event_type.length / 15 %>
<%= image_tag event[0].submitter.gravatar_url, :class => "img-circle pull-right" %>
<%= event[0].title %>
<% if span[room.id] > 2 %>
<%= truncate(event[0].abstract, :length => 80) %>
<% end %>
|
<% span[room.id] = span[room.id] + 1 %>
<% end %>
<% if span[room.id] == 1 %>
"> | <% end %> <% if span[room.id] > 1 %> <% span[room.id] = ( span[room.id] - 1 ) if span[room.id] > 1 %> <% end %> <%end %>