37 lines
1.5 KiB
Plaintext
37 lines
1.5 KiB
Plaintext
<% if @members.count > 0 %>
|
|
<table class="sy_new_table clearfix" cellpadding="0" cellspacing="0">
|
|
<thead>
|
|
<tr class="clearfix">
|
|
<th style="width:50px;">序号</th>
|
|
<th style="width:150px">姓名</th>
|
|
<th style="width:150px;">登录名</th>
|
|
<th style="width:368px; ">单位</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @members.each_with_index do |member, index| %>
|
|
<% user = member.user %>
|
|
<tr class="clearfix">
|
|
<td><%= index + 1%></td>
|
|
<td>
|
|
<%= link_to image_tag(url_to_avatar(user), :width => "30", :height => "30", :style => "display: block;"), user_path(user), :class => 'sy_class_users_st fl mt5 mr5' ,:alt => "用户头像", :target => '_blank' %>
|
|
<%= link_to user.show_name, user_path(user), :class => 'fl sy_class_users_st_name ml5', :style => "width: 105px; text-align: left;", :title => "#{user.show_name}", :target => '_blank' %>
|
|
<div class="cl"></div>
|
|
</td>
|
|
<td><span class="sy_new_name ml15" ><%= user.login%></span></td>
|
|
<td><%=user.user_extensions.school ? user.user_extensions.school.name : '--' %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<div style="text-align:center;">
|
|
<div class="pages" style="width:auto; display:inline-block;">
|
|
<ul id="homework_pository_ref_pages">
|
|
<%= pagination_links_full @mem_pages, @members_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true%>
|
|
</ul>
|
|
<div class="cl"></div>
|
|
</div>
|
|
</div>
|
|
<% else %>
|
|
<%= render :partial => 'users/no_data'%>
|
|
<% end %> |