]> git.openstreetmap.org Git - rails.git/blob - app/views/user_blocks/_page.html.erb
Merge remote-tracking branch 'upstream/pull/6261'
[rails.git] / app / views / user_blocks / _page.html.erb
1 <turbo-frame id="pagination" target="_top" data-turbo="false">
2   <%= render "shared/pagination",
3              :translation_scope => "shared.pagination.user_blocks",
4              :newer_id => @newer_user_blocks_id,
5              :older_id => @older_user_blocks_id %>
6
7   <table id="block_list" class="table table-borderless table-striped table-sm">
8     <thead>
9       <tr>
10         <% if @show_user_name %>
11         <th><%= t ".display_name" %></th>
12         <% end %>
13         <% if @show_creator_name %>
14         <th><%= t ".creator_name" %></th>
15         <% end %>
16         <th><%= t ".reason" %></th>
17         <th><%= t ".start" %></th>
18         <th><%= t ".end" %></th>
19         <th><%= t ".status" %></th>
20         <th></th>
21         <th></th>
22       </tr>
23     </thead>
24     <%= render :partial => "user_blocks/block", :collection => @user_blocks %>
25   </table>
26
27   <%= render "shared/pagination",
28              :translation_scope => "shared.pagination.user_blocks",
29              :newer_id => @newer_user_blocks_id,
30              :older_id => @older_user_blocks_id %>
31 </turbo-frame>