Move make_friend and remove_friend to friendships controller
This commit is contained in:
parent
59c90aa023
commit
8ebfdbc1ff
9 changed files with 88 additions and 74 deletions
|
@ -430,6 +430,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:
|
||||
|
@ -2271,17 +2283,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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue