{{ bc([
  {text: "admin_title"|lang, url: '/admin/'},
  {text: "admin_auth_log"|lang}
]) }}

{% if list %}
  <table border="1" width="100%" cellpadding="0" cellspacing="0" class="admin-error-log">
    <thead>
    <tr>
      <th width="20%">Admin</th>
      <th width="15%">Time</th>
      <th width="10%">IP</th>
      <th width="55%">User-Agent</th>
    </tr>
    </thead>
    <tbody>
    {% for item in list %}
      <tr>
        <td>
          <span title="Last activity: {{ item.activity_ts_s }}">{{ item.login }}</span> (id={{ item.admin_id }})
        </td>
        <td>{{ item.date }}</td>
        <td>{{ item.ip }}</td>
        <td>{{ item.ua }}</td>
      </tr>
    {% endfor %}
    </tbody>
  </table>

  {{ pageNav(pn_page, pn_pages, "/admin/auth-log/?page={page}") }}
{% else %}
  <div class="empty">Auth log is empty.</div>
{% endif %}