2012-07-01 20:31:31 +02:00
|
|
|
<div class="box wide">
|
2012-07-04 03:48:01 +02:00
|
|
|
<div class="legend right">
|
2016-07-09 14:31:09 +02:00
|
|
|
<a href="/u/<%= @user.username %>"><%= t('.viewprofile') %></a>
|
2013-12-24 00:15:58 +01:00
|
|
|
</div>
|
|
|
|
<div class="legend">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.accountsettings') %>
|
2012-07-04 03:48:01 +02:00
|
|
|
</div>
|
2012-11-13 18:43:03 +01:00
|
|
|
|
2015-01-03 00:02:55 +01:00
|
|
|
<%= form_for @edit_user, :url => settings_path, :method => :post,
|
2014-02-12 20:14:25 +01:00
|
|
|
:html => { :id => "edit_user" } do |f| %>
|
2012-07-01 20:31:31 +02:00
|
|
|
<%= error_messages_for f.object %>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :username, t('.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">
|
2017-05-23 10:35:14 +02:00
|
|
|
<tt><%= User.username_regex_s %></tt>
|
2012-07-01 20:31:31 +02:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2017-05-17 19:36:41 +02:00
|
|
|
<div class="boxline">
|
|
|
|
<%= label_tag :current_password, t('.currentpassword'),
|
|
|
|
:class => "required" %>
|
|
|
|
<%= password_field_tag :current_password, nil, :size => 40 %>
|
|
|
|
</div>
|
|
|
|
|
2012-07-01 20:31:31 +02:00
|
|
|
<div class="boxline">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :password, t('.password'), :class => "required" %>
|
2014-01-07 18:41:07 +01:00
|
|
|
<%= f.password_field :password, :size => 40, :autocomplete => "off" %>
|
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">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :password_confirmation, t('.confirmpassword'),
|
2012-07-01 20:31:31 +02:00
|
|
|
:class => "required" %>
|
2014-01-07 18:41:07 +01:00
|
|
|
<%= f.password_field :password_confirmation, :size => 40,
|
|
|
|
:autocomplete => "off" %>
|
2012-07-04 03:48:01 +02:00
|
|
|
</div>
|
2012-11-13 18:43:03 +01:00
|
|
|
|
2012-07-04 03:48:01 +02:00
|
|
|
<div class="boxline">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :email, t('.emailaddress'), :class => "required" %>
|
2017-05-18 19:14:01 +02:00
|
|
|
<%= f.email_field :email, :size => 40 %>
|
2012-09-09 02:37:30 +02:00
|
|
|
<span class="hint">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= raw(t('.gravatarized')) %>
|
2012-09-09 02:37:30 +02:00
|
|
|
</span>
|
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">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :about, t('.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">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.markdownformattingavailable') %>
|
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
|
|
|
|
2015-01-15 18:05:28 +01:00
|
|
|
<p>
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.submit t('.saveaccountsettings') %>
|
2015-01-15 18:05:28 +01:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2017-05-17 11:29:54 +02:00
|
|
|
<div class="legend">
|
2017-05-17 16:43:49 +02:00
|
|
|
<%= t('.securitysettings') %>
|
2017-05-17 11:29:54 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2017-05-17 16:43:49 +02:00
|
|
|
<%= f.label :twofa, t('.twofactorauth'), :class => "required" %>
|
2017-05-17 11:29:54 +02:00
|
|
|
<span>
|
|
|
|
<% if @edit_user.totp_secret.present? %>
|
|
|
|
<span style="color: green; font-weight: bold;">
|
2017-05-17 18:13:24 +02:00
|
|
|
<%= t('.enabled2fa') %>
|
2017-05-17 16:43:49 +02:00
|
|
|
</span> (<a href="/settings/2fa"><%= t('.disable2fa') %></a>)
|
2017-05-17 11:29:54 +02:00
|
|
|
<% else %>
|
2017-05-17 16:43:49 +02:00
|
|
|
<%= t('.disabled2fa') %> (<a href="/settings/2fa"><%= t('.enroll2fa') %></a>)
|
2017-05-17 11:29:54 +02:00
|
|
|
<% end %>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2012-07-01 20:31:31 +02:00
|
|
|
<div class="legend">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.commentreplynotificationsettings') %>
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :email_replies, t('.receiveemail'), :class => "required" %>
|
2012-07-01 20:31:31 +02:00
|
|
|
<%= f.check_box :email_replies %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :pushover_replies, t('.receivepushover'),
|
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">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.requirepushover') %>
|
2012-07-04 03:48:01 +02:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2012-09-10 19:40:33 +02:00
|
|
|
<div class="legend">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.commentmentionnotificationsettings') %>
|
2012-09-10 19:40:33 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :email_mentions, t('.receiveemail'), :class => "required" %>
|
2012-09-10 19:40:33 +02:00
|
|
|
<%= f.check_box :email_mentions %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :pushover_mentions, t('.receivepushover'),
|
2012-09-10 19:40:33 +02:00
|
|
|
:class => "required" %>
|
|
|
|
<%= f.check_box :pushover_mentions %>
|
|
|
|
<span class="hint">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.requirepushover') %>
|
2012-09-10 19:40:33 +02:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2012-07-04 03:48:01 +02:00
|
|
|
<div class="legend">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.privatemessagenotificationsettings') %>
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :email_messages, t('.receiveemail'), :class => "required" %>
|
2012-07-04 03:48:01 +02:00
|
|
|
<%= f.check_box :email_messages %>
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :pushover_messages, t('.receivepushover'),
|
2012-07-01 20:31:31 +02:00
|
|
|
:class => "required" %>
|
2014-02-02 20:49:34 +01:00
|
|
|
<%= f.check_box :pushover_messages %>
|
2012-07-04 03:48:01 +02:00
|
|
|
<span class="hint">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.requirepushover') %>
|
2012-07-04 03:48:01 +02:00
|
|
|
</span>
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|
|
|
|
|
2013-06-27 19:56:23 +02:00
|
|
|
<br>
|
|
|
|
|
2015-12-07 19:25:23 +01:00
|
|
|
<div class="legend">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.submittedstorycommentsettings') %>
|
2015-12-07 19:25:23 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
|
|
|
<%= f.label :show_submitted_story_threads,
|
2016-07-09 14:31:09 +02:00
|
|
|
raw(t('.showyourthreads')),
|
2016-03-09 17:00:14 +01:00
|
|
|
:class => "required" %>
|
2015-12-07 19:25:23 +01:00
|
|
|
<%= f.check_box :show_submitted_story_threads %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2013-06-27 19:56:23 +02:00
|
|
|
<div class="legend">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.mailinglistsettings') %>
|
2013-06-27 19:56:23 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<p>
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= raw(t('.mailinglisttext')) %>
|
2013-06-27 19:56:23 +02:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :mailing_list_mode, t('.receivelistemails'),
|
2013-06-27 19:56:23 +02:00
|
|
|
:class => "required" %>
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.select :mailing_list_mode, [ [ t('.listemailoption1'), 0 ],
|
|
|
|
[ t('.listemailoption2'), 1 ], [ t('.listemailoption3'), 2 ] ] %>
|
2013-06-27 19:56:23 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2016-07-09 14:31:09 +02:00
|
|
|
<label class="required"><%= t('.listaddress') %></label>
|
2013-06-27 19:56:23 +02:00
|
|
|
<span>
|
2013-06-30 08:29:51 +02:00
|
|
|
<tt><%= Rails.application.shortname %>-<%=
|
|
|
|
@edit_user.mailing_list_token %>@<%= Rails.application.domain %></tt>
|
2013-06-27 19:56:23 +02:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2015-03-13 05:17:30 +01:00
|
|
|
<br>
|
|
|
|
|
|
|
|
<div class="legend">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.miscsettings') %>
|
2015-03-13 05:17:30 +01:00
|
|
|
</div>
|
|
|
|
|
2015-07-31 00:56:09 +02:00
|
|
|
<div class="boxline">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :show_story_previews, t('.storypreview'),
|
2015-07-31 00:56:09 +02:00
|
|
|
:class => "required" %>
|
|
|
|
<%= f.check_box :show_story_previews %>
|
|
|
|
</div>
|
|
|
|
|
2015-07-31 20:06:42 +02:00
|
|
|
<div class="boxline">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :show_avatars, t('.useravatars'), :class => "required" %>
|
2015-07-31 20:06:42 +02:00
|
|
|
<%= f.check_box :show_avatars %>
|
|
|
|
</div>
|
|
|
|
|
2017-05-17 10:23:25 +02:00
|
|
|
<div class="boxline">
|
|
|
|
<%= f.label :hide_dragons, "Hide Dragons:", :class => "required" %>
|
|
|
|
<%= f.check_box :hide_dragons %>
|
|
|
|
</div>
|
2015-01-15 18:05:28 +01:00
|
|
|
|
2012-07-01 20:31:31 +02:00
|
|
|
<br>
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.submit t('.saveallsettings') %>
|
2012-07-01 20:31:31 +02:00
|
|
|
<% end %>
|
2012-11-13 18:43:03 +01:00
|
|
|
|
2012-07-04 03:48:01 +02:00
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
|
2017-05-20 13:33:46 +02:00
|
|
|
<div class="legend">
|
|
|
|
External Accounts
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if Pushover.enabled? %>
|
|
|
|
<div class="boxline">
|
|
|
|
<%= label_tag :pushover_user_key,
|
|
|
|
raw("<a href=\"https://pushover.net/\">Pushover</a>:"),
|
|
|
|
:class => "required" %>
|
|
|
|
<%= link_to((@edit_user.pushover_user_key.present??
|
|
|
|
"Manage Pushover Subscription" : "Subscribe With Pushover"),
|
|
|
|
"/settings/pushover_auth", :class => "pushover_button",
|
|
|
|
:method => :post) %>
|
|
|
|
<span class="hint">
|
|
|
|
For optional comment and message notifications above
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if Github.enabled? %>
|
|
|
|
<div class="boxline">
|
|
|
|
<%= label_tag :github_username, "GitHub:", :class => "required" %>
|
|
|
|
<% if @edit_user.github_username.present? %>
|
|
|
|
Linked to
|
|
|
|
<strong><a href="https://github.com/<%= h(@edit_user.github_username)
|
|
|
|
%>"><%= h(@edit_user.github_username) %></a></strong>
|
|
|
|
(<%= link_to "Disconnect", "/settings/github_disconnect",
|
|
|
|
:method => :post %>)
|
|
|
|
<% else %>
|
|
|
|
<a href="/settings/github_auth">Connect</a>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
|
2016-03-09 17:00:14 +01:00
|
|
|
<a name="invite"></a>
|
|
|
|
<div class="legend">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.inviteuser') %>
|
2016-03-09 17:00:14 +01:00
|
|
|
</div>
|
|
|
|
|
2016-05-15 20:19:47 +02:00
|
|
|
<% if @user.can_invite? %>
|
|
|
|
<%= render :partial => "users/invitationform" %>
|
|
|
|
<% else %>
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.cannotsendinvitations') %>
|
2016-05-15 20:19:47 +02:00
|
|
|
<% end %>
|
2016-03-09 17:00:14 +01:00
|
|
|
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
|
2015-01-03 00:02:55 +01:00
|
|
|
<%= form_for @edit_user, :url => delete_account_path, :method => :post,
|
2014-02-12 20:14:25 +01:00
|
|
|
:html => { :id => "delete_user" } do |f| %>
|
2014-01-13 17:12:17 +01:00
|
|
|
<div class="legend">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.deleteaccount') %>
|
2014-01-13 17:12:17 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<p>
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= t('.deleteaccounttext') %>
|
2014-01-13 17:12:17 +01:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.label :password, t('.verifypassword'), :class => "required" %>
|
2014-01-13 17:12:17 +01:00
|
|
|
<%= f.password_field :password, :size => 40, :autocomplete => "off" %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
2016-07-09 14:31:09 +02:00
|
|
|
<%= f.submit t('.deleteaccountconfirmation') %>
|
2014-01-13 17:12:17 +01:00
|
|
|
<% end %>
|
2012-07-01 20:31:31 +02:00
|
|
|
</div>
|