<table class="content_box_bg" style="width:100%">
  <tr>
    <td style="text-align: left;">
      <%=h display_calender_month(:format => :year_month) %>
    </td>
    <td style="text-align: right;">
      <%= calendar_move_remote(:update => "community_event_calendar",
                               :url => {:action => :show_calendar, :id => @community.id, :controller => :communities} ) %>
    </td>
  </tr>
</table>
<div style="background-color:#FFFFFF;">
  <%=
     mars_calendar(:year => @calendar_year, :month => @calendar_month) do |cur|
       if @community_events.detect{|e| e.event_date == cur}
         cell_text = ""
         cell_text << link_to(cur.mday, show_calendar_community_events_path(:date => {:year => cur.year, :month => cur.month, :day => cur.day}))
         [cell_text, nil]
       else
         [nil, nil]
       end
     end
  %>
</div>
