Sha256: 2f68cef1c8bc19cb3db096b3d4cabd00d5e9aa00b0339029da48158226b8bbdf

Contents?: true

Size: 740 Bytes

Versions: 26

Compression:

Stored size: 740 Bytes

Contents

<% content_for :tabs do %>
  <nav>
    <ul class="tabs" data-hook="admin_settings_areas_tabs">
      <% if can? :display, Spree::Zone %>
        <%= settings_tab_item plural_resource_name(Spree::Zone), spree.admin_zones_path %>
      <% end %>

      <% if can? :display, Spree::Country %>
        <%= settings_tab_item plural_resource_name(Spree::Country), spree.admin_countries_path %>
      <% end %>

      <% if can?(:display, Spree::State) %>
        <% if country = Spree::Country.find_by(iso: Spree::Config[:default_country_iso]) || Spree::Country.first %>
          <%= settings_tab_item plural_resource_name(Spree::State), spree.admin_country_states_path(country) %>
        <% end %>
      <% end %>
    </ul>
  </nav>
<% end %>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
solidus_backend-2.3.1 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.2.2 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.1.1 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.0.3 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-1.4.2 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.3.0 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.3.0.rc3 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.3.0.rc2 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.3.0.rc1 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.3.0.beta1 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.0.2 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-1.4.1 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.2.1 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.2.0 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.2.0.rc1 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.2.0.beta1 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.1.0 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.1.0.rc1 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.0.1 app/views/spree/admin/shared/_areas_tabs.html.erb
solidus_backend-2.1.0.beta1 app/views/spree/admin/shared/_areas_tabs.html.erb