2 <% if show_user_name %>
3 <td><%= link_to block.user.display_name, block.user %></td>
5 <% if show_creator_name %>
6 <td><%= link_to block.creator.display_name, block.creator %></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 and current_user.id == block.creator_id and block.active? %><%= link_to t(".edit"), edit_user_block_path(block) %><% end %></td>
19 <% if show_revoke_link %>
20 <td><% if block.active? %><%= link_to t(".revoke"), revoke_user_block_path(block) %><% end %></td>