-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
detail.html
executable file
·36 lines (35 loc) · 1.21 KB
/
detail.html
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
{% extends 'error_tracker/base.html' %}
{% load error_tracker %}
{% block content_block %}
<style>
hr {
margin-top: 10px !important;
margin-bottom: 10px !important;
}
.row {
border: 1px #eee solid;
padding: 10px 15px;
}
</style>
{% if error %}
<h1 class="text-center alert alert-danger">{{ error }}</h1>
{% else %}
<h2 class="text-center"><a href="{% url 'view_errors' %}">Errors Seen</a></h2>
<div class="row">
<p><strong>URL:</strong>{{ obj.host }}{{ obj.path }}</p>
<hr/>
<p><strong>Method: </strong>{{ obj.method }}</p>
<hr/>
<p><strong>First time seen: </strong>{{ obj.created_on }}</p>
<hr/>
<p><strong>Last seen: </strong>{{ obj.last_seen }}</p>
<hr/>
<p><strong>Occurrences: </strong>{{ obj.count }}</p>
<hr/>
<div><strong>Request data: </strong>{{ obj.request_data }}</div>
<hr/>
<div><strong>Exception detail: </strong><br/>
{{ obj.traceback|escape|replace_new_line_with_br|safe }}</div>
</div>
{% endif %}
{% endblock %}