{% import 'admin/macro.html.twig' as admin_macro %}
<tr id="user-table-tr-{{ user.id }}">
  <td>
    <strong>{{ admin_macro.user_link(user) }}</strong>
  </td>
  {% include 'org/parts/table-body-td.html.twig' with {orgCode: user.orgCode}%}
  <td>
    {% set emailArr = user.email|split('@') %}
    {% if emailArr[1] != 'edusoho.net' %}
      {{ user.email }}
    {% else %}
      {{'暂无'|trans}}
    {% endif %}
  </td>
  <td>
    <span class="text-sm">{{ logRecord.createdTime|date('Y-n-d H:i:s') }}</span>
    <br>
    <a class="text-muted text-sm" href="http://www.baidu.com/s?wd={{ logRecord.ip }}" target="_blank">{{ logRecord.ip }}</a>
  </td>
  <td>
    {{ logRecord.location }}
  </td>
  <td>
    <a href="#modal" data-toggle="modal" data-url="{{ path('admin_login_record_details', {id:user.id}) }}" data-url="" class="btn btn-default btn-sm">{{'查看'|trans}}</a>
  </td>
</tr>