app/views/calendars/show.html.erb
<% title @calendar.name + (@calendar.active? ? " (active)" : " (inactive)") %>
<% subtitle "("+@calendar.start_date.strftime("%b %d, %Y")+" - "+(@calendar.default? ? "forever" : @calendar.end_date.strftime("%b %d, %Y") )+")"%>
<p>
<% unless @calendar.default? %>
<%= link_to "Edit", edit_calendar_path(@calendar) %> |
<%= link_to "Destroy", @calendar, confirm: 'Are you sure?', method: :delete %> |
<% else %>
<p>This is the default calendar, and cannot be edited or deleted.</p>
<% end %>
<%= link_to "View All Calendars", calendars_path %>
</p>