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']