Files
danbooru/app/views/bans/edit.html.erb
evazion 81fe68d392 bans: change expires_at field to duration.
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.
2021-03-11 02:59:58 -06:00

10 lines
146 B
Plaintext

<div id="c-bans">
<div id="a-edit">
<h1>Edit Ban</h1>
<%= render "form", ban: @ban %>
</div>
</div>
<%= render "secondary_links" %>