Sha256: 67951db0ee7c97e15b3d2b017d8b250c3e42007e02c49e8fe7b57ae5122045c9

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

<% if can? :admin, Spree::Order %>
  <%= tab *Spree::BackendConfiguration::ORDER_TABS, icon: 'shopping-cart' %>
<% end %>

<% if can? :admin, Spree::Product %>
  <%= tab *Spree::BackendConfiguration::PRODUCT_TABS, icon: 'th-large' do %>
    <%- render partial: 'spree/admin/shared/product_sub_menu' %>
  <%- end %>
<% end %>

<% if can? :admin, :reports %>
  <%= tab *Spree::BackendConfiguration::REPORT_TABS, icon: 'file'  %>
<% end %>

<% if can? :admin, :general_settings %>
  <%= tab *Spree::BackendConfiguration::CONFIGURATION_TABS, label: :settings, icon: 'wrench', url: spree.edit_admin_general_settings_path do %>
    <% render partial: 'spree/admin/shared/settings_sub_menu' %>
  <% end %>
<% end %>

<% if can? :admin, Spree::Promotion %>
  <%= tab *Spree::BackendConfiguration::PROMOTION_TABS, url: spree.admin_promotions_path, icon: 'bullhorn' do %>
    <%- render partial: 'spree/admin/shared/promotion_sub_menu' %>
  <%- end %>
<% end %>

<% if can? :admin, Spree::StockItem %>
  <%= tab(*Spree::BackendConfiguration::STOCK_TABS, url: spree.admin_stock_items_path, label: :stock, icon: 'cubes', match_path: %r(^/admin/stock)) do %>
    <%- render partial: 'spree/admin/shared/stock_sub_menu' %>
  <%- end %>
<% end %>

<% if Spree.user_class && can?(:admin, Spree.user_class) %>
  <%= tab *Spree::BackendConfiguration::USER_TABS, url: spree.admin_users_path, icon: 'user' %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_backend-1.3.0.beta1 app/views/spree/admin/shared/_tabs.html.erb