Sha256: d047b3734a50577a037edbb2976d7b159f675d0b30c012d90c68df35b81e7257

Contents?: true

Size: 1.86 KB

Versions: 1

Compression:

Stored size: 1.86 KB

Contents

<% if (defined?(should_render_store_chooser?) && should_render_store_chooser?) || (defined?(should_render_internationalization_dropdown?) && should_render_internationalization_dropdown?) %>
  <% link_title = "#{Harpiya.t(:choose_currency)} / #{Harpiya.t('i18n.language')}" %>

  <li class="d-flex justify-content-between align-items-center mobile-navigation-list-item">
    <span class="w-75"><%= link_title %></span>
    <a class="w-25 text-right mobile-navigation-category-link" data-category="internationalization" href="#" aria-label="<%= link_title %>">
      <%= icon(name: 'arrow-right',
              classes: 'd-sm-none harpiya-icon-arrow harpiya-icon-arrow-right',
              width: 16,
              height: 16) %>
      <%= icon(name: 'arrow-right',
              classes: 'd-none d-sm-inline harpiya-icon-arrow harpiya-icon-arrow-right',
              width: 14,
              height: 27) %>
    </a>

    <ul class="list-unstyled position-absolute mobile-navigation-sublist" data-category="internationalization">
      <li class="text-center font-weight-bold mobile-navigation-sublist-header">
        <%= Harpiya.t(:internationalization) %>
      </li>
      <% if (defined?(should_render_store_chooser?) && should_render_store_chooser?) %>
        <% stores.each do |store| %>
          <li class="d-flex justify-content-between align-items-center mobile-navigation-list-item">
            <%= country_flag_icon(store_country_iso(store)) %>
            <%= store_link(store, class: "dropdown-item text-uppercase d-flex #{'font-weight-bold' if current_store == store}") %>
          </li>
        <% end %>
      <% else %>
        <div class="mt-4 pt-4">
          <%= render 'harpiya/shared/locale_dropdown' %>
          <div class="dropdown-divider mt-4 pb-4"></div>
          <%= render 'harpiya/shared/currency_dropdown' %>
        </div>
      <% end %>
    </ul>
  </li>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
harpiya_frontend-4.3.0.alpha app/views/harpiya/shared/_mobile_internationalization_options.html.erb