Account Settings
<%= form_for @edit_user, :url => settings_url, :method => :post do |f| %>
<%= error_messages_for f.object %>
<%= f.label :username, "Username:", :class => "required" %>
<%= f.text_field :username, :size => 15 %>
[A-Za-z0-9][A-Za-z0-9_-]*
<%= f.label :password, "New Password:", :class => "required" %>
<%= f.password_field :password, :size => 40, :autocomplete => "off" %>
<%= f.label :password_confirmation, "Confirm Password:",
:class => "required" %>
<%= f.password_field :password_confirmation, :size => 40,
:autocomplete => "off" %>
<%= f.label :email, "E-mail Address:", :class => "required" %>
<%= f.text_field :email, :size => 40 %>
Gravatar 'ized
<%= f.label :pushover_user_key,
raw("
Pushover User Key:"),
:class => "required" %>
<%= f.text_field :pushover_user_key, :size => 40 %>
<%= f.label :pushover_device, "Pushover Device:",
:class => "required" %>
<%= f.text_field :pushover_device, :placeholder => "optional",
:size => 15 %>
<%= f.label :pushover_sound, "Pushover Sound:",
:class => "required" %>
<%= f.select :pushover_sound, Pushover.sounds.map{|k,v| [ v, k ] } %>
<%= f.label :about, "About:", :class => "required" %>
<%= f.text_area :about, :size => "100x5", :style => "width: 600px;" %>
Markdown formatting available
<%= render :partial => "global/markdownhelp" %>
Comment Reply Notification Settings
<%= f.label :email_replies, "Receive E-mail:", :class => "required" %>
<%= f.check_box :email_replies %>
<%= f.label :pushover_replies, "Receive Pushover Alert:",
:class => "required" %>
<%= f.check_box :pushover_replies %>
Requires user key entered above
Comment Mention Notification Settings
<%= f.label :email_mentions, "Receive E-mail:", :class => "required" %>
<%= f.check_box :email_mentions %>
<%= f.label :pushover_mentions, "Receive Pushover Alert:",
:class => "required" %>
<%= f.check_box :pushover_mentions %>
Requires user key entered above
Private Message Notification Settings
<%= f.label :email_messages, "Receive E-mail:", :class => "required" %>
<%= f.check_box :email_messages %>
<%= f.label :pushover_messages, "Receive Pushover Alert:",
:class => "required" %>
<%= f.check_box :pushover_messages %>
Requires user key entered above
Mailing List Settings
When enabled, you will receive all newly submitted stories and comments to
your e-mail address entered above, except those stories (and their
comments) filtered by your tag filters . All e-mail
messages will appear to be sent to your private list address shown below
which you can filter on, and e-mails you send to that address will be
posted under your account on this website. You should keep your unique
list address private to prevent others from posting comments as you.
<%= f.label :mailing_list_enabled, "Receive List E-mails:",
:class => "required" %>
<%= f.check_box :mailing_list_enabled%>
List Address:
<%= Rails.application.shortname %>-<%=
@edit_user.mailing_list_token %>@<%= Rails.application.domain %>
<%= f.submit "Save All Settings" %>
<% end %>
<%= form_for @edit_user, :url => delete_account_url, :method => :post do |f| %>
Delete Account
To permanently delete your account, verify your current password below.
Your account will be put into a deleted state, your comments will be marked
as deleted and no longer readable by any other users, and your private
messages will be deleted. Your submitted stories will not be deleted.
Your username will remain reserved and will not be available to use on any
other account.
<%= f.label :password, "Verify Password:", :class => "required" %>
<%= f.password_field :password, :size => 40, :autocomplete => "off" %>
<%= f.submit "Yes, Delete My Account" %>
<% end %>
Invite a New User
<%= render :partial => "users/invitationform" %>