diff --git a/app/views/profile/password.html.haml b/app/views/profile/password.html.haml index 18bae4b6af08da896f1afca07d31abea9b523be5..0fd20ce2dba1e3b02d0d8d42aa366b1ec9230095 100644 --- a/app/views/profile/password.html.haml +++ b/app/views/profile/password.html.haml @@ -25,9 +25,16 @@ = form_for @user, :url => profile_reset_private_token_path, :method => :put do |f| %p Current private token: - %strong - = current_user.private_token - %em.cred - keep it in secret! + - if current_user.private_token + %strong + = current_user.private_token + %em.cred + keep it in secret! + - else + %strong don`t have .actions - = f.submit 'Reset', :confirm => "Are you sure?", :class => "grey-button" + - if current_user.private_token + = f.submit 'Reset', :confirm => "Are you sure?", :class => "grey-button" + - else + = f.submit 'Generate', :class => "grey-button" +