Move profile-related settings to their own form

Refs #3167
This commit is contained in:
Andy Allan 2021-07-14 17:39:09 +01:00
parent 9b8f2bbcbe
commit caf2e2a242
11 changed files with 205 additions and 130 deletions

View file

@ -1657,6 +1657,29 @@ en:
update:
success: Preferences updated.
failure: Couldn't update preferences.
profiles:
edit:
title: Edit Profile
save: Update Profile
cancel: Cancel
image: Image
gravatar:
gravatar: "Use Gravatar"
link: "https://wiki.openstreetmap.org/wiki/Gravatar"
what_is_gravatar: "What is Gravatar?"
disabled: "Gravatar has been disabled."
enabled: "Display of your Gravatar has been enabled."
new image: "Add an image"
keep image: "Keep the current image"
delete image: "Remove the current image"
replace image: "Replace the current image"
image size hint: "(square images at least 100x100 work best)"
home location: "Home Location"
no home location: "You have not entered your home location."
update home location on click: "Update home location when I click on the map?"
update:
success: Profile updated.
failure: Couldn't update profile.
sessions:
new:
title: "Login"
@ -2461,6 +2484,7 @@ en:
my_preferences: My Preferences
blocks on me: Blocks on Me
blocks by me: Blocks by Me
edit_profile: Edit Profile
send message: Send Message
diary: Diary
edits: Edits
@ -2542,21 +2566,6 @@ en:
agreed_with_pd: "You have also declared that you consider your edits to be in the Public Domain."
link: "https://www.osmfoundation.org/wiki/License/Contributor_Terms"
link text: "what is this?"
image: Image
gravatar:
gravatar: "Use Gravatar"
link: "https://wiki.openstreetmap.org/wiki/Gravatar"
what_is_gravatar: "What is Gravatar?"
disabled: "Gravatar has been disabled."
enabled: "Display of your Gravatar has been enabled."
new image: "Add an image"
keep image: "Keep the current image"
delete image: "Remove the current image"
replace image: "Replace the current image"
image size hint: "(square images at least 100x100 work best)"
home location: "Home Location"
no home location: "You have not entered your home location."
update home location on click: "Update home location when I click on the map?"
save changes button: Save Changes
make edits public button: Make all my edits public
return to profile: Return to profile

View file

@ -241,6 +241,7 @@ OpenStreetMap::Application.routes.draw do
post "/user/:display_name/set_status" => "users#set_status", :as => :set_status_user
resource :preferences, :only => [:show, :edit, :update]
resource :profile, :only => [:edit, :update]
# friendships
match "/user/:display_name/make_friend" => "friendships#make_friend", :via => [:get, :post], :as => "make_friend"