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