Sha256: 7ddc3f7c8cb516ad6f6f8119be58c06a7ec5fac61d0858f2cfd36d770c3deb68

Contents?: true

Size: 752 Bytes

Versions: 6

Compression:

Stored size: 752 Bytes

Contents

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

      <% if can? :display, Spree::Country %>
        <%= settings_tab_item Spree::Country.model_name.human(count: :other), 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 Spree::State.model_name.human(count: :other), admin_country_states_path(country) %>
        <% end %>
      <% end %>
    </ul>
  </nav>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

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