]> git.openstreetmap.org Git - rails.git/blob - app/views/user_blocks/_blocks.html.erb
8816acb1565a5dfb1a2c9dddb4abbc7f144715b7
[rails.git] / app / views / user_blocks / _blocks.html.erb
1 <turbo-frame id="pagination" target="_top">
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         <% if can?(:revoke, UserBlock) %>
17         <th></th>
18         <% end %>
19       </tr>
20     </thead>
21     <%= render :partial => "block", :collection => @user_blocks %>
22   </table>
23
24   <%= render "shared/pagination",
25              :newer_key => "user_blocks.blocks.newer",
26              :older_key => "user_blocks.blocks.older",
27              :newer_id => @newer_user_blocks_id,
28              :older_id => @older_user_blocks_id %>
29 </turbo-frame>