<%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2015 the OpenProject Foundation (OPF) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: Copyright (C) 2006-2013 Jean-Philippe Lang Copyright (C) 2010-2013 the ChiliProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. See doc/COPYRIGHT.rdoc for more details. ++#%> <% content_for :action_menu_specific do %> <% unless OpenProject::Configuration.disable_password_login? %> <%= link_to l(:label_user_new), {:action => 'new'}, :class => 'icon icon-add' %> <% end %> <%= call_hook(:user_admin_action_menu) %> <% end %>

<%=l(:label_user_plural)%>

<%= render :partial => 'layouts/action_menu_specific' %> <%= form_tag({}, :method => :get) do %>
<%= l(:label_filter_plural) %>
<%= submit_tag l(:button_apply), :class => 'button -highlight -small', :name => nil %> <%= link_to l(:button_clear), users_path, :class => 'button -small icon icon-undo' %>
<% end %>  
<%= sort_header_tag('login', :caption => User.human_attribute_name(:login)) %> <%= sort_header_tag('firstname', :caption => User.human_attribute_name(:firstname)) %> <%= sort_header_tag('lastname', :caption => User.human_attribute_name(:lastname)) %> <%= sort_header_tag('mail', :caption => User.human_attribute_name(:mail)) %> <%= sort_header_tag('admin', :caption => User.human_attribute_name(:admin), :default_order => 'desc') %> <%= sort_header_tag('created_on', :caption => User.human_attribute_name(:created_on), :default_order => 'desc') %> <%= sort_header_tag('last_login_on', :caption => User.human_attribute_name(:last_login_on), :default_order => 'desc') %> <% for user in @users -%> <%= %w(anon active registered locked)[user.status] %> <%= 'blocked' if user.failed_too_many_recent_login_attempts? %>"> <% end -%>
<%= User.human_attribute_name(:status) %>
<%= avatar(user, class: 'avatar-mini') %><%= link_to h(user.login), edit_user_path(user) %> <%= h(user.firstname) %> <%= h(user.lastname) %> <%= checked_image user.admin? %> <%= format_time(user.created_on) %> <%= full_user_status(user) %> <%= change_user_status_links(user) unless user.id == current_user.id %>
<%= pagination_links_full @users %> <% html_title(l(:label_user_plural)) -%>