1 <% @title = t('user.list.title') %>
3 <h1><%= t('user.list.heading') %></h1>
5 <% unless @users.empty? %>
7 <%= hidden_field_tag :status, params[:status] if params[:status] %>
8 <%= hidden_field_tag :ip, params[:ip] if params[:ip] %>
9 <%= hidden_field_tag :page, params[:page] if params[:page] %>
10 <table id="user_list">
13 <%= t 'user.list.showing',
14 :page => @user_pages.current_page.number,
15 :first_item => @user_pages.current_page.first_item,
16 :last_item => @user_pages.current_page.last_item,
17 :items => @user_pages.item_count,
18 :count => @user_pages.current_page.last_item - @user_pages.current_page.first_item + 1
20 <% if @user_pages.page_count > 1 %>
21 | <%= raw pagination_links_each(@user_pages, {}) { |n| link_to n, params.merge(:page => n) } %>
25 <%= check_box_tag "user_all", "1", false %>
28 <%= render :partial => 'user', :collection => @users %>
31 <div id="user_list_actions">
32 <%= submit_tag t('user.list.confirm'), :name => "confirm" %>
33 <%= submit_tag t('user.list.hide'), :name => "hide" %>
36 <script type="text/javascript">
37 $("#user_all").change(function () {
38 $("#user_list input[type=checkbox]").prop("checked", $("#user_all").prop("checked"));
43 <p><%= t "user.list.empty" %></p>