<%- if @library -%>

<%= t('calendar.library_calendar', :library_name => @library.display_name.localize) -%>

<%- else -%>

<%= t('calendar.calendar') -%>

<%- end -%>

<%= notice %>

<%- if @library -%>

<%= link_to @library.display_name.localize, @library -%>

<%- else -%>

<%= t('event.all_libraries') -%>

<%- end -%>

<%- if @library -%> (<%= link_to 'iCalendar', library_events_path(@library, :format => :ics) -%>) <%- else -%> (<%= link_to 'iCalendar', events_path(:format => :ics) -%>) <%- end -%>

<%= raw event_calendar %>