<% if @category %> <%= @category.name %>: <% end %> <%= show_month(params[:year], params[:month]) %>

<%= link_to_previous_month(params[:year], params[:month]) %>       <%= link_to_next_month(params[:year], params[:month]) %>
<% @calendar.first(7).each do |day,event| %> <% end %> <% @calendar.in_groups_of(7).each do |week| %> <% week.each do |date, events, this_month| %> <% end %> <% end %>
<%= show_day_of_week(day) %>
<%= date.day %>
<% events.each do |event| %>
<%= link_to event.name, event.url, :style => 'display: block;' %>
<% end %>