[openstreetmap/openstreetmap-website] Separate forms for preferences and profile (#3257)
Andy Allan
notifications at github.com
Wed Jul 21 18:11:30 UTC 2021
@gravitystorm commented on this pull request.
> +
+<dl class="row">
+ <dt class="col-sm-4"><%= t ".preferred_editor" %></dt>
+
+ <% if current_user.preferred_editor? %>
+ <dd class="col-sm-8"><%= t("editor.#{current_user.preferred_editor}.description") %></dd>
+ <% else %>
+ <dd class="col-sm-8"><%= t("editor.default", :name => t("editor.#{Settings.default_editor}.name")) %></dd>
+ <% end %>
+
+ <dt class="col-sm-4"><%= t ".preferred_languages" %></dt>
+
+ <dd class="col-sm-8">
+ <ul>
+ <% current_user.preferred_languages.each do |locale| %>
+ <li><%= locale %></li>
Done.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3257#discussion_r674218360
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210721/f9a052f2/attachment.htm>
More information about the rails-dev
mailing list