Sha256: 7a953e63f63beae55b364238fbaed6a810abfd49add6db81f561862d86c26221
Contents?: true
Size: 1.11 KB
Versions: 7
Compression:
Stored size: 1.11 KB
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 %> <% if root_page %> <%= render PandaCms::Admin::TableComponent.new(term: "page", 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 %> <% else %> <div class="p-6 bg-error/10 text-error rounded-lg"> <p class="text-base">No homepage (at <code>/</code>) found. Please create a homepage to start building your site.</p> </div> <% end %> <% end %>
Version data entries
7 entries across 7 versions & 1 rubygems