Commit f09e15992fcb92b678b1a06e19801d93a306045c
1 parent
10df55e1
Exists in
master
and in
4 other branches
fix show token in profile
Showing
1 changed file
with
12 additions
and
5 deletions
Show diff stats
app/views/profile/password.html.haml
| ... | ... | @@ -25,9 +25,16 @@ |
| 25 | 25 | = form_for @user, :url => profile_reset_private_token_path, :method => :put do |f| |
| 26 | 26 | %p |
| 27 | 27 | Current private token: |
| 28 | - %strong | |
| 29 | - = current_user.private_token | |
| 30 | - %em.cred | |
| 31 | - keep it in secret! | |
| 28 | + - if current_user.private_token | |
| 29 | + %strong | |
| 30 | + = current_user.private_token | |
| 31 | + %em.cred | |
| 32 | + keep it in secret! | |
| 33 | + - else | |
| 34 | + %strong don`t have | |
| 32 | 35 | .actions |
| 33 | - = f.submit 'Reset', :confirm => "Are you sure?", :class => "grey-button" | |
| 36 | + - if current_user.private_token | |
| 37 | + = f.submit 'Reset', :confirm => "Are you sure?", :class => "grey-button" | |
| 38 | + - else | |
| 39 | + = f.submit 'Generate', :class => "grey-button" | |
| 40 | + | ... | ... |