message for closed signups on users#sign_in

This commit is contained in:
danielvincent 2010-11-23 11:14:06 -08:00
parent ec41ace9bf
commit efab6449b3
2 changed files with 4 additions and 0 deletions

View file

@ -4,6 +4,9 @@
- if !APP_CONFIG[:registrations_closed] && devise_mapping.registerable? && controller_name != 'registrations'
= link_to t('.sign_up'), new_registration_path(resource_name)
%br/
- else
%b= t('.sign_up_closed')
%br/
- if devise_mapping.recoverable? && controller_name != 'passwords'
= link_to t('.forgot_your_password'), new_password_path(resource_name)
%br/

View file

@ -84,6 +84,7 @@ en:
links:
sign_in: 'Sign in'
sign_up: 'Sign up'
sign_up_closed: 'Open signups are closed at this time.'
forgot_your_password: 'Forgot your password?'
receive_confirmation: "Didn't receive confirmation instructions?"
receive_unlock: "Didn't receive unlock instructions?"