Sha256: b123641b4a9ff5d3ce7e4d6fb23ff19965ecef3b2945b85e85798e60b0a9018c
Contents?: true
Size: 1.24 KB
Versions: 15
Compression:
Stored size: 1.24 KB
Contents
- @hourly_events = FestivityEventList.hourly %article.up-next-bg .up-next-header %h1 %span.light-text Coming up next: - t = DateTime.now.in_time_zone("Eastern Time (US & Canada)") - n = DateTime.now.in_time_zone("Eastern Time (US & Canada)") + 1.hour = "#{t.strftime("%l")} - #{n.strftime("%l %P")}" %article.next-events - @hourly_events.each_with_index do |performance, i| - if i === 0 .up-next-event .up-next-image = link_to event_path(performance.event_page_id) do .lead-image = image_tag(performance.festivity_event_page.image) .up-next-info .title = performance.festivity_event_page.title .time = "#{performance.start_date.strftime("%l:%M")} - #{performance.end_date.strftime("%l:%M %P")}" .locations = "#{performance.location} @ #{performance.area}" %h2 PLUS - else .up-next-events .event .title = link_to performance.festivity_event_page.title, event_path(performance.event_page_id) .time = "#{performance.start_date.strftime("%l:%M")} - #{performance.end_date.strftime("%l:%M %P")}" %a.button{href: 'events'} See All Events
Version data entries
15 entries across 15 versions & 1 rubygems