dev_local_lzdx
daiao 5 years ago
parent a018f5a4ad
commit 3b65b9cba8

@ -13,13 +13,13 @@
<tbody>
<% @user_agents.each do |ua| %>
<% user = User.find_by_login(ua.key) %>
<% user_extension = user.user_extensions %>
<% school = user_extension.school %>
<% user_extension = user&.user_extensions %>
<% school = user_extension&.school %>
<tr>
<td><%= ua.id %></td>
<td class="edu-txt-left"><span><%= link_to ua.key, user_path(ua.key), :target => "_blank" %></span></td>
<td><%= link_to user.try(:show_real_name), user_path(user), target:'_blank' %></td>
<td><%= school.name %></td>
<td><%= school&.name %></td>
<td><%= ua.action_status == 2 ? "代理之后注册" : "--" %></td>
<td><%= ua.register_status == 2 ? "代理之后报名" : "--" %></td>
<td><%= ua.ip %></td>

Loading…
Cancel
Save