diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index b4429d20adf..07006508353 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -39,6 +39,18 @@ def edit authorize @user.profile if logged_in_as_admin? end + def change_email + @page_subtitle = t(".browser_title") + end + + def change_password + @page_subtitle = t(".browser_title") + end + + def change_username + @page_subtitle = t(".browser_title") + end + def changed_password unless params[:password] && reauthenticate render(:change_password) && return diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 599d6cc97a0..892a3b8fc47 100755 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -24,8 +24,8 @@ <% if defined?(@page_subtitle) %> <%= @page_subtitle %> <% else %> - <%= controller.action_name=="index" ? "" : process_title(controller.action_name) %> - <%= controller.action_name=="index" ? process_title(controller.controller_name) : process_title(controller.controller_name.singularize) %> + <%= controller.action_name == "index" ? "" : process_title(controller.action_name) %> + <%= controller.action_name == "index" ? process_title(controller.controller_name) : process_title(controller.controller_name.singularize) %> <% end %> | <%= ArchiveConfig.APP_NAME %> diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index e9be9398be9..fbdb5b3c71d 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -923,8 +923,13 @@ en: description: Recalculate the filters for this work based on the current set of tags. Use this option if wrangling seems to have gone wrong. (e.g. If you synned one of this work's tags to a canonical but it's not showing up in the tag listings, or if the wrong tags are listed in the sidebar when you drill down to a search that includes only this work.) title: Update Work Filters users: + change_email: + browser_title: Change Email + change_password: + browser_title: Change Password change_username: account_faq: Account FAQ + browser_title: Change Username caution: Please use this feature with caution. change_window: one: You can change your user name once per day.