Sha256: baab8c2cfce4c5aef8a92058fcb46d72f59b3921c8ae960a19db6fa40ed66ceb
Contents?: true
Size: 956 Bytes
Versions: 2
Compression:
Stored size: 956 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(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 %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
panda_cms-0.5.5 | app/views/panda_cms/admin/posts/index.html.erb |
panda_cms-0.5.4 | app/views/panda_cms/admin/posts/index.html.erb |