Merge remote-tracking branch 'upstream/pull/2642'

This commit is contained in:
Tom Hughes 2020-06-04 17:40:13 +01:00
commit 293fe68eff
13 changed files with 298 additions and 277 deletions

View file

@ -431,6 +431,18 @@ en:
comment: Comment
newer_comments: "Newer Comments"
older_comments: "Older Comments"
friendships:
make_friend:
heading: "Add %{user} as a friend?"
button: "Add as friend"
success: "%{name} is now your friend!"
failed: "Sorry, failed to add %{name} as a friend."
already_a_friend: "You are already friends with %{name}."
remove_friend:
heading: "Unfriend %{user}?"
button: "Unfriend"
success: "%{name} was removed from your friends."
not_a_friend: "%{name} is not one of your friends."
geocoder:
search:
title:
@ -1191,7 +1203,7 @@ en:
hi: "Hi %{to_user},"
header: "%{from_user} has sent you a message through OpenStreetMap with the subject %{subject}:"
footer_html: "You can also read the message at %{readurl} and you can reply at %{replyurl}"
friend_notification:
friendship_notification:
hi: "Hi %{to_user},"
subject: "[OpenStreetMap] %{user} added you as a friend"
had_added_you: "%{user} has added you as a friend on OpenStreetMap."
@ -2272,17 +2284,6 @@ en:
flash success: "Home location saved successfully"
go_public:
flash success: "All your edits are now public, and you are now allowed to edit."
make_friend:
heading: "Add %{user} as a friend?"
button: "Add as friend"
success: "%{name} is now your friend!"
failed: "Sorry, failed to add %{name} as a friend."
already_a_friend: "You are already friends with %{name}."
remove_friend:
heading: "Unfriend %{user}?"
button: "Unfriend"
success: "%{name} was removed from your friends."
not_a_friend: "%{name} is not one of your friends."
index:
title: Users
heading: Users

View file

@ -236,12 +236,14 @@ OpenStreetMap::Application.routes.draw do
# user pages
get "/user/:display_name" => "users#show", :as => "user"
match "/user/:display_name/make_friend" => "users#make_friend", :via => [:get, :post], :as => "make_friend"
match "/user/:display_name/remove_friend" => "users#remove_friend", :via => [:get, :post], :as => "remove_friend"
match "/user/:display_name/account" => "users#account", :via => [:get, :post], :as => "user_account"
get "/user/:display_name/set_status" => "users#set_status", :as => :set_status_user
get "/user/:display_name/delete" => "users#delete", :as => :delete_user
# friendships
match "/user/:display_name/make_friend" => "friendships#make_friend", :via => [:get, :post], :as => "make_friend"
match "/user/:display_name/remove_friend" => "friendships#remove_friend", :via => [:get, :post], :as => "remove_friend"
# user lists
match "/users" => "users#index", :via => [:get, :post]
match "/users/:status" => "users#index", :via => [:get, :post]