Your preferences
- First name: <%= current_user.first_name %>
- Last name: <%= current_user.last_name %>
- Date format: <%= prefs.date_format %> Your current date: <%= format_date(current_user.time) %>
- Title date format: <%= prefs.title_date_format %> Your current title date: <%= current_user.time.strftime(prefs.title_date_format) %>
- Time zone: <%= prefs.time_zone %> Your current time: <%= current_user.time.strftime('%I:%M %p') %>
- Week starts on: <%= Preference.day_number_to_name_map[prefs.week_starts] %>
- Show the last <%= prefs.show_number_completed %> completed items
- Show completed projects in sidebar: <%= prefs.show_completed_projects_in_sidebar %>
- Show hidden projects in sidebar: <%= prefs.show_hidden_projects_in_sidebar %>
- Show hidden contexts in sidebar: <%= prefs.show_hidden_contexts_in_sidebar %>
- Go to project page on todo complete: <%= prefs.show_project_on_todo_done %>
- Staleness starts after <%= prefs.staleness_starts %> days
- Due style:
<% if prefs.due_style == Preference.due_styles[:due_in_n_days] %>
Due in ___ days
<% else %>
Due on ________
<% end %>
<% if current_user.is_admin? %>
- Admin email: <%= prefs.admin_email %>
<% end %>
- Refresh interval (in minutes): <%= prefs.refresh %>
- Verbose action descriptors: <%= prefs.verbose_action_descriptors %>
- Actions per page (Mobile View): <%= prefs.mobile_todos_per_page %>
- From email: <%= prefs.sms_email %>
- Default email context: <%= prefs.sms_context.nil? ? "None" : prefs.sms_context.name %>
<%= link_to "Edit preferences »", { :controller => 'preferences', :action => 'edit'}, :class => 'edit_link' %>
Your token
Token (for feeds and API use):
<%= current_user.token %>
<%= button_to "Generate a new token", refresh_token_user_path(current_user),
:confirm => "Are you sure? Generating a new token will replace the existing one and break any external usages of this token." %>
Your authentication
<% if Tracks::Config.auth_schemes.length > 1 %>
Your authentication type is <%= current_user.auth_type %>.
<%= link_to "Change your authentication type »", change_auth_type_user_path(current_user), :class => 'edit_link' %>
<% end %>
<% if current_user.auth_type == 'database' %>
<%= link_to 'Change your password »', change_password_user_path(current_user) %>
<% end %>
<% if current_user.auth_type == 'open_id' %>
Your Open ID URL is <%= current_user.open_id_url %>.
<%= link_to 'Change Your Identity URL »', change_auth_type_user_path(current_user) %>
<% end %>