]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user_blocks/_block.html.erb
Use turbo for pagination
[rails.git] / app / views / user_blocks / _block.html.erb
index 5444bdd5b8c66c21d61c6c8e307e53faca7fb75f..68850c28dfb22bd50d9c04ed3bc9fd84d058c288 100644 (file)
@@ -1,8 +1,8 @@
 <tr>
-  <% if show_user_name %>
+  <% if @show_user_name %>
   <td><%= link_to block.user.display_name, block.user, :class => "username d-inline-block text-truncate text-wrap" %></td>
   <% end %>
-  <% if show_creator_name %>
+  <% if @show_creator_name %>
   <td><%= link_to block.creator.display_name, block.creator, :class => "username d-inline-block text-truncate text-wrap" %></td>
   <% end %>
   <td><%= h truncate(block.reason) %></td>
@@ -17,7 +17,7 @@
   <td><%= link_to t(".show"), block %></td>
   <td><% if current_user && (current_user.id == block.creator_id ||
                              current_user.id == block.revoker_id) %><%= link_to t(".edit"), edit_user_block_path(block) %><% end %></td>
-  <% if show_revoke_link %>
+  <% if can?(:revoke, UserBlock) %>
   <td><% if block.active? %><%= link_to t(".revoke"), revoke_user_block_path(block) %><% end %></td>
   <% end %>
 </tr>