]> git.openstreetmap.org Git - rails.git/blob - app/views/user_blocks/_blocks.html.erb
b0b4fa13f3971988c3b812c492f18d0951192e87
[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              :translation_scope => "shared.pagination.user_blocks",
23              :newer_id => @newer_user_blocks_id,
24              :older_id => @older_user_blocks_id %>
25 </turbo-frame>