<%= t('preferences.title') %>

<%= link_to t('preferences.edit_preferences') + " »", { :controller => 'preferences', :action => 'edit'}, :class => 'edit_link' %>

<%= t('preferences.token_header') %>

<%= t('preferences.token_description') %>:
<%= current_user.token %>
<%= button_to t('preferences.generate_new_token'), refresh_token_user_path(current_user), :confirm => t('preferences.generate_new_token_confirm') %>

<%= t('preferences.authentication_header') %>

<% if Tracks::Config.auth_schemes.length > 1 %>

<%= t('preferences.current_authentication_type', :auth_type => "#{current_user.auth_type}") %>.

<%= link_to(t('preferences.change_authentication_type') + " »", change_auth_type_user_path(current_user), :class => 'edit_link') %>
<% end %> <% if current_user.auth_type == 'database' %>
<%= link_to(t('preferences.change_password') + ' »', change_password_user_path(current_user)) %>
<% end %> <% if current_user.auth_type == 'open_id' %>

<%= t('preferences.open_id_url') %> <%= current_user.open_id_url %>.

<%= link_to(t('preferences.change_identity_url') + ' »', change_auth_type_user_path(current_user)) %>
<% end %>