/bans: add "»" links for narrowing search by user.
This commit is contained in:
@@ -16,8 +16,14 @@
|
||||
<tbody>
|
||||
<% @bans.each do |ban| %>
|
||||
<tr id="ban-<%= ban.id %>" data-expired="<%= ban.expired? %>">
|
||||
<td><%= link_to_user(ban.user) %></td>
|
||||
<td><%= link_to_user(ban.banner) %></td>
|
||||
<td>
|
||||
<%= link_to_user(ban.user) %>
|
||||
<%= link_to "»", bans_path(search: params[:search].merge(user_name: ban.user.name)) %>
|
||||
</td>
|
||||
<td>
|
||||
<%= link_to_user(ban.banner) %>
|
||||
<%= link_to "»", bans_path(search: params[:search].merge(banner_name: ban.banner.name)) %>
|
||||
</td>
|
||||
<td><%= time_ago_in_words_tagged(ban.created_at) %></td>
|
||||
<td><%= humanized_duration(ban.created_at, ban.expires_at) %></td>
|
||||
<td class="col-expand"><%= format_text ban.reason, :ragel => true %></td>
|
||||
|
||||
Reference in New Issue
Block a user