users: reword ban notice messages.
* 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.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
<% end %>
|
||||
<% t.column "Duration" do |ban| %>
|
||||
<%= humanized_duration(ban.created_at, ban.expires_at) %>
|
||||
<%= humanized_duration(ban.duration) %>
|
||||
<% end %>
|
||||
<% t.column "Banner" do |ban| %>
|
||||
<%= link_to_user ban.banner %>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<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>Duration</strong> <%= humanized_duration(@ban.duration) %></li>
|
||||
<li>
|
||||
<strong>Reason</strong>
|
||||
<div class="prose">
|
||||
|
||||
Reference in New Issue
Block a user