Sha256: 0e900db7b4ae5dc77fd53ba4b160c9f0287e19a1d0cd544c8ac2ccb86223ec2e

Contents?: true

Size: 707 Bytes

Versions: 3

Compression:

Stored size: 707 Bytes

Contents

<% content_for :page_title, "Pages" %>

<% content_for :page_description do %>
  All pages /
  <%= link_to("Deleted pages", deleted_admin_pages_path(@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, @locale] do %>
    <%= react_component(
      "PageTree", {
        pages: @pages.map { |p| page_json(p) },
        locale: @locale,
        dir: locale_direction(@locale),
        permissions: [(:create if policy(Page).create?)] }
    ) %>
  <% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pages_core-3.12.4 app/views/admin/pages/index.html.erb
pages_core-3.12.3 app/views/admin/pages/index.html.erb
pages_core-3.12.2 app/views/admin/pages/index.html.erb