From 2f40eff2c22ccd4148c2422788ac215370bb97ec Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sun, 17 Mar 2024 23:51:25 +0300 Subject: [PATCH] Change "people mapping nearby" empty inbox/outbox link to dashboard --- app/views/messages/inbox.html.erb | 2 +- app/views/messages/outbox.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 %> -- 2.39.5