Sha256: 3022f1fc9e4a9bacc50268362c80b5a6b825b2b3b6ec592646ce04e7b06b4a18

Contents?: true

Size: 1.4 KB

Versions: 5

Compression:

Stored size: 1.4 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(?!_locations))) 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

5 entries across 5 versions & 1 rubygems

Version Path
solidus_backend-1.3.2 app/views/spree/admin/shared/_tabs.html.erb
solidus_backend-1.3.1 app/views/spree/admin/shared/_tabs.html.erb
solidus_backend-1.3.0 app/views/spree/admin/shared/_tabs.html.erb
solidus_backend-1.3.0.rc2 app/views/spree/admin/shared/_tabs.html.erb
solidus_backend-1.3.0.rc1 app/views/spree/admin/shared/_tabs.html.erb