Sha256: 7372807dcd2fb55118f2d0b925e94e4c427b6557bc30d07643b36c4be5b80d04

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

<% content_for :page_title, "Calendar" %>
<% content_for(:page_description) do %>
  Calendar:
  <em>
    <% if @month %>
      <%= month_name(@month) %>
    <% end %>
    <%= @year %>
  </em>
<% end %>

<% content_for :page_description_links do %>
  <%= locale_links { |l| admin_calendar_path(l, @year) } %>
<% end %>

<% content_for :sidebar do %>
  <%= render(partial: "sidebar", locals: { locale: @locale }) %>
<% end %>

<% if @pages.any? %>
  <table class="list calendar-item-list">
    <tr>
      <th>Name</th>
      <th>Date</th>
      <th>Published</th>
      <th>Section</th>
    </tr>
    <% @pages.each do |page| %>
      <%= render(partial: "admin/pages/list_item",
                 locals: {
                   page: page,
                   date: true,
                   section: true,
                   sections: @parents
                 }) %>
    <% end %>
  </table>
  <%= will_paginate @pages, renderer: PagesCore::LinkRenderer %>
<% else %>
  <div class="content">
    <p>
      No calendar items have been posted yet.
    </p>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pages_core-3.12.4 app/views/admin/calendars/show.html.erb
pages_core-3.12.3 app/views/admin/calendars/show.html.erb
pages_core-3.12.2 app/views/admin/calendars/show.html.erb
pages_core-3.12.1 app/views/admin/calendars/show.html.erb