]> git.openstreetmap.org Git - rails.git/blob - app/views/layouts/_select_language_list.html.erb
Allow export to redirect to tile.thunderforest.com
[rails.git] / app / views / layouts / _select_language_list.html.erb
1 <ul class="select_language_list list-unstyled column-gap-0">
2   <% AVAILABLE_LANGUAGES.each do |language| %>
3     <li>
4       <%= link_to({ :locale => language[:code] },
5                   { :class => ["btn btn-link text-start", { "bg-body-secondary text-secondary-emphasis" => language[:code] == I18n.locale.to_s }],
6                     :data => { :bs_dismiss => "modal",
7                                :language_code => language[:code] } }) do %>
8         <% if language[:short_native_name] %>
9           <%= language[:short_native_name] %>
10           <% if language[:short_native_note] %>
11             <small>(<%= language[:short_native_note] %>)</small>
12           <% end %>
13         <% else %>
14           <%= language[:native_name] %>
15         <% end %>
16       <% end %>
17     </li>
18   <% end %>
19 </ul>