Fix wrong page title when adding a user

Title still says "admin user" even though subsequent users are not admins.
Add a new string to correct this.
This commit is contained in:
Dan Rice 2012-10-26 17:18:19 -04:00
parent beaa069340
commit 504d03f989
2 changed files with 3 additions and 2 deletions

View file

@ -40,7 +40,7 @@ class UsersController < ApplicationController
end
if User.no_users_yet?
@page_title = t('users.new_user_title')
@page_title = t('users.first_user_title')
@heading = t('users.first_user_heading')
@user = get_new_user
elsif (@user && @user.is_admin?) || SITE_CONFIG['open_signups']

View file

@ -838,7 +838,8 @@ en:
label_auth_type: Authentication type
new_password_label: New password
you_have_to_reset_your_password: "You have to reset your password"
new_user_title: TRACKS::Sign up as the admin user
first_user_title: TRACKS::Sign up as the admin user
new_user_title: TRACKS::Sign up
destroy_user: Destroy user
total_users_count: You have a total of %{count} users
destroy_confirmation: "Warning: this will delete user '%{login}', all their actions, contexts, project and notes. Are you sure that you want to continue?"