<% 24.times do |hour| %>
<%= (hour+5) % 24 %>
<% end %>
<% channels.each_with_index do |ch, i| %>
<%= ch.title %>
<% 24.times do |hour| %>
<% (ch.fetch(hour+5) || []).each do |show| %>
-
<%= "%02d:%02d -" % [show.start_hour, show.start_min] %>
<% if hour != show.hour %>
<%= "%02d:%02d" % [show.last_hour, show.last_min] %>
<% end %>
<%= show.title %>
<% end %>
<% end %>
<% end %>