Sha256: 6b50beb3b33abbed1850bf40fd94c49642992871cfae8e96e714d8e1a6760507

Contents?: true

Size: 868 Bytes

Versions: 4

Compression:

Stored size: 868 Bytes

Contents

<%= render PandaCms::Admin::ContainerComponent.new do |component| %>
  <% component.with_heading(text: "Pages", level: 1) do |heading| %>
    <% heading.with_button(action: :add, text: "Add Page", link: new_admin_page_path) %>
  <% end %>

  <%= render PandaCms::Admin::TableComponent.new(rows: root_page.self_and_descendants) do |table| %>
    <% table.column("Name") do |page| %>
      <div class="<%= table_indent(page) %>">
        <%= link_to page.title, edit_admin_page_path(page), class: "block h-full w-full" %>
        <span class="block text-xs text-black/60"><%= page.path %></span>
      </div>
    <% end %>
    <% table.column("Status") { |page| render PandaCms::Admin::TagComponent.new(status: page.status) } %>
    <% table.column("Last Updated") { |page| render PandaCms::Admin::UserActivityComponent.new(whodunnit_to: page)} %>
  <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
panda_cms-0.5.3 app/views/panda_cms/admin/pages/index.html.erb
panda_cms-0.5.2 app/views/panda_cms/admin/pages/index.html.erb
panda_cms-0.5.1 app/views/panda_cms/admin/pages/index.html.erb
panda_cms-0.5.0 app/views/panda_cms/admin/pages/index.html.erb