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

{% if list %}
  <table border="1" width="100%" cellpadding="0" cellspacing="0" class="admin-error-log">
    <thead>
    <tr>
      <th width="9%">Time</th>
      <th width="14%">Who</th>
      <th width="11%">Action</th>
      <th>Data</th>
    </tr>
    </thead>
    <tbody>
    {% for item in list %}
      <tr>
        <td>{{ item.getDate() }}</td>
        <td>
          {% if not item.isCommandLineActions() %}
            {{ admin_logins[item.getAdminId()] }}, {{ item.getIPv4() }}
          {% else %}
            console
          {% endif %}
        </td>
        <td>{{ item.getActionName() }}</td>
        <td>{{ item.renderHtml()|raw }}</td>
      </tr>
    {% endfor %}
    </tbody>
  </table>

  {{ pageNav(pn_page, pn_pages, "#{url}page={page}") }}
{% else %}
  <div class="empty">Actions log is empty.</div>
{% endif %}