forked from k-space/inventory-app
40 lines
982 B
HTML
40 lines
982 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
|
|
{% if info -%}
|
|
<h3>{{ info | safe }}</h3>
|
|
{%- endif %}
|
|
<p>Approved means door actually opened. Unapproved opens are failed attempts.</p>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Approved</th>
|
|
<th>Timestamp</th>
|
|
<th>Door</th>
|
|
<th>Who</th>
|
|
<th>Method</th>
|
|
<th>Method details</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for o in latest_events %}
|
|
<tr>
|
|
<td>{% if o.approved %}<i class="material-icons">check_circle</i>{% else %}no{% endif %}</td>
|
|
<td>{{ o.timestamp | timeago }}</td>
|
|
<td>{{ o.door }}</td>
|
|
<td>{% if o.user %}<a href="log/{{ o.user }}">{{ o.user }}</a>{% endif %}</td>
|
|
<td>{{ o.method }}</td>
|
|
<td>{% if o.userExtra %}{% if o.method == "card" -%}
|
|
{{ o.userExtra[-6:] }}
|
|
{% else -%}
|
|
{{ o.userExtra }}
|
|
{%- endif %}{% endif %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% endblock %}
|