Sha256: ccb81c94d4670edf3494b0c75c18ae996fc8dea8e6a84422d01f8ff709c137de

Contents?: true

Size: 1.03 KB

Versions: 7

Compression:

Stored size: 1.03 KB

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"
      role="menubar">
      <li class="is-dropdown-submenu-parent" role="presentation">
        <%= 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", role: "menuitem" %>
        <ul class="menu is-dropdown-submenu" id="language-chooser-menu" role="menu" aria-labelledby="language-chooser-control">
          <% (available_locales - [I18n.locale.to_s]).each do |locale| %>
            <li lang="<%= locale %>" role="presentation"><%= link_to locale_name(locale), decidim.locale_path(locale: locale), method: :post, role: "menuitem" %></li>
          <% end %>
        </ul>
      </li>
    </ul>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-core-0.25.2 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.25.1 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.25.0 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.25.0.rc4 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.25.0.rc3 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.25.0.rc2 app/views/layouts/decidim/_language_chooser.html.erb
decidim-core-0.25.0.rc1 app/views/layouts/decidim/_language_chooser.html.erb