app/views/panda/cms/admin/posts/index.html.erb in panda-cms-0.7.0 vs app/views/panda/cms/admin/posts/index.html.erb in panda-cms-0.7.2

- old
+ new

@@ -3,16 +3,18 @@ <% heading.with_button(action: :add, text: "Add Post", link: new_admin_post_path) %> <% end %> <%= render Panda::CMS::Admin::TableComponent.new(term: "post", rows: posts) do |table| %> <% table.column("Title") do |post| %> - <div class=""> + <div> <%= link_to post.title, edit_admin_post_path(post.admin_param), class: "block h-full w-full" %> - <span class="block text-xs text-black/60"><%= post_path(post) %></span> + <span class="block text-xs text-black/60"> + <%= CGI.unescape("#{Panda::CMS.config.posts[:prefix]}#{post.slug}") %> + </span> </div> <% end %> <% table.column("Status") { |post| render Panda::CMS::Admin::TagComponent.new(status: post.status) } %> - <% table.column("Published") { |post| render Panda::CMS::Admin::UserActivityComponent.new(at: post.published_at, user: post.user)} %> + <% table.column("Published") { |post| render Panda::CMS::Admin::UserActivityComponent.new(at: post.published_at, user: post.author)} %> <% table.column("Last Updated") { |post| render Panda::CMS::Admin::UserActivityComponent.new(whodunnit_to: post)} %> <% end %> <% end %>