-
Notifications
You must be signed in to change notification settings - Fork 149
/
_stacktrace.tt
23 lines (23 loc) · 1.2 KB
/
_stacktrace.tt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[% DEFAULT id="" %]
[% DEFAULT clickable="0" %]
<div class="card mx-auto mt-2 max-w-full[% IF clickable %] w-full[% END %]" [% IF id != "" %] id="[% id %]"[% END %]>
<div class="head">
<h3 class="grow[% IF clickable %] clickable[% END %]"[% IF clickable %] onclick='toggleElement("[% id %]nicestack")'[% END %]>
Stacktrace
</h3>
<div class="flexrow gap-1">
<button class="hoverable p-2 iconOnly" onclick='toggleElement("[% id %]rawstack");toggleElement("[% id %]nicestack"); return false;' title="show raw stacktrace">
<i class="fa-solid fa-code"></i>
</button>
<button class="hoverable p-2 iconOnly" onclick='hideElement("[% id %]rawstack");showElement("[% id %]nicestack");nice_stacktrace_expand(); return false;' title="expand stacktrace">
<i class="fa-solid fa-up-right-and-down-left-from-center"></i>
</button>
</div>
</div>
<!--BEGIN STACKTRACE-->
<div id="[% id %]rawstack" style="display:none;" class="whitespace-pre font-mono p-2 overflow-auto">[% escape_html(stacktrace) %]</div>
<div id="[% id %]nicestack" class="[% IF clickable %]hidden[% END %]">
[% nice_stacktrace(escape_html(stacktrace)) %]
</div>
<!--END STACKTRACE-->
</div>