Sha256: 8958435ee40c45d230d913d2fe5b016a060ff0290aea2b0a8546446604e09dc6

Contents?: true

Size: 976 Bytes

Versions: 7

Compression:

Stored size: 976 Bytes

Contents

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

  <%= render PandaCms::Admin::TableComponent.new(term: "post", rows: posts) do |table| %>
    <% table.column("Title") do |post| %>
      <div class="">
        <%= link_to post.title, edit_admin_post_path(post), class: "block h-full w-full" %>
        <span class="block text-xs text-black/60"><%= post_path(post) %></span>
      </div>
    <% end %>
    <% table.column("Status") { |post| render PandaCms::Admin::TagComponent.new(status: post.status) } %>
    <% table.column("Published") { |post| render PandaCms::Admin::UserActivityComponent.new(at: post.published_at, user: post.user)} %>
    <% table.column("Last Updated") { |post| render PandaCms::Admin::UserActivityComponent.new(whodunnit_to: post)} %>
  <% end %>

<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
panda_cms-0.6.3 app/views/panda_cms/admin/posts/index.html.erb
panda_cms-0.6.2 app/views/panda_cms/admin/posts/index.html.erb
panda_cms-0.6.1 app/views/panda_cms/admin/posts/index.html.erb
panda_cms-0.6.0 app/views/panda_cms/admin/posts/index.html.erb
panda_cms-0.5.10 app/views/panda_cms/admin/posts/index.html.erb
panda_cms-0.5.9 app/views/panda_cms/admin/posts/index.html.erb
panda_cms-0.5.8 app/views/panda_cms/admin/posts/index.html.erb