Changes: * Change the `expires_at` field to `duration`. * Make moderators choose from a fixed set of standard ban lengths, instead of allowing arbitrary ban lengths. * List `duration` in seconds in the /bans.json API. * Dump bans to BigQuery. Note that some old bans have a negative duration. This is because their expiration date was before their creation date, which is because in 2013 bans were migrated to Danbooru 2 and the original ban creation dates were lost.
23 lines
619 B
Plaintext
23 lines
619 B
Plaintext
<% page_title "Ban: #{@ban.user.pretty_name}" %>
|
|
<%= render "secondary_links" %>
|
|
|
|
<div id="c-bans">
|
|
<div id="a-show">
|
|
<h1>Show Ban</h1>
|
|
<ul style="margin-bottom: 1em;">
|
|
<li><strong>User</strong> <%= link_to_user(@ban.user) %></li>
|
|
<li><strong>Duration</strong> <%= humanized_duration(@ban.created_at, @ban.expires_at) %></li>
|
|
<li>
|
|
<strong>Reason</strong>
|
|
<div class="prose">
|
|
<%= format_text @ban.reason %>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
|
|
<%= form_tag(ban_path(@ban), :method => :delete) do %>
|
|
<%= submit_tag "Unban" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|