<% month_names = %w{January February March April May June July August September October November December} page_title "Calendar" page_description "Calendar" if PagesCore.config.localizations? self.page_description_links = 'In ' + PagesCore.config.locales.map{ |l, n| link_to_unless_current n, calendar_admin_pages_path(l) }.join(link_separator) end %> <% content_for :sidebar do %>

New entry

<%= form_tag new_admin_page_path, method: :get do %> In <%= select_tag('parent', options_for_select(calendar_pages(@locale).map{|p| [page_name(p, include_parents: true).gsub("»", "ยป"), p.id] })) %> <%= submit_tag "Go", name: nil %> <% end %>

<% calendar_years_with_count.each do |year, year_count| %>

<%= link_to_unless_current(year, admin_calendar_path( @locale, year: year) ) %> (<%= year_count %>)

<% end %>
<% end %> <% if @pages.any? %> <% @pages.each do |page| %> <%= render(partial: "admin/pages/list_item", locals: { page: page, date: true, section: true, sections: @parents }) %> <% end %>
Name Date Published Section
<%= will_paginate @pages %> <% else %>

No calendar items have been posted yet.

<% end %>