Split user preferences into a separate page

Refs #3167
This commit is contained in:
Andy Allan 2021-06-30 18:02:42 +01:00
parent 459a798f45
commit 2403630da8
11 changed files with 146 additions and 42 deletions

View file

@ -1644,6 +1644,19 @@ en:
reset: "Reset Password"
flash changed: "Your password has been changed."
flash token bad: "Did not find that token, check the URL maybe?"
preferences:
show:
title: My Preferences
preferred_editor: Preferred Editor
preferred_languages: Preferred Languages
edit_preferences: Edit Preferences
edit:
title: Edit Preferences
save: Update Preferences
cancel: Cancel
update:
success: Preferences updated.
failure: Couldn't update preferences.
sessions:
new:
title: "Login"
@ -2445,6 +2458,7 @@ en:
my profile: My Profile
my settings: My Settings
my comments: My Comments
my_preferences: My Preferences
blocks on me: Blocks on Me
blocks by me: Blocks by Me
send message: Send Message

View file

@ -240,6 +240,8 @@ OpenStreetMap::Application.routes.draw do
match "/user/:display_name/account" => "users#account", :via => [:get, :post], :as => "user_account"
post "/user/:display_name/set_status" => "users#set_status", :as => :set_status_user
resource :preferences, :only => [:show, :edit, :update]
# 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"