Sha256: ff487deb6efe345921724e75078ce1249cd488c571db704f385d60ec94c188f4

Contents?: true

Size: 552 Bytes

Versions: 8

Compression:

Stored size: 552 Bytes

Contents

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

  <%= render PandaCms::Admin::TableComponent.new(rows: menus) do |table| %>
    <% table.column("Name") { |menu| link_to menu.name, edit_admin_menu_path(menu) } %>
    <% table.column("Kind") { |menu| render PandaCms::Admin::TagComponent.new(status: :active, text: menu.kind.titleize) } %>
  <% end %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
panda_cms-0.5.7 app/views/panda_cms/admin/menus/index.html.erb
panda_cms-0.5.6 app/views/panda_cms/admin/menus/index.html.erb
panda_cms-0.5.5 app/views/panda_cms/admin/menus/index.html.erb
panda_cms-0.5.4 app/views/panda_cms/admin/menus/index.html.erb
panda_cms-0.5.3 app/views/panda_cms/admin/menus/index.html.erb
panda_cms-0.5.2 app/views/panda_cms/admin/menus/index.html.erb
panda_cms-0.5.1 app/views/panda_cms/admin/menus/index.html.erb
panda_cms-0.5.0 app/views/panda_cms/admin/menus/index.html.erb