2012-07-01 20:31:31 +02:00
|
|
|
<div class="box wide">
|
2012-07-04 03:48:01 +02:00
|
|
|
<div class="legend right">
|
|
|
|
<a href="/u/<%= @user.username %>">View Profile</a>
|
|
|
|
</div>
|
2012-07-01 20:31:31 +02:00
|
|
|
<div class="legend">
|
2012-07-04 03:48:01 +02:00
|
|
|
Account Settings
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|
2012-11-13 18:43:03 +01:00
|
|
|
|
2012-07-01 20:31:31 +02:00
|
|
|
<%= 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" %>
|
2012-07-04 03:48:01 +02:00
|
|
|
<%= f.text_field :username, :size => 15 %>
|
2012-07-01 20:31:31 +02:00
|
|
|
<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" %>
|
2012-07-04 03:48:01 +02:00
|
|
|
<%= f.password_field :password, :size => 40 %>
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|
2012-11-13 18:43:03 +01:00
|
|
|
|
2012-07-01 20:31:31 +02:00
|
|
|
<div class="boxline">
|
|
|
|
<%= f.label :password_confirmation, "Confirm Password:",
|
|
|
|
:class => "required" %>
|
2012-07-04 03:48:01 +02:00
|
|
|
<%= f.password_field :password_confirmation, :size => 40 %>
|
|
|
|
</div>
|
2012-11-13 18:43:03 +01:00
|
|
|
|
2012-07-04 03:48:01 +02:00
|
|
|
<div class="boxline">
|
|
|
|
<%= f.label :email, "E-mail Address:", :class => "required" %>
|
|
|
|
<%= f.text_field :email, :size => 40 %>
|
2012-09-09 02:37:30 +02:00
|
|
|
<span class="hint">
|
|
|
|
<a href="http://www.gravatar.com/" target="_blank">Gravatar</a>'ized
|
|
|
|
</span>
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|
2012-11-13 18:43:03 +01:00
|
|
|
|
2012-07-04 03:48:01 +02:00
|
|
|
<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>
|
|
|
|
|
2012-07-01 20:31:31 +02:00
|
|
|
<div class="boxline">
|
|
|
|
<%= f.label :about, "About:", :class => "required" %>
|
2012-07-10 19:16:10 +02:00
|
|
|
<%= f.text_area :about, :size => "100x5", :style => "width: 600px;" %>
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="box">
|
2012-07-10 19:16:10 +02:00
|
|
|
<div class="boxline markdown_help_toggler" style="margin-left: 9em;
|
|
|
|
width: 600px;">
|
2012-07-01 20:31:31 +02:00
|
|
|
<div class="markdown_help_label">
|
2012-07-10 19:16:10 +02:00
|
|
|
Markdown formatting available
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
|
|
|
|
<%= render :partial => "global/markdownhelp" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-11-13 18:43:03 +01:00
|
|
|
|
2012-07-01 20:31:31 +02:00
|
|
|
<div class="legend">
|
2012-07-04 03:48:01 +02:00
|
|
|
Comment Reply Notification Settings
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2012-07-04 03:48:01 +02:00
|
|
|
<%= f.label :email_replies, "Receive E-mail:", :class => "required" %>
|
2012-07-01 20:31:31 +02:00
|
|
|
<%= f.check_box :email_replies %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2012-09-16 22:51:25 +02:00
|
|
|
<%= f.label :pushover_replies, "Receive Pushover Alert:",
|
2012-07-04 03:48:01 +02:00
|
|
|
:class => "required" %>
|
2012-07-01 20:31:31 +02:00
|
|
|
<%= f.check_box :pushover_replies %>
|
2012-07-04 03:48:01 +02:00
|
|
|
<span class="hint">
|
|
|
|
Requires user key entered above
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2012-09-10 19:40:33 +02:00
|
|
|
<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">
|
2012-09-16 22:51:25 +02:00
|
|
|
<%= f.label :pushover_mentions, "Receive Pushover Alert:",
|
2012-09-10 19:40:33 +02:00
|
|
|
:class => "required" %>
|
|
|
|
<%= f.check_box :pushover_mentions %>
|
|
|
|
<span class="hint">
|
|
|
|
Requires user key entered above
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2012-07-04 03:48:01 +02:00
|
|
|
<div class="legend">
|
|
|
|
Private Message Notification Settings
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2012-07-04 03:48:01 +02:00
|
|
|
<%= f.label :email_messages, "Receive E-mail:", :class => "required" %>
|
|
|
|
<%= f.check_box :email_messages %>
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2012-09-16 22:51:25 +02:00
|
|
|
<%= f.label :pushover_messages, "Receive Pushover Alert:",
|
2012-07-01 20:31:31 +02:00
|
|
|
:class => "required" %>
|
2012-07-04 03:48:01 +02:00
|
|
|
<%= f.check_box :pushover_replies %>
|
|
|
|
<span class="hint">
|
|
|
|
Requires user key entered above
|
|
|
|
</span>
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|
|
|
|
|
2013-06-27 19:56:23 +02:00
|
|
|
<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">
|
|
|
|
<%= f.label :pushover_messages, "List Address:",
|
|
|
|
:class => "required" %>
|
|
|
|
<span>
|
|
|
|
<tt>lobsters-<%= @edit_user.mailing_list_token %>@lobste.rs</tt>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2012-07-01 20:31:31 +02:00
|
|
|
<br>
|
|
|
|
<%= f.submit "Save All Settings" %>
|
|
|
|
<% end %>
|
2012-11-13 18:43:03 +01:00
|
|
|
|
2012-07-04 03:48:01 +02:00
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
|
2012-11-22 05:04:18 +01:00
|
|
|
<a name="invite"></a>
|
2012-07-04 03:48:01 +02:00
|
|
|
<div class="legend">
|
|
|
|
Invite a New User
|
|
|
|
</div>
|
|
|
|
|
2013-02-22 21:52:22 +01:00
|
|
|
<%= render :partial => "users/invitationform" %>
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|