[879b32]: / qiita_pet / templates / error_log.html

Download this file

56 lines (52 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{% extends sitebase.html %}
{% block head %}
{% from qiita_core.qiita_settings import qiita_config %}
<script type="text/javascript">
$(document).ready(function() {
$('#error-table').dataTable({"order": [[1, "asc"]]});
$("#waiting").hide();
} );
</script>
{% end %}
{% block content %}
{% if logentries %}
<div>
<form id="records" method="post" action="{% raw qiita_config.portal_dir %}/admin/error/">
Number of entries: <input type="number" name="numrecords" value="{{ len(logentries) }}" class="form-">
</form>
</div>
<table id="error-table" class="display table-bordered table-hover">
<thead>
<tr>
<th>Time</th>
<th>Severity</th>
<th>Message</th>
<th>Other Info</th>
</tr>
</thead>
<tbody>
{% for error in logentries %}
<tr>
<td>{{error.time}}</td>
<td>{{error.severity}}</td>
<td>{% raw escape(error.msg).replace("\n", "<br />") %}</td>
<td>
{% for entry in error.info %}
{% for field, val in entry.items() %}
{{field}}: {{val}}<br />
{% end %}
{% end %}
</td>
</tr>
{% end %}
</tbody>
</table>
{% else %}
<div id="jumbotron" class="jumbotron">
<h1><span class="glyphicon glyphicon-thumbs-down"></span> There are no errors</h1>
<p>
This means that the system currently has no errors logged.
</p>
</div>
{% end %}
{% end %}