Sha256: 669c0e58629cc7e4269ad621e6a2b7d91139d81dc9e7e0ff4496f223da83d383

Contents?: true

Size: 1.58 KB

Versions: 24

Compression:

Stored size: 1.58 KB

Contents

<% content_for :javascript_includes do %>
  <meta name="turbolinks-cache-control" content="no-cache">
<% end %>

<% content_for :toolbar do %>
  <%= render "alchemy/admin/pages/toolbar" %>
<% end %>

<%= content_tag :div,
  id: "archive_all",
  class: [@view == "list" && "resources-table-wrapper with_tag_filter"] do %>
  <% if @view == "list" %>
    <%= render "alchemy/admin/resources/table_header", resources_instance_variable: @pages %>
    <% if @pages.any? %>
      <%= render "table" %>
    <% elsif search_filter_params.present? %>
      <%= render_message do %>
        <%= Alchemy.t("No pages found") %>
      <% end %>
    <% elsif can?(:create, Alchemy::Page) %>
      <%= render partial: "create_language_form" %>
    <% end %>

    <%= paginate @pages, scope: alchemy, theme: "alchemy" %>

    <div id="library_sidebar">
      <%= render "page_layout_filter" %>

      <%= render "filter_bar",
        label: Alchemy::Page.human_attribute_name(:status),
        url: alchemy.admin_pages_path(search_filter_params.except(:filter, :page).merge(view: "list")) %>

      <% if resource_has_tags %>
        <%= render "tag_list" %>
      <% end %>
    </div>
  <% else %>
    <% if @page_root %>
      <h2 id="page_filter_result"></h2>
      <%= render "sitemap", page_partial: "page", full: !!@sorting %>
    <% elsif can?(:create, Alchemy::Page) %>
      <%= render partial: "create_language_form" %>
    <% else %>
      <%= render_message :warn do %>
        <h2>No language root page found.</h2>
        <p>Please ask the admin to create one.</p>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
alchemy_cms-5.3.0 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.2.7 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.2.6 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.1.10 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.2.5 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.1.9 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.2.4 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.1.8 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.1.7 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.2.3 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.1.6 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.2.2 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.1.5 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-6.0.0.b1 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.2.1 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.1.4 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.1.3 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.2.0 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.2.0.rc1 app/views/alchemy/admin/pages/index.html.erb
alchemy_cms-5.2.0.b1 app/views/alchemy/admin/pages/index.html.erb