<%= render 'spree/admin/shared/pages_tabs' %> <% content_for :page_actions do %> <% if can?(:create, Spree::Page) %>
  • <%= link_to t("spree.new_page"), new_object_url, icon: 'plus' %>
  • <% end %> <% end %> <% content_for :page_title do %> <%= t("spree.static_pages") %> <% end %> <% if @pages.any? %> <% @pages.each do |page| %> <% end %>
    <%= Spree::Page.human_attribute_name(:title) %> <%= t("spree.link") %> <%= Spree::Page.human_attribute_name(:visible) %>
    <% if can?(:update_positions, Spree::StockLocation) %> <% end %> <%= page.title %> <%= link_to page.link, page.link, :target => '_blank' %> '> <%= t("spree.#{page.visible? ? :active : :inactive}") %> <% if can?(:update, page) %> <%= link_to_edit page, no_text: true %> <% end %> <% if can?(:destroy, page) %> <%= link_to_delete page, no_text: true %> <% end %>
    <% else %>
    <%= render 'spree/admin/shared/no_objects_found', resource: Spree::Page, new_resource_url: new_object_url %>
    <% end %>