206 lines
5.8 KiB
Plaintext
206 lines
5.8 KiB
Plaintext
<div class="box wide">
|
|
<div class="legend right">
|
|
<a href="/u/<%= @user.username %>">View Profile</a>
|
|
</div>
|
|
<div class="legend">
|
|
Account Settings
|
|
</div>
|
|
|
|
<%= form_for @edit_user, :url => settings_url, :method => :post do |f| %>
|
|
<%= error_messages_for f.object %>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :username, "Username:", :class => "required" %>
|
|
<%= f.text_field :username, :size => 15 %>
|
|
<span class="hint">
|
|
<tt>[A-Za-z0-9][A-Za-z0-9_-]*</tt>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :password, "New Password:", :class => "required" %>
|
|
<%= f.password_field :password, :size => 40, :autocomplete => "off" %>
|
|
</div>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :password_confirmation, "Confirm Password:",
|
|
:class => "required" %>
|
|
<%= f.password_field :password_confirmation, :size => 40,
|
|
:autocomplete => "off" %>
|
|
</div>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :email, "E-mail Address:", :class => "required" %>
|
|
<%= f.text_field :email, :size => 40 %>
|
|
<span class="hint">
|
|
<a href="http://www.gravatar.com/" target="_blank">Gravatar</a>'ized
|
|
</span>
|
|
</div>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :pushover_user_key,
|
|
raw("<a href=\"https://pushover.net/\">Pushover</a> User Key:"),
|
|
:class => "required" %>
|
|
<%= f.text_field :pushover_user_key, :size => 40 %>
|
|
</div>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :pushover_device, "Pushover Device:",
|
|
:class => "required" %>
|
|
<%= f.text_field :pushover_device, :placeholder => "optional",
|
|
:size => 15 %>
|
|
</div>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :pushover_sound, "Pushover Sound:",
|
|
:class => "required" %>
|
|
<%= f.select :pushover_sound, Pushover.sounds.map{|k,v| [ v, k ] } %>
|
|
</div>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :about, "About:", :class => "required" %>
|
|
<%= f.text_area :about, :size => "100x5", :style => "width: 600px;" %>
|
|
</div>
|
|
|
|
<div class="box">
|
|
<div class="boxline markdown_help_toggler" style="margin-left: 9em;
|
|
width: 600px;">
|
|
<div class="markdown_help_label">
|
|
Markdown formatting available
|
|
</div>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<%= render :partial => "global/markdownhelp" %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="legend">
|
|
Comment Reply Notification Settings
|
|
</div>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :email_replies, "Receive E-mail:", :class => "required" %>
|
|
<%= f.check_box :email_replies %>
|
|
</div>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :pushover_replies, "Receive Pushover Alert:",
|
|
:class => "required" %>
|
|
<%= f.check_box :pushover_replies %>
|
|
<span class="hint">
|
|
Requires user key entered above
|
|
</span>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="legend">
|
|
Comment Mention Notification Settings
|
|
</div>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :email_mentions, "Receive E-mail:", :class => "required" %>
|
|
<%= f.check_box :email_mentions %>
|
|
</div>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :pushover_mentions, "Receive Pushover Alert:",
|
|
:class => "required" %>
|
|
<%= f.check_box :pushover_mentions %>
|
|
<span class="hint">
|
|
Requires user key entered above
|
|
</span>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="legend">
|
|
Private Message Notification Settings
|
|
</div>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :email_messages, "Receive E-mail:", :class => "required" %>
|
|
<%= f.check_box :email_messages %>
|
|
</div>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :pushover_messages, "Receive Pushover Alert:",
|
|
:class => "required" %>
|
|
<%= f.check_box :pushover_messages %>
|
|
<span class="hint">
|
|
Requires user key entered above
|
|
</span>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="legend">
|
|
Mailing List Settings
|
|
</div>
|
|
|
|
<p>
|
|
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 <a href="/filters">tag filters</a>. 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.
|
|
</p>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :mailing_list_enabled, "Receive List E-mails:",
|
|
:class => "required" %>
|
|
<%= f.check_box :mailing_list_enabled%>
|
|
</div>
|
|
|
|
<div class="boxline">
|
|
<label class="required">List Address:</label>
|
|
<span>
|
|
<tt><%= Rails.application.shortname %>-<%=
|
|
@edit_user.mailing_list_token %>@<%= Rails.application.domain %></tt>
|
|
</span>
|
|
</div>
|
|
|
|
<br>
|
|
<%= f.submit "Save All Settings" %>
|
|
<% end %>
|
|
|
|
<br>
|
|
<br>
|
|
|
|
<%= form_for @edit_user, :url => delete_account_url, :method => :post do |f| %>
|
|
<div class="legend">
|
|
Delete Account
|
|
</div>
|
|
|
|
<p>
|
|
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.
|
|
</p>
|
|
|
|
<div class="boxline">
|
|
<%= f.label :password, "Verify Password:", :class => "required" %>
|
|
<%= f.password_field :password, :size => 40, :autocomplete => "off" %>
|
|
</div>
|
|
|
|
<br>
|
|
<%= f.submit "Yes, Delete My Account" %>
|
|
<% end %>
|
|
|
|
<br>
|
|
<br>
|
|
|
|
<a name="invite"></a>
|
|
<div class="legend">
|
|
Invite a New User
|
|
</div>
|
|
|
|
<%= render :partial => "users/invitationform" %>
|
|
</div>
|