">
<%= avatar(user, :size => "14") %><%= link_to h(user.login), edit_user_path(user) %> |
<%= h(user.firstname) %> |
<%= h(user.lastname) %> |
<%= mail_to(h(user.mail)) %> |
<%= checked_image user.admin? %> |
<%= format_time(user.created_on) %> |
<%= format_time(user.last_login_on) unless user.last_login_on.nil? %> |
<% occupation = user.user_extensions.identity == 0 ? School.where("id=?",user.user_extensions.school_id).first.try(:name) : user.user_extensions.occupation %>
<%= truncate( occupation, :length => 12 ) %> |
<%= change_status_link(user) %> |
<%= delete_link user_path(user, :back_url => admin_users_path(params)) unless User.current == user %> |
<% end -%>