Sha256: 1096b22c50c835eb09b243b506be299da506cfe69d33875168990ff7311d2934

Contents?: true

Size: 1.09 KB

Versions: 2

Compression:

Stored size: 1.09 KB

Contents

<% if stores.size > 1 %>
  <li class="change-store">
    <div class="dropdown navbar-right-dropdown">
      <button id="stores-button" type="button" data-toggle="dropdown" class="navbar-right-dropdown-toggle" aria-label="<%= Spree.t('nav_bar.change_country')%>">
        <%= icon(name: 'global',
                classes: 'd-none d-xl-inline-block',
                width: 41,
                height: 36)  %>
        <%= icon(name: 'arrow-down',
                classes: 'd-inline-block d-xl-none',
                width: 15,
                height: 15)  %>
      </button>

      <div class="dropdown-menu dropdown-menu-right text-right">
        <% stores.each do |store| %>
          <div class="pl-3 d-flex justify-content-between align-items-center <%= 'active' if store.id == current_store.id %>">
            <span class="flag-icon flag-icon-<%= store_country_iso(store) %>"></span>
            <%= link_to "#{store.default_country&.name} (#{store_currency_symbol(store)})", "//#{store.url}", class: 'dropdown-item text-uppercase' %>
          </div>
        <% end %>
      </div>
    </div>
  </li>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_frontend-4.2.0.rc1 app/views/spree/shared/_change_store.html.erb
spree_frontend-4.2.0.beta app/views/spree/shared/_change_store.html.erb