最近登录老师列表的超链接指向了其他用户

This commit is contained in:
cxt 2016-03-03 15:43:36 +08:00
parent f6f84b564e
commit d2cf95a32d
1 changed files with 4 additions and 4 deletions

View File

@ -59,17 +59,17 @@
<%=format_time(teacher.last_login_on) %>
</td>
<td align="center">
<%=teacher.id %>
<%=teacher.user_id %>
</td>
<td align="center" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<% if teacher.try(:realname) == ' '%><%= teacher.login%><% else %><%=teacher.try(:realname) %><% end %>'>
<% if teacher.try(:realname) == ' '%>
<%= link_to(teacher.login, user_path(teacher)) %>
<%= link_to(teacher.login, user_path(teacher.user_id)) %>
<% else %>
<%= link_to(teacher.try(:realname), user_path(teacher)) %>
<%= link_to(teacher.try(:realname), user_path(teacher.user_id)) %>
<% end %>
</td>
<td align="center">
<%=link_to(teacher.login, user_path(teacher)) %>
<%=link_to(teacher.login, user_path(teacher.user_id)) %>
</td>
<td align="center">
老师