* Show the ban length instead of the ban expiration date in ban notices. * Fix the ban notice to not say "Your account has been temporarily banned" when it's a permanent ban.
23 lines
600 B
Plaintext
23 lines
600 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.duration) %></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>
|