app/views/panda_cms/admin/posts/index.html.erb in panda_cms-0.5.3 vs app/views/panda_cms/admin/posts/index.html.erb in panda_cms-0.5.4
- old
+ new
@@ -1,16 +1,18 @@
<%= 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(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 %></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 %>