Sha256: 84c32ba92acd1822b13edf0cbbbdda1768564f7bb25b799689abf3d263994e33

Contents?: true

Size: 1.2 KB

Versions: 13

Compression:

Stored size: 1.2 KB

Contents

<%= render(partial: "admin/pages/search_bar",
           locals: { query: search_query }) %>

<% if policy(Page).new? %>
  <h2>
    New entry
  </h2>
  <p>
    <%= form_tag new_admin_page_path, method: :get do %>
      In
      <%= select_tag("parent", calendar_page_options(locale)) %>
      <button type="submit">
        Go
      </button>
    <% end %>
  </p>
<% end %>

<div class="archive-index">
  <% calendar_years_with_count.each do |year, year_count| %>
    <h2>
      <%= link_to_unless_current(
        year,
        admin_calendar_path(locale, year: year)
      ) %>
      <span class="count">
        (<%= year_count %>)
      </span>
    </h2>
    <ul>
      <% calendar_months_count(year).each do |month, month_count| %>
        <li>
          <% if year == @year && month == @month %>
            <strong>
              <%= month_name(month) %>
            </strong>
          <% else %>
            <%= link_to_unless_current(
              month_name(month),
              admin_calendar_path(locale, month: month, year: year)
            ) %>
          <% end %>
          <span class="count">
            (<%= month_count %>)
          </span>
        </li>
      <% end %>
    </ul>
  <% end %>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pages_core-3.15.5 app/views/admin/calendars/_sidebar.html.erb
pages_core-3.15.4 app/views/admin/calendars/_sidebar.html.erb
pages_core-3.15.3 app/views/admin/calendars/_sidebar.html.erb
pages_core-3.15.2 app/views/admin/calendars/_sidebar.html.erb
pages_core-3.15.1 app/views/admin/calendars/_sidebar.html.erb
pages_core-3.14.0 app/views/admin/calendars/_sidebar.html.erb
pages_core-3.13.0 app/views/admin/calendars/_sidebar.html.erb
pages_core-3.12.7 app/views/admin/calendars/_sidebar.html.erb
pages_core-3.12.6 app/views/admin/calendars/_sidebar.html.erb
pages_core-3.12.5 app/views/admin/calendars/_sidebar.html.erb
pages_core-3.12.4 app/views/admin/calendars/_sidebar.html.erb
pages_core-3.12.3 app/views/admin/calendars/_sidebar.html.erb
pages_core-3.12.2 app/views/admin/calendars/_sidebar.html.erb