[openstreetmap/openstreetmap-website] Add links to diaries in preferred languages (PR #4451)

Anton Khorev notifications at github.com
Wed Jan 3 10:31:04 UTC 2024


@AntonKhorev commented on this pull request.



>  
-            <% if @user && @user == current_user || !@user && current_user %>
-              <li><%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
-            <% end %>
+          <% @languages&.each do |language| %>

What I originally wanted to do is to move the "New Diary Entry" to the end, but I decided not to do it in the same pull request.

I moved it now:

![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/719155aa-32b7-4f21-b90d-4d6c8d79252e)


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

Message ID: <openstreetmap/openstreetmap-website/pull/4451/review/1801742574 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240103/a1a1f124/attachment.htm>


More information about the rails-dev mailing list