<%= render 'calendars/tabs' %>

<%= notice %>

<%= ''.html_safe unless !@calendar.public%> <%= @calendar.name %>

<%= link_to "Link to iCalendar", calendar_path(@calendar, { format: 'ics'}) unless cannot? :showics, @calendar%>
    <% @calendar.calentries.each do |entry| %>
  • <%= link_to entry.summary.to_s+ " - " + I18n.l(entry.start1), entry %>
  • <% end %>
<%= calendar @calendar.calentries do |entry| %>
<%= link_to entry.name.to_s, polymorphic_path(entry.try(:object)) unless entry.object.nil? %>
<% end %>
<%= link_to 'New Entry', new_calentry_path, {:class=>"btn"} unless cannot? :new, Calendar%> <%= link_to 'Edit', edit_calendar_path(@calendar), {:class=>"btn"} unless cannot? :edit, Calendar %> <%= link_to 'Back', calendars_path, {:class=>"btn"} %>