Show More
Commit Description:
* DRY the toggle button via application_helper.rb#toggle_button and _toggle_button.js.haml...
Commit Description:
* DRY the toggle button via application_helper.rb#toggle_button and _toggle_button.js.haml * bootrapize the user_admin * now considering user.enabled * tidy up route
File last commit:
Show/Diff file:
Action:
app/views/users/confirm.html.haml | 17 lines | 524 B | text/x-haml | HamlLexer |
- if @result == :successful
%h1
=t 'registration.activation_sucessful_title'
=t 'registration.account_activated'
%br/
=t 'go_ahead_to'
= link_to((t 'login_page'), {:controller => 'main', :action => 'login'})
- else
%h1
=t 'registration.activation_failed_title'
- if @result == :email_used
=t 'registration.errors.activation.email_exists'
- else
=t 'registration.errors.activation.invalid'
%br/
=t 'go_back_to'
= link_to((t 'home_page'), {:controller => 'main', :action => 'login'})