Sha256: 8063cb39da29b84057f73cd0ca56411e0b0d1064f5a7eee671a4f8987dcb3f6e

Contents?: true

Size: 1.22 KB

Versions: 5

Compression:

Stored size: 1.22 KB

Contents

<ul class="admin-subnav" data-hook="admin_settings_sub_tabs">
  <% if can?(:edit, :general_settings) || can?(:display, Spree::Tracker) %>
    <%= tab :general_settings, label: :general, url: spree.edit_admin_general_settings_path, match_path: /\/general_settings|\/trackers/ %>
  <% end %>

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

  <% if can?(:display, Spree::Zone) || can?(:display, Spree::Country) || can?(:display, Spree::State) %>
    <%= tab :areas, url: admin_zones_path %>
  <% end %>

  <% if can?(:display, Spree::TaxCategory) || can?(:display, Spree::TaxRate) %>
    <%= tab :taxes, url: admin_tax_categories_path %>
  <% end %>

  <% if can?(:display, Spree::RefundReason) || can?(:display, Spree::ReimbursementType) ||
     can?(:display, Spree::ReturnReason) || can?(:display, Spree::AdjustmentReason) %>
    <%= tab :checkout, url: admin_refund_reasons_path %>
  <% end %>

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

Version data entries

5 entries across 5 versions & 1 rubygems

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