Sha256: 8e4292de1018ced40fec29dd558fcc47d3354b28c904faf84ba017fe1f6989a8

Contents?: true

Size: 735 Bytes

Versions: 5

Compression:

Stored size: 735 Bytes

Contents

<% content_for :page_title, "Pages" %>

<% content_for :page_description do %>
  All pages /
  <%= link_to("Deleted pages", deleted_admin_pages_path(content_locale)) %>
<% end %>

<% content_for :page_description_links do %>
  <%= locale_links { |l| admin_pages_path(l) } %>
<% end %>

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

<div class="content">
  <% cache Page.visible.roots.to_a + [current_user, content_locale] do %>
    <%= react_component(
      "PageTree", {
        pages: @pages.map { |p| page_json(p) },
        locale: content_locale,
        dir: locale_direction(content_locale),
        permissions: [(:create if policy(Page).create?)] }
    ) %>
  <% end %>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pages_core-3.14.0 app/views/admin/pages/index.html.erb
pages_core-3.13.0 app/views/admin/pages/index.html.erb
pages_core-3.12.7 app/views/admin/pages/index.html.erb
pages_core-3.12.6 app/views/admin/pages/index.html.erb
pages_core-3.12.5 app/views/admin/pages/index.html.erb