fix show token in profile
This commit is contained in:
parent
10df55e11d
commit
f09e15992f
1 changed files with 12 additions and 5 deletions
|
@ -25,9 +25,16 @@
|
||||||
= form_for @user, :url => profile_reset_private_token_path, :method => :put do |f|
|
= form_for @user, :url => profile_reset_private_token_path, :method => :put do |f|
|
||||||
%p
|
%p
|
||||||
Current private token:
|
Current private token:
|
||||||
%strong
|
- if current_user.private_token
|
||||||
= current_user.private_token
|
%strong
|
||||||
%em.cred
|
= current_user.private_token
|
||||||
keep it in secret!
|
%em.cred
|
||||||
|
keep it in secret!
|
||||||
|
- else
|
||||||
|
%strong don`t have
|
||||||
.actions
|
.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"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue