{% extends "base/headermenu.html" %}
{% load i18n %}
{% block contents %}

  <p><br></p>

<p><br></p>

  <div class="mainbox">
    <div class="inner">
      <div class="top"><span></span></div>
        <div class="content">
          <p>
            <h3>{% trans "Login History" %}</h3>

            <p>
{% ifnotequal list.count 0 %}

              <table width="100%" border="0" collapse="0" cellspacing="10">
                <tr>
                  <th>{% trans "Login Date" %}</th>
                  <th>{% trans "IP Address" %}</th>
                  <th>{% trans "User Agent" %}</th>
                  <th>{% trans "Success" %}</th>
                </tr>
  {% for history in list %}
                <tr>
                  <td align="left">
                    {{ history.login_date|date:"Y年m月d日(D) H:i:s" }}
                    &nbsp;
                  </td>
                  <td align="center">
                    {{ history.ip_address }}
                    &nbsp;
                  </td>
                  <td align="left">
                    {{ history.user_agent }}
                    &nbsp;
                  </td>
                  <td align="center">
                    {{ history.is_success }}
                    &nbsp;
                  </td>
                </tr>
  {% endfor %}
              </table>

{% else %}
              <br>
              ログインの履歴はありません。
{% endifnotequal %}

            </p>
          </p>
        </div>
        <div class="base"><span></span></div>
      </div>
    </div>
  </div>

{% endblock %}
