Sha256: 92d3693ff3a3d94822d1c6da8eb5829800fc60300c477b300af00d9adb162b1d

Contents?: true

Size: 1.19 KB

Versions: 3

Compression:

Stored size: 1.19 KB

Contents

<ul class="admin-subnav" data-hook="admin_settings_sub_tabs">
  <% if can?(:admin, Spree::Store) %>
    <%= tab :stores, label: :stores, url: spree.admin_stores_path %>
  <% end %>

  <% if can?(:show, Spree::PaymentMethod) %>
    <%= tab :payments, url: spree.admin_payment_methods_path %>
  <% end %>

  <% if can?(:show, Spree::TaxCategory) || can?(:show, Spree::TaxRate) %>
    <%= tab :taxes, url: spree.admin_tax_categories_path, match_path: %r(tax_categories|tax_rates) %>
  <% end %>

  <% if can?(:show, Spree::RefundReason) || can?(:show, Spree::ReimbursementType) ||
    can?(:show, Spree::ReturnReason) || can?(:show, Spree::AdjustmentReason) %>
    <%= tab :checkout, url: spree.admin_refund_reasons_path, match_path: %r(refund_reasons|reimbursement_types|return_reasons|adjustment_reasons|store_credit_reasons) %>
  <% end %>

  <% if can?(:show, Spree::ShippingMethod) || can?(:show, Spree::ShippingCategory) || can?(:show, Spree::StockLocation) %>
    <%= tab :shipping, url: spree.admin_shipping_methods_path, match_path: %r(shipping_methods|shipping_categories|stock_locations) %>
  <% end %>

  <% if can?(:show, Spree::Zone) %>
    <%= tab :zones, url: spree.admin_zones_path %>
  <% end %>
</ul>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_backend-2.11.2 app/views/spree/admin/shared/_settings_sub_menu.html.erb
solidus_backend-2.11.1 app/views/spree/admin/shared/_settings_sub_menu.html.erb
solidus_backend-2.11.0 app/views/spree/admin/shared/_settings_sub_menu.html.erb