<% # VARIABLES: # * event: An Event instance. # * has_contentbar: Should room be left to display a contentbar on the side? Defaults to true. has_contentbar = local_assigns.has_key?(:has_contentbar) ? local_assigns[:has_contentbar] : true html_classes = "single_event" html_classes << " contentbar" if has_contentbar %>

<%= event.title %>

<% if event.end_time %> <% end %>
<%= normalize_time(event) -%>
<% unless event.venue.blank? %>
" itemprop="location" itemscope itemtype="http://schema.org/Place"> <%= map event.venue %> <%= event.venue.title -%> <% if event.venue.closed? %>

This venue is no longer open for business.

<% end %>
<% if !event.venue.street_address.blank? -%>
<%= event.venue.street_address -%>
<% end %> <% if !event.venue.locality.blank? -%> <%= event.venue.locality -%><%= "," if event.venue.region.present? or event.venue.postal_code.present? or event.venue.country.present? %> <% end -%> <% if !event.venue.region.blank? -%> <%= event.venue.region -%><%= "," if event.venue.country.present? and not event.venue.postal_code.present? %> <% end -%> <% if !event.venue.postal_code.blank? -%> <%= event.venue.postal_code -%><%= "," if event.venue.country.present? %> <% end -%> <% if !event.venue.country.blank? -%> <%= event.venue.country -%> <% end -%> <% if event.venue && event.venue.full_address.present? -%> (map) <% end -%> <% if event.venue.wifi? -%>
Public WiFi
<% end -%> <% if event.venue.access_notes.present? -%>

Access Notes

<%= format_description event.venue.access_notes %>
<% end -%> <% unless event.venue_details.blank? -%>

<%= format_description(event.venue_details) %>

<% end -%>
<% end -%>
<% unless event.url.blank? -%>

Website

<%= link_to "#{truncate(event.url, :length => 128)}", h(event.url), :class => "url u-url", :rel => "nofollow", :itemprop => "url" %>
<% end -%> <% unless event.description.blank? -%>

Description

<%= format_description(event.description) %>
<% end -%> <% if event.persisted? %>

Share

<% end %> <% unless event.tags.blank? -%>

Tags

<%= tag_links_for event %>
<% end %>