]> git.openstreetmap.org Git - rails.git/blob - app/views/user_blocks/_blocks.html.erb
Remove nil ApiCapability user branch
[rails.git] / app / views / user_blocks / _blocks.html.erb
1 <turbo-frame id="pagination" target="_top" data-turbo="false">
2   <table id="block_list" class="table table-borderless table-striped table-sm">
3     <thead>
4       <tr>
5         <% if @show_user_name %>
6         <th><%= t ".display_name" %></th>
7         <% end %>
8         <% if @show_creator_name %>
9         <th><%= t ".creator_name" %></th>
10         <% end %>
11         <th><%= t ".reason" %></th>
12         <th><%= t ".status" %></th>
13         <th><%= t ".revoker_name" %></th>
14         <th></th>
15         <th></th>
16       </tr>
17     </thead>
18     <%= render :partial => "block", :collection => @user_blocks %>
19   </table>
20
21   <%= render "shared/pagination",
22              :newer_key => "user_blocks.blocks.newer",
23              :older_key => "user_blocks.blocks.older",
24              :newer_id => @newer_user_blocks_id,
25              :older_id => @older_user_blocks_id %>
26 </turbo-frame>