2012-01-29 22:59:12 +01:00
|
|
|
%h3 Password
|
|
|
|
%hr
|
|
|
|
= form_for @user, :url => profile_password_path, :method => :put do |f|
|
|
|
|
.data
|
2012-02-18 14:59:01 +01:00
|
|
|
.alert-message.block-message.warning
|
|
|
|
%p After successfull password update you will be redirected to login page where you should login with new password
|
2012-01-29 22:59:12 +01:00
|
|
|
-if @user.errors.any?
|
2012-02-18 14:59:01 +01:00
|
|
|
.alert-message.block-message.error
|
2012-01-29 22:59:12 +01:00
|
|
|
%ul
|
|
|
|
- @user.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2012-01-29 22:59:12 +01:00
|
|
|
.clearfix
|
|
|
|
= f.label :password
|
|
|
|
.input= f.password_field :password
|
|
|
|
.clearfix
|
|
|
|
= f.label :password_confirmation
|
|
|
|
.input= f.password_field :password_confirmation
|
|
|
|
.actions
|
|
|
|
= f.submit 'Save', :class => "btn"
|
|
|
|
|
|
|
|
%h3
|
|
|
|
Private token
|
|
|
|
%span.cred.right
|
|
|
|
keep it in secret!
|
|
|
|
%hr
|
|
|
|
= form_for @user, :url => profile_reset_private_token_path, :method => :put do |f|
|
|
|
|
.data
|
|
|
|
%p Private token used to access application resources without authentication.
|
|
|
|
%p For example its required to access commits feed.
|
|
|
|
%hr
|
|
|
|
%p.cgray
|
2011-12-19 22:32:59 +01:00
|
|
|
- if current_user.private_token
|
2012-01-29 22:59:12 +01:00
|
|
|
= text_field_tag "token", current_user.private_token
|
2011-12-19 22:32:59 +01:00
|
|
|
- else
|
2012-01-29 22:59:12 +01:00
|
|
|
You don`t have one yet. Click generate to fix it.
|
|
|
|
.actions
|
|
|
|
- if current_user.private_token
|
|
|
|
= f.submit 'Reset', :confirm => "Are you sure?", :class => "btn"
|
|
|
|
- else
|
|
|
|
= f.submit 'Generate', :class => "btn"
|
2011-12-18 17:09:59 +01:00
|
|
|
|