From: Anton Khorev Date: Sun, 17 Mar 2024 20:51:25 +0000 (+0300) Subject: Change "people mapping nearby" empty inbox/outbox link to dashboard X-Git-Tag: live~738^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/2f40eff2c22ccd4148c2422788ac215370bb97ec Change "people mapping nearby" empty inbox/outbox link to dashboard --- diff --git a/app/views/messages/inbox.html.erb b/app/views/messages/inbox.html.erb index 4d6be787b..611b0b1c9 100644 --- a/app/views/messages/inbox.html.erb +++ b/app/views/messages/inbox.html.erb @@ -9,5 +9,5 @@ <% if current_user.messages.size > 0 %> <%= render :partial => "messages_table", :locals => { :columns => %w[from subject date], :messages => current_user.messages, :inner_partial => "message_summary" } %> <% else %> -
<%= t(".no_messages_yet_html", :people_mapping_nearby_link => link_to(t(".people_mapping_nearby"), user_path(current_user))) %>
+
<%= t(".no_messages_yet_html", :people_mapping_nearby_link => link_to(t(".people_mapping_nearby"), dashboard_path)) %>
<% end %> diff --git a/app/views/messages/outbox.html.erb b/app/views/messages/outbox.html.erb index 65fbaf326..096427e8d 100644 --- a/app/views/messages/outbox.html.erb +++ b/app/views/messages/outbox.html.erb @@ -9,5 +9,5 @@ <% if current_user.sent_messages.size > 0 %> <%= render :partial => "messages_table", :locals => { :columns => %w[to subject date], :messages => current_user.sent_messages, :inner_partial => "sent_message_summary" } %> <% else %> -
<%= t(".no_sent_messages_html", :people_mapping_nearby_link => link_to(t(".people_mapping_nearby"), user_path(current_user))) %>
+
<%= t(".no_sent_messages_html", :people_mapping_nearby_link => link_to(t(".people_mapping_nearby"), dashboard_path)) %>
<% end %>