51 lines
1.1 KiB
HTML
51 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<h1>Logtracker</h1>
|
|
|
|
<div style='position:absolute;right:0;'>
|
|
<form action='.' style='display:inline;'>
|
|
<select name="host" onchange="this.form.submit()">
|
|
<option>Hosts</option>
|
|
{% for h in hosts %}
|
|
<option value="{{ h }}">{{ h }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</form>
|
|
|
|
<form action='.' style='display:inline;'>
|
|
<select name="_SYSTEMD_UNIT" onchange="this.form.submit()">
|
|
<option>Units</option>
|
|
{% for u in units %}
|
|
<option value="{{ u }}">{{ u }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</form>
|
|
</div>
|
|
|
|
<h2>Journal entries</h2>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td>Time</td>
|
|
<td>Host</td>
|
|
<td>Unit</td>
|
|
<td>Message</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for line in object_list %}
|
|
<tr>
|
|
<td>{{ line.timestamp|date:'b d H:i:s' }}</td>
|
|
<td>{{ line.host }}</td>
|
|
<td>{{ line.unit }}</td>
|
|
<td>{{ line.data.MESSAGE }}</td>
|
|
</tr>
|
|
{% empty %}
|
|
No data yet.
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|