74 lines
2.1 KiB
Plaintext
74 lines
2.1 KiB
Plaintext
|
<h3>
|
||
|
<%=l(:label_latest_login_user_list)%>
|
||
|
</h3>
|
||
|
|
||
|
<div class="autoscroll">
|
||
|
<table class="list" style="width: 100%;table-layout: fixed">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th style="width: 30px;">
|
||
|
序号
|
||
|
</th>
|
||
|
<th style="width: 70px;">
|
||
|
登录时间
|
||
|
</th>
|
||
|
<th style="width: 30px;">
|
||
|
用户id
|
||
|
</th>
|
||
|
<th style="width: 50px;">
|
||
|
用户姓名
|
||
|
</th>
|
||
|
<th style="width: 50px;">
|
||
|
用户昵称
|
||
|
</th>
|
||
|
<th style="width: 50px;">
|
||
|
用户身份
|
||
|
</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% @count=0 %>
|
||
|
<% for user in @user do %>
|
||
|
<tr>
|
||
|
<% @count +=1 %>
|
||
|
<td align="center">
|
||
|
<%=@count %>
|
||
|
</td>
|
||
|
<td align="center">
|
||
|
<%=format_date(user.last_login_on) %>
|
||
|
</td>
|
||
|
<td align="center">
|
||
|
<%=user.id %>
|
||
|
</td>
|
||
|
<td align="center" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<% if user.try(:realname) == ' '%><%= user.login%><% else %><%=user.try(:realname) %><% end %>'>
|
||
|
<% if user.try(:realname) == ' '%>
|
||
|
<%= link_to(user.login, user_path(user)) %>
|
||
|
<% else %>
|
||
|
<%= link_to(user.try(:realname), user_path(user)) %>
|
||
|
<% end %>
|
||
|
</td>
|
||
|
<td align="center">
|
||
|
<%=link_to(user.login, user_path(user)) %>
|
||
|
</td>
|
||
|
<td align="center">
|
||
|
<% case user.user_extensions.identity %>
|
||
|
<% when 0 %>
|
||
|
<%='老师' %>
|
||
|
<% when 1 %>
|
||
|
<%='学生' %>
|
||
|
<% when 2 %>
|
||
|
<%='企业' %>
|
||
|
<% when 3 %>
|
||
|
<%='开发者' %>
|
||
|
<% else %>
|
||
|
<%='未知身份' %>
|
||
|
<% end %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
|
||
|
<% html_title(l(:label_latest_login_user_list)) -%>
|