From 26698d6d267ab410d082a9b774b3ad5f9dc86b05 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 9 Aug 2021 18:29:54 +0100 Subject: [PATCH] Use correct link for users with no location Fixes #3290 --- app/views/users/show.html.erb | 2 +- config/locales/en.yml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index ac6938af7..1dd84edea 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -191,7 +191,7 @@
<% if @user.home_lat.nil? or @user.home_lon.nil? %>
-

<%= t(".if_set_location_html", :settings_link => (link_to t(".settings_link_text"), :controller => "users", :action => "account", :display_name => current_user.display_name)) %>

+

<%= t(".set_location_html", :edit_profile_url => edit_profile_path) %>

<% else %> <% content_for :head do %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 7dce96dd6..1b411a229 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2505,8 +2505,7 @@ en: spam score: "Spam Score:" description: Description user location: User location - if_set_location_html: "Set your home location on the %{settings_link} page to see nearby users." - settings_link_text: settings + set_location_html: "Edit your profile and set your home location to see nearby users." my friends: My friends no friends: You have not added any friends yet. km away: "%{count}km away" -- 2.43.2