From: Valery Sizov Date: Sun, 18 Dec 2011 16:09:59 +0000 (+0200) Subject: fix show token in profile X-Git-Tag: v2.0.0~10 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f09e15992fcb92b678b1a06e19801d93a306045c;p=wvm%2Fgitlab.git fix show token in profile --- diff --git a/app/views/profile/password.html.haml b/app/views/profile/password.html.haml index 18bae4b6a..0fd20ce2d 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" +