2 <% if @show_user_name %>
3 <td><%= link_to block.user.display_name, block.user, :class => "username d-inline-block text-truncate text-wrap" %></td>
5 <% if @show_creator_name %>
6 <td><%= link_to block.creator.display_name, block.creator, :class => "username d-inline-block text-truncate text-wrap" %></td>
8 <td><%= h truncate(block.reason) %></td>
9 <td><%= h block_status(block) %></td>
11 <% if block.revoker_id.nil? %>
12 <%= t(".not_revoked") %>
14 <%= link_to block.revoker.display_name, block.revoker %>
17 <td><%= link_to t(".show"), block %></td>
18 <td><% if current_user && (current_user.id == block.creator_id ||
19 current_user.id == block.revoker_id) %><%= link_to t(".edit"), edit_user_block_path(block) %><% end %></td>
20 <% if can?(:revoke, UserBlock) %>
21 <td><% if block.active? %><%= link_to t(".revoke"), revoke_user_block_path(block) %><% end %></td>