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

This commit is contained in:
Tom Hughes 2022-02-16 18:13:16 +00:00
commit 1f8df781be
10 changed files with 142 additions and 5 deletions

View file

@ -239,6 +239,24 @@ en:
entry:
comment: Comment
full: Full note
account:
deletions:
show:
title: Delete My Account
warning: Warning! The account deletion process is final, and cannot be reversed.
delete_account: Delete Account
delete_introduction: "You can delete your OpenStreetMap account using the button below. Please note the following details:"
delete_profile: Your profile information, including your avatar, description and home location will be removed.
delete_display_name: Your display name will be removed, and can be reused by other accounts.
retain_caveats: "However, some information about you will be retained on OpenStreetMap, even after your account is deleted:"
retain_edits: Your edits to the map database, if any, will be retained.
retain_traces: Your uploaded traces, if any, will be retained.
retain_diary_entries: Your diary entries and diary comments, if any, will be retained but hidden from view.
retain_notes: Your map notes and note comments, if any, will be retained but hidden from view.
retain_changeset_discussions: Your changeset discussions, if any, will be retained.
retain_email: Your email address will be retained.
confirm_delete: Are you sure?
cancel: Cancel
accounts:
edit:
title: "Edit account"
@ -268,9 +286,12 @@ en:
link text: "what is this?"
save changes button: Save Changes
make edits public button: Make all my edits public
delete_account: Delete Account...
update:
success_confirm_needed: "User information updated successfully. Check your email for a note to confirm your new email address."
success: "User information updated successfully."
destroy:
success: "Account Deleted."
browse:
created: "Created"
closed: "Closed"

View file

@ -240,7 +240,11 @@ OpenStreetMap::Application.routes.draw do
get "/user/:display_name/account", :to => redirect(:path => "/account/edit")
post "/user/:display_name/set_status" => "users#set_status", :as => :set_status_user
resource :account, :only => [:edit, :update]
resource :account, :only => [:edit, :update, :destroy]
namespace :account do
resource :deletion, :only => [:show]
end
resource :dashboard, :only => [:show]
resource :preferences, :only => [:show, :edit, :update]
resource :profile, :only => [:edit, :update]