Sha256: 7719c2bf16b76506ce59658342003628272351ac4b3a33cc425d3bcb98d2d525

Contents?: true

Size: 1.12 KB

Versions: 23

Compression:

Stored size: 1.12 KB

Contents

<% presenter = LocaleSwitcherPresenter.new(request) %>
<% if presenter.multiple_locales? %>
  <div class="Vlt-dropdown" id="locale-switcher">
    <div class="Vlt-dropdown__trigger Vlt-dropdown__trigger--btn">
      <%= button_tag type: :button, class: "Vlt-btn Vlt-btn--app Vlt-btn--white", disabled: presenter.disabled? do %>
        <span class="Vlt-dropdown__selection">
          <svg class="Vlt-dropdown__link__icon Vlt-grey-darker"><use xlink:href="<%= asset_pack_path('media/symbol/volta-icons.svg') %>#Vlt-icon-world"/></svg>
          <span class="Nxd-locale">
            <%= presenter.current_locale %>
          </span>
        </span>
      <% end %>
    </div>
    <% unless presenter.disabled? %>
      <div class="Vlt-dropdown__panel">
        <div class="Vlt-dropdown__panel__content">
          <% presenter.locales.each do |locale| %>
            <div class="Vlt-dropdown__link" data-locale="<%= locale.data %>" role="link">
              <span class="Vlt-dropdown__label">
                <%= locale.value %>
              </span>
            </div>
          <% end %>
        </div>
      </div>
    <% end %>
  </div>
<% end %>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
station-0.0.120 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.119 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.118 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.115 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.114 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.113 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.112 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.111 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.110 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.109 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.108 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.107 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.106 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.105 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.104 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.103 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.102 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.101 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.100 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.0.97 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb