Sha256: cae1cf642af0af4aa14bdba8e65c766654d3038cd04b5d558020bcb1f97c069d

Contents?: true

Size: 1.09 KB

Versions: 71

Compression:

Stored size: 1.09 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--block Vlt-dropdown__trigger--btn">
      <%= button_tag type: :button, class: "Vlt-btn Vlt-btn--secondary Vlt-btn--app Vlt-grey", disabled: presenter.disabled? do %>
        <span class="Vlt-dropdown__selection">
          <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 <%= locale.value == presenter.current_locale ? 'Vlt-dropdown__link--selected' : '' %>" data-locale="<%= locale.data %>" role="link">
              <span class="Vlt-dropdown__label">
                <%= locale.value %>
              </span>
            </div>
          <% end %>
        </div>
      </div>
    <% end %>
  </div>
<% end %>

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
station-0.5.16 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.15 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.14 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.13 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.12 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.11 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.10 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.9 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.8 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.7 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.6 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.5 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.4 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.3 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.2 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.1 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.5.0 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.4.9 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.4.8 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb
station-0.4.7 lib/nexmo_developer/app/views/layouts/partials/_locale_switcher.html.erb