2012-06-21 04:54:49 +00:00
|
|
|
{% extends "frame.html" %}
|
2012-04-28 00:42:03 +00:00
|
|
|
{% block body %}
|
2012-04-29 04:22:33 +00:00
|
|
|
<form style="float: right" method="POST" action="/log/clear">
|
|
|
|
<button type="submit" class="btn">clear</button>
|
|
|
|
</form>
|
|
|
|
<h1> Logs </h1>
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<table class="table table-striped table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>id</th>
|
2012-06-21 04:54:49 +00:00
|
|
|
<th>method</th>
|
|
|
|
<th>path</th>
|
2012-04-29 04:22:33 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for i in log %}
|
|
|
|
<tr>
|
2013-01-20 09:37:43 +00:00
|
|
|
{% if i["type"] == 'error' %}
|
|
|
|
<td colspan="3">ERROR: {{ i["msg"] }}</td>
|
|
|
|
{% else %}
|
|
|
|
<td>{{ i["id"] }}</td>
|
|
|
|
<td>{{ i["request"]["method"] }}</td>
|
|
|
|
<td><a href="/log/{{ i["id"] }}">{{ i["request"]["path"] }}</a></td>
|
|
|
|
{% endif %}
|
2012-04-29 04:22:33 +00:00
|
|
|
</tr>
|
2012-06-21 04:54:49 +00:00
|
|
|
{% endfor %}
|
2012-04-29 04:22:33 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2012-06-21 04:54:49 +00:00
|
|
|
{% endblock %}
|
2012-04-28 00:42:03 +00:00
|
|
|
|