implements user name change requests

This commit is contained in:
albert
2013-03-26 18:13:03 -04:00
parent 7939ce2a98
commit a9be96ce8b
12 changed files with 179 additions and 12 deletions

View File

@@ -97,6 +97,13 @@
</td>
</tr>
<% if CurrentUser.user.is_janitor? && presenter.previous_names.present? %>
<tr>
<th>Previous Names</th>
<td><%= presenter.previous_names %></td>
</tr>
<% end %>
<% if CurrentUser.user.id == user.id %>
<tr>
<th>API Key</th>

View File

@@ -5,9 +5,15 @@
<%= simple_form_for @user do |f| %>
<fieldset>
<legend>Basic Settings</legend>
<div class="input">
<label>Name</label>
<p>Name changes are not supported. <%= link_to "Read why", name_change_path %>.</p>
<% if CurrentUser.user.is_privileged? %>
<p><%= link_to "Request a name change", new_user_name_change_request_path %></p>
<% else %>
<p>You must <%= link_to "upgrade your account", upgrade_information_users_path %> to request a name change</p>
<% end %>
</div>
<%= f.input :email, :required => Danbooru.config.enable_email_verification?, :hint => "Used for messages and for password resets", :as => :email %>
<%= f.input :time_zone, :include_blank => false %>

View File

@@ -39,8 +39,8 @@
</tr>
<tr>
<td>Favorite Limit</td>
<td>10,000</td>
<td>20,000</td>
<td>40,000</td>
<td>Unlimited</td>
</tr>
<tr>
@@ -80,7 +80,13 @@
<td>9 sec</td>
</tr>
<tr>
<td>50 or 100 Posts Per Page</td>
<td>Variable Posts Per Page</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>Name Changes</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>