{% extends "reports/base.html" %}
{% load i18n %}

{% block content %}

<h1>{% trans "User Access" %}</h1>

<table>
<tr>
	<td>{% trans "Total User Records in Database:" %} {{ total_users }}</td>
</tr>
<tr>
	<td>{% trans "Total Logins:" %} {{ total_logins }}</td>
</tr>
</table>

<h2>{% trans 'Unique User Logins' %}</h2>
<table class="user-access-report">
    <tr>
        <th>Last x Days</th>
        <th>Logins</th>
    </tr>
{% for days, count in day_logins %}

<tr>
	<td>{% blocktrans %}{{ days }} Day{% endblocktrans %}</td>
	<td>{% blocktrans %}{{ count }}{% endblocktrans %}</td>
</tr>
{% endfor %}
</table>

{% endblock content %}