<%= t('.viewprofile') %>
|
<%= link_to t('.logoutlink'), { :controller => "login", :action => "logout" },
:data => { :confirm => t('.confirmlogoutlink') },
:method => "post" %>
<%= t('.accountsettings') %>
<%= form_for @edit_user, :url => settings_path, :method => :post,
:html => { :id => "edit_user" } do |f| %>
<%= error_messages_for f.object %>
<%= f.label :username, t('.username'), :class => "required" %>
<%= f.text_field :username, :size => 15 %>
<%= User.username_regex_s %>
<%= label_tag :current_password, t('.currentpassword'),
:class => "required" %>
<%= password_field_tag :current_password, nil, :size => 40 %>
<%= f.label :password, t('.password'), :class => "required" %>
<%= f.password_field :password, :size => 40, :autocomplete => "off" %>
<%= f.label :password_confirmation, t('.confirmpassword'),
:class => "required" %>
<%= f.password_field :password_confirmation, :size => 40,
:autocomplete => "off" %>
<%= f.label :email, t('.emailaddress'), :class => "required" %>
<%= f.email_field :email, :size => 40 %>
<%= raw(t('.gravatarized')) %>
<%= f.label :about, t('.about'), :class => "required" %>
<%= f.text_area :about, :size => "100x5", :style => "width: 600px;" %>
<%= t('.markdownformattingavailable') %>
<%= render :partial => "global/markdownhelp" %>
<%= f.submit t('.saveaccountsettings') %>
<%= t('.securitysettings') %>
<%= f.label :twofa, t('.twofactorauth'), :class => "required" %>
<% if @edit_user.totp_secret.present? %>
<%= t('.enabled2fa') %>
(<%= t('.disable2fa') %>)
<% else %>
<%= t('.disabled2fa') %> (<%= t('.enroll2fa') %>)
<% end %>
<%= t('.commentreplynotificationsettings') %>
<%= f.label :email_replies, t('.receiveemail'), :class => "required" %>
<%= f.check_box :email_replies %>
<%= f.label :pushover_replies, t('.receivepushover'),
:class => "required" %>
<%= f.check_box :pushover_replies %>
<%= t('.requirepushover') %>
<%= t('.commentmentionnotificationsettings') %>
<%= f.label :email_mentions, t('.receiveemail'), :class => "required" %>
<%= f.check_box :email_mentions %>
<%= f.label :pushover_mentions, t('.receivepushover'),
:class => "required" %>
<%= f.check_box :pushover_mentions %>
<%= t('.requirepushover') %>
<%= t('.privatemessagenotificationsettings') %>
<%= f.label :email_messages, t('.receiveemail'), :class => "required" %>
<%= f.check_box :email_messages %>
<%= f.label :pushover_messages, t('.receivepushover'),
:class => "required" %>
<%= f.check_box :pushover_messages %>
<%= t('.requirepushover') %>
<%= t('.submittedstorycommentsettings') %>
<%= f.label :show_submitted_story_threads,
raw(t('.showyourthreads')),
:class => "required" %>
<%= f.check_box :show_submitted_story_threads %>
<%= t('.mailinglistsettings') %>
<%= raw(t('.mailinglisttext')) %>
<%= f.label :mailing_list_mode, t('.receivelistemails'),
:class => "required" %>
<%= f.select :mailing_list_mode, [ [ t('.listemailoption1'), 0 ],
[ t('.listemailoption2'), 1 ], [ t('.listemailoption3'), 2 ] ] %>
<%= Rails.application.shortname %>-<%=
@edit_user.mailing_list_token %>@<%= Rails.application.domain %>
<%= t('.miscsettings') %>
<%= f.label :show_story_previews, t('.storypreview'),
:class => "required" %>
<%= f.check_box :show_story_previews %>
<%= f.label :show_avatars, t('.useravatars'), :class => "required" %>
<%= f.check_box :show_avatars %>
<%= f.label :hide_dragons, t('.hidedragons'), :class => "required" %>
<%= f.check_box :hide_dragons %>
<%= f.label :theme, t('.theme'), :class => "required" %>
<%= f.select :theme, [
["Light", "light"],
["Dark", "dark"],
["Neo Dark", "neo_dark"],
["Solarized Dark", "solarized_dark"]
]%>
<%= f.submit t('.saveallsettings') %>
<% end %>
<%= t('.externalaccounts') %>
<% if Pushover.enabled? %>
<%= label_tag :pushover_user_key,
raw("
Pushover:"),
:class => "required" %>
<%= link_to((@edit_user.pushover_user_key.present??
"Manage Pushover Subscription" : "Subscribe With Pushover"),
"/settings/pushover_auth", :class => "pushover_button",
:method => :post) %>
For optional comment and message notifications above
<% end %>
<% if Github.enabled? %>
<%= label_tag :github_username, "GitHub:", :class => "required" %>
<% if @edit_user.github_username.present? %>
Linked to
<%= h(@edit_user.github_username) %>
(<%= link_to "Disconnect", "/settings/github_disconnect",
:method => :post %>)
<% else %>
Connect
<% end %>
<% end %>
<% if Twitter.enabled? %>
<%= label_tag :twitter_username, "Twitter:", :class => "required" %>
<% if @edit_user.twitter_username.present? %>
Linked to
@<%= h(@edit_user.twitter_username) %>
(<%= link_to "Disconnect", "/settings/twitter_disconnect",
:method => :post %>)
<% else %>
Connect
<% end %>
<% end %>
<%= t('.inviteuser') %>
<% if @user.can_invite? %>
<%= render :partial => "users/invitationform" %>
<% else %>
<%= t('.cannotsendinvitations') %>
<% end %>
<%= form_for @edit_user, :url => delete_account_path, :method => :post,
:html => { :id => "delete_user" } do |f| %>
<%= t('.deleteaccount') %>
<%= t('.deleteaccounttext') %>
<%= f.label :password, t('.verifypassword'), :class => "required" %>
<%= f.password_field :password, :size => 40, :autocomplete => "off" %>
<%= f.submit t('.deleteaccountconfirmation') %>
<% end %>