@@ -4,31 +4,36 @@ <h5 class="card-title">Queries</h5>
44 </ div >
55 < div class ="card-body ">
66
7- < table class ="table table-dashed table-hover ">
8- < thead >
9- < tr >
10- < th scope ="col "> Type</ th >
11- < th scope ="col "> File/Line</ th >
12- < th scope ="col "> Function</ th >
13- < th scope ="col "> Happened</ th >
14- < th class ="w-50px "> </ th >
15- </ tr >
16- </ thead >
17- < tbody >
18- {% for exception in exceptions %}
19- < tr >
20- < td > {{ exception.data.exception_message }}</ td >
21- < td > < code > {{ exception.data.file_name }}:{{ exception.data.line_number }}</ code > </ td >
22- < td > {{ exception.created_at|timesince }}</ td >
23- < td >
24- < a class ="btn btn-sm btn-icon btn-primary ">
25- < i class ="bi bi-arrow-right "> </ i >
26- </ a >
27- </ td >
28- </ tr >
29- {% endfor %}
30- </ tbody >
31- </ table >
7+
8+ {% if not exceptions %}
9+ < div class ="text-light-grey "> No exceptions found</ div >
10+ {% else %}
11+ < table class ="table table-dashed table-hover ">
12+ < thead >
13+ < tr >
14+ < th scope ="col "> Type</ th >
15+ < th scope ="col "> File/Line</ th >
16+ < th scope ="col "> Function</ th >
17+ < th scope ="col "> Happened</ th >
18+ < th class ="w-50px "> </ th >
19+ </ tr >
20+ </ thead >
21+ < tbody >
22+ {% for exception in exceptions %}
23+ < tr >
24+ < td > {{ exception.data.exception_message }}</ td >
25+ < td > < code > {{ exception.data.file_name }}:{{ exception.data.line_number }}</ code > </ td >
26+ < td > {{ exception.created_at|timesince }}</ td >
27+ < td >
28+ < a class ="btn btn-sm btn-icon btn-primary ">
29+ < i class ="bi bi-arrow-right "> </ i >
30+ </ a >
31+ </ td >
32+ </ tr >
33+ {% endfor %}
34+ </ tbody >
35+ </ table >
36+ {% endif %}
3237
3338 </ div >
3439</ div >
0 commit comments