Allow moderators to forcibly change the username of other users. This is so mods can change abusive or invalid usernames. * A mod can only change the username of Builder-level users and below. * The user can't change their own name again until one week has passed. * A modaction is logged when a mod changes a user's name. * A dmail is sent to the user notifying them of the change. * The dmail does not send the user an email notification. This is so we don't spam users if their name is changed after they're banned, or if they haven't visited the site in a long time. The rename button is on the user's profile page, and when you hover over the user's name and open the "..." menu.
30 lines
692 B
Plaintext
30 lines
692 B
Plaintext
<div id="c-user-name-change-requests">
|
|
<div id="a-show">
|
|
<h1>Name Change Request</h1>
|
|
|
|
<table class="aligned-vertical">
|
|
<tbody>
|
|
<tr>
|
|
<th>Date</th>
|
|
<td>
|
|
<%= compact_time @change_request.created_at %>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>User</th>
|
|
<td><%= link_to_user @change_request.user %></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Request</th>
|
|
<td>
|
|
<strong><%= @change_request.original_name %></strong> ->
|
|
<strong><%= @change_request.desired_name %></strong>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "secondary_links" %>
|