<% if users.present? %> <% users.each do |user| %> <% end %> <% else %> <%= render 'cooperative/shared/no_data_for_table' %> <% end %>
真实姓名 邮件地址 手机号码 单位 角色 <%= sort_tag('创建于', name: 'created_on', path: cooperative_users_path) %> <%= sort_tag('最后登录', name: 'last_login_on', path: cooperative_users_path) %> <%= sort_tag('经验值', name: 'experience', path: cooperative_users_path) %> <%= sort_tag('金币', name: 'grade', path: cooperative_users_path) %>
<%= link_to "/users/#{user.login}", target: '_blank' do %> <%= overflow_hidden_span user.real_name, width: 100 %> <% end %> <%= overflow_hidden_span display_text(user.mail), width: 150 %> <%= overflow_hidden_span display_text(user.phone), width: 100 %> <%= overflow_hidden_span display_text(user.school_name), width: 150 %> <%= user.identity %> <%= display_text(user.created_on&.strftime('%Y-%m-%d %H:%M')) %> <%= display_text(user.last_login_on&.strftime('%Y-%m-%d %H:%M')) %> <%= user.experience.to_i %> <%= user.grade.to_i %>
<%= render partial: 'cooperative/shared/paginate', locals: { objects: users } %>