Sha256: a26d4dc0188d76139b1290f209d3c791612f11cbf740e8409a35a8537749b3c6

Contents?: true

Size: 1020 Bytes

Versions: 15

Compression:

Stored size: 1020 Bytes

Contents

<% if available_locales.length > 1 %>
  <div class="topbar__dropmenu language-choose">
    <ul class="dropdown menu" data-dropdown-menu
      data-autoclose="false"
      data-disable-hover="true"
      data-click-open="true"
      data-close-on-click="true"
      tabindex="-1">
      <li class="is-dropdown-submenu-parent" tabindex="-1">
        <%= link_to t("name", scope: "locale"), "#language-chooser-menu", id: "language-chooser-control", "aria-label": t("layouts.decidim.language_chooser.choose_language"), "aria-controls": "language-chooser-menu", "aria-haspopup": "true" %>
        <ul class="menu is-dropdown-submenu" id="language-chooser-menu" role="menu" aria-labelledby="language-chooser-control" tabindex="-1">
          <% (available_locales - [I18n.locale.to_s]).each do |locale| %>
            <li lang="<%= locale %>"><%= link_to locale_name(locale), decidim.locale_path(locale: locale), method: :post, tabindex: "-1" %></li>
          <% end %>
        </ul>
      </li>
    </ul>
  </div>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
decidim-core-0.24.3 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.23.6 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.24.2 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.23.5 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.24.1 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.24.0 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.24.0.rc2 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.23.4 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.24.0.rc1 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.23.3 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.23.2 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.23.1 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.23.1.rc1 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.23.0 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.22.0 app/views/layouts/decidim/_language_chooser.html.erb