1 <% @title = t('user.list.title') %>
3 <% content_for :heading do %>
4 <h1><%= t('user.list.heading') %></h1>
7 <% unless @users.empty? %>
9 <%= hidden_field_tag :status, params[:status] if params[:status] %>
10 <%= hidden_field_tag :ip, params[:ip] if params[:ip] %>
11 <%= hidden_field_tag :page, params[:page] if params[:page] %>
12 <table id="user_list">
15 <%= t 'user.list.showing',
16 :page => @user_pages.current_page.number,
17 :first_item => @user_pages.current_page.first_item,
18 :last_item => @user_pages.current_page.last_item,
19 :items => @user_pages.item_count,
20 :count => @user_pages.current_page.last_item - @user_pages.current_page.first_item + 1
22 <% if @user_pages.page_count > 1 %>
23 | <%= raw pagination_links_each(@user_pages, {}) { |n| link_to n, params.merge(:page => n) } %>
27 <%= check_box_tag "user_all", "1", false %>
30 <%= render :partial => 'user', :collection => @users %>
33 <div id="user_list_actions buttons">
34 <%= submit_tag t('user.list.confirm'), :name => "confirm" %>
35 <%= submit_tag t('user.list.hide'), :name => "hide" %>
38 <script type="text/javascript">
39 $("#user_all").change(function () {
40 $("#user_list input[type=checkbox]").prop("checked", $("#user_all").prop("checked"));
45 <p><%= t "user.list.empty" %></p>