]> git.openstreetmap.org Git - rails.git/blob - app/views/users/lists/_page.html.erb
Add links to days in user history from heatmap
[rails.git] / app / views / users / lists / _page.html.erb
1 <turbo-frame id="pagination" target="_top" data-turbo="false">
2   <% unless @users.empty? %>
3     <%= form_tag users_list_path, :method => :put do %>
4       <div class="row">
5         <div class="col">
6           <%= render "shared/pagination",
7                      :translation_scope => "shared.pagination.users",
8                      :newer_id => @newer_users_id,
9                      :older_id => @older_users_id %>
10         </div>
11         <div class="col col-auto">
12           <%= t ".found_users", :count => @users_count %>
13         </div>
14       <div>
15
16       <%= hidden_field_tag :status, params[:status] if params[:status] %>
17       <%= hidden_field_tag :username, params[:username] if params[:username] %>
18       <%= hidden_field_tag :ip, params[:ip] if params[:ip] %>
19       <%= hidden_field_tag :edits, params[:edits] if params[:edits] %>
20       <%= hidden_field_tag :page, params[:page] if params[:page] %>
21       <table id="user_list" class="table table-borderless table-striped">
22         <thead>
23           <tr>
24             <td colspan="2">
25             </td>
26             <td>
27               <%= check_box_tag "user_all", "1", false %>
28             </td>
29           </tr>
30         </thead>
31         <%= render :partial => "user", :collection => @users %>
32       </table>
33
34       <div class="row">
35         <div class="col">
36           <%= render "shared/pagination",
37                      :translation_scope => "shared.pagination.users",
38                      :newer_id => @newer_users_id,
39                      :older_id => @older_users_id %>
40         </div>
41         <div class="col col-auto">
42           <%= t ".found_users", :count => @users_count %>
43         </div>
44       <div>
45
46       <div>
47         <%= submit_tag t(".confirm"), :name => "confirm", :class => "btn btn-primary" %>
48         <%= submit_tag t(".hide"), :name => "hide", :class => "btn btn-primary" %>
49       </div>
50     <% end %>
51   <% else -%>
52     <p><%= t ".empty" %></p>
53   <% end -%>
54 </turbo-frame>