%- # Arguments: # * events => Array of Event records. # * scores => Offer a sort by score, like for search? Default to false. scores = defined?(scores) ? scores : false previous_start_time = nil #show_year ||= false skipped = 0 # calculate rowspans array for events # each entry is number of rows spanned by today_tomorrow_weekday entry, if any, to left of event # entry will be > 0 for first event of day, 0 for other events rowspans = calculate_rowspans(events) -%>
Sort By: <%= link_to "Date", url_for(params.to_unsafe_h.merge(:order => 'date')) %> | <%= events_sort_link('name') -%>, <%= events_sort_link('venue') -%> <%- if scores -%>, <%= events_sort_link('score') -%> <%- end -%>, <%= events_sort_link(nil) -%> |
---|---|
<%= today_tomorrow_or_weekday(event) %>
<% show_year = event.start_time.year != Time.now.year %>
<%= datetime_format(event.start_time,'%b %d') -%><%= ", "+datetime_format(event.start_time,'%Y') if show_year %>
|
<% end %>
<%= event.title %> <%= normalize_time(event, :context => event.start_time.to_date) -%> <% if event.venue && !event.venue.title.blank? %> <%= event.venue.title -%> <% end -%> <% if !event.description.blank? %>
<%= format_description(event.description) -%>
<% end -%>
<% if !event.url.blank? -%>
<%= link_to "Website", event.url, :class => "url u-url", :rel => "nofollow" -%>
<% end -%>
|
No events were found. | |
<%= link_to "(And #{skipped} more)", events_url %> |