DoorAdmin/imaginaerraum_door_admin/templates/token_log.html

33 lines
760 B
HTML
Raw Permalink Normal View History

{% extends 'base.html' %}
{% block header %}
{% block title %}<h1>Token Log</h1>{% endblock %}
{% endblock %}
{% block content %}
<table class="table">
<thead>
<td>Timestamp</td>
2021-04-17 13:50:46 +00:00
<td>Level</td>
<td>Message</td>
</thead>
<tbody>
{% for line in log %}
2021-04-17 13:50:46 +00:00
{% if line[2] == 'INFO' %}
<tr style="background-color: lightgreen">
{% elif line[2] == 'WARNING'%}
<tr style="background-color: orange">
{% elif line[2] == 'ERROR' %}
<tr style="background-color: red">
{% elif line[2] == 'DEBUG'%}
<tr style="background-color: lightblue">
{% else %}
<tr>
{% endif %}
<td>{{ line[0] }}</td>
<td>{{ line[2] }}</td>
2021-04-17 13:50:46 +00:00
<td>{{ line[3] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}