<%= t('preferences.title') %>
- <%= User.human_attribute_name('first_name') %>: <%= current_user.first_name %>
- <%= User.human_attribute_name('last_name') %>: <%= current_user.last_name %>
- <%= Preference.human_attribute_name('date_format') %>: <%= current_user.prefs.date_format %> Your current date: <%= format_date(current_user.time) %>
- <%= Preference.human_attribute_name('locale') %>: <%= current_user.prefs.locale %>
- <%= Preference.human_attribute_name('title_date_format') %>: <%= current_user.prefs.title_date_format %> Your current title date: <%= current_user.time.strftime(current_user.prefs.title_date_format) %>
- <%= Preference.human_attribute_name('time_zone') %>: <%= current_user.prefs.time_zone %> Your current time: <%= current_user.time.strftime('%I:%M %p') %>
- <%= Preference.human_attribute_name('week_starts') %>: <%= t('date.day_names')[current_user.prefs.week_starts] %>
- <%= t('preferences.show_number_completed', :number=> "#{current_user.prefs.show_number_completed}")%>
- <%= Preference.human_attribute_name('show_completed_projects_in_sidebar') %>: <%= current_user.prefs.show_completed_projects_in_sidebar %>
- <%= Preference.human_attribute_name('show_hidden_projects_in_sidebar') %>: <%= current_user.prefs.show_hidden_projects_in_sidebar %>
- <%= Preference.human_attribute_name('show_hidden_contexts_in_sidebar') %>: <%= current_user.prefs.show_hidden_contexts_in_sidebar %>
- <%= Preference.human_attribute_name('show_project_on_todo_done') %>: <%= current_user.prefs.show_project_on_todo_done %>
- <%= t('preferences.staleness_starts_after', :days => "#{current_user.prefs.staleness_starts}") %>
- <%= Preference.human_attribute_name('due_style') %>:
<% if prefs.due_style == Preference.due_styles[:due_in_n_days] %>
<%= t('models.preference.due_styles')[0] %>
<% else %>
<%= t('models.preference.due_styles')[1] %>
<% end %>
<% if current_user.is_admin? %>
- <%= Preference.human_attribute_name('admin_email') %>: <%= current_user.prefs.admin_email %>
<% end %>
- <%= Preference.human_attribute_name('refresh') %>: <%= current_user.prefs.refresh %>
- <%= Preference.human_attribute_name('verbose_action_descriptors') %>: <%= current_user.prefs.verbose_action_descriptors %>
- <%= Preference.human_attribute_name('mobile_todos_per_page') %>: <%= current_user.prefs.mobile_todos_per_page %>
- <%= Preference.human_attribute_name('sms_email') %>: <%= current_user.prefs.sms_email %>
- <%= Preference.human_attribute_name('sms_context') %>: <%= current_user.prefs.sms_context.nil? ? t('preferences.sms_context_none') : current_user.prefs.sms_context.name %>
<%= 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 %>