2 <% c1 = cycle('table0', 'table1') %>
4 <% if show_user_name %>
5 <td class="<%= c1 %>"><%= link_to h(block.user.display_name), :controller => 'user', :action => 'view', :display_name => block.user.display_name %></td>
7 <% if show_creator_name %>
8 <td class="<%= c1 %>"><%= link_to h(block.creator.display_name), :controller => 'user', :action => 'view', :display_name => block.creator.display_name %></td>
10 <td class="<%= c1 %>"><%=h truncate(block.reason) %></td>
11 <td class="<%= c1 %>"><%=h block_status(block) %></td>
12 <td class="<%= c1 %>">
13 <% if block.revoker_id.nil? %>
14 <%= t('user_block.partial.not_revoked') %>
16 <%= link_to h(block.revoker.display_name), :controller => 'user', :action => 'view', :display_name => block.revoker.display_name %>
19 <td class="<%= c1 %>"><%= link_to t('user_block.partial.show'), block %></td>
20 <td class="<%= c1 %>"><% if @user and @user.id == block.creator_id and block.active? %><%= link_to t('user_block.partial.edit'), edit_user_block_path(block) %><% end %></td>
21 <% if show_revoke_link %>
22 <td class="<%= c1 %>"><% if block.active? %><%= link_to t('user_block.partial.revoke'), block, :confirm => t('user_block.partial.confirm'), :action => :revoke %><% end %></td>