Sha256: d506fc4740c6041757459d6f0eb6af11b881f74cfff1018bcaa65e5abcb00187

Contents?: true

Size: 1.3 KB

Versions: 7

Compression:

Stored size: 1.3 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: Spree.t(:settings), icon: 'wrench', url: spree.edit_admin_general_settings_path %>
<% 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(:stock_items, :stock_transfers, url: spree.admin_stock_items_path, label: Spree.t(: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

7 entries across 7 versions & 1 rubygems

Version Path
solidus_backend-1.2.3 app/views/spree/admin/shared/_tabs.html.erb
solidus_backend-1.2.2 app/views/spree/admin/shared/_tabs.html.erb
solidus_backend-1.2.1 app/views/spree/admin/shared/_tabs.html.erb
solidus_backend-1.2.0 app/views/spree/admin/shared/_tabs.html.erb
solidus_backend-1.2.0.rc2 app/views/spree/admin/shared/_tabs.html.erb
solidus_backend-1.2.0.rc1 app/views/spree/admin/shared/_tabs.html.erb
solidus_backend-1.2.0.beta1 app/views/spree/admin/shared/_tabs.html.erb