[openstreetmap/openstreetmap-website] Language selection enhancements (PR #6412)

mmd notifications at github.com
Mon Sep 22 20:36:49 UTC 2025


@mmd-osm commented on this pull request.



> @@ -116,15 +116,21 @@
         <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="<%= t "javascripts.close" %>"></button>
       </div>
       <div class="modal-body px-1">
-        <% if current_user&.id %>
-          <%= form_tag basic_preferences_path, :method => "PUT" do %>
-            <%= hidden_field_tag "referer", request.fullpath %>
-            <%= hidden_field_tag "language", I18n.locale %>
-            <%= render "layouts/select_language_list" %>
-          <% end %>
-        <% else %>
-          <%= render "layouts/select_language_list" %>
-        <% end %>
+        <div class="mb-3 px-2">

That's exactly how I started out, then I thought if the /panes/languages list is supposed to return a clean list of language links, why should the search field belong in there. I'm really undecided here which option makes more sense.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6412#discussion_r2370246197
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6412/review/3255108896 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250922/565dd10d/attachment-0001.htm>


More information about the rails-dev mailing list