<% #-- # Copyright (C) 2012 Gitorious AS # Copyright (C) 2009 Fabio Akita # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 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 Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #++ %> <%= content_for(:sidebar) do %> <% if controller.is_a? Admin::UsersController -%> <% end -%> <% end %> <% if controller.is_a? Admin::UsersController -%>

<%= link_to t("views.layout.admin"), '' %>

<% end -%> <% @users.each do |user| -%> "> <% if user.suspended? -%> <% else -%> <% end -%> <% end -%>
<%= t(:login, :scope => "activerecord.attributes.user").humanize %> <%= t(:email, :scope => "activerecord.attributes.user").humanize %> <%= t(:created_at, :scope => "activerecord.attributes.user").humanize %> <%= t("views.users.activated") %> <%= t("views.users.suspended") %> <%= t("views.users.admin") %>
<%= link_to h(user.login), user %> <%= link_to user.email, "mailto:#{user.email}" %> <%= l(user.created_at, :format => :short) %> <%= user.activated? ? l(user.activated_at, :format => :short) : t("views.common.no") %> <%= user.suspended? ? l(user.suspended_at, :format => :short) : t("views.common.no") %> <%= link_to (site_admin?(user) ? t("views.common.yes") : t("views.common.no")), flip_admin_status_admin_user_path(user), :confirm => t("views.common.confirm"), :method => :put %> <%= link_to t("views.users.unsuspend"), unsuspend_admin_user_path(user), :confirm => t("views.common.confirm"), :method => :put %><%= link_to t("views.users.suspend"), suspend_admin_user_path(user), :confirm => t("views.common.confirm"), :method => :put %><%= link_to t("views.users.reset_pwd"), reset_password_admin_user_path(user), :confirm => t("views.common.confirm"), :method => :put %>
<%= render_pagination_links @users -%>