2022-03-31 12:01:43 -05:00
|
|
|
<div class="item">
|
2023-02-13 11:59:59 -06:00
|
|
|
<div class="gt-df gt-ac">
|
|
|
|
<div class="icon gt-ml-3 gt-mr-3">
|
2022-03-31 12:01:43 -05:00
|
|
|
{{if eq .Process.Type "request"}}
|
2022-08-25 16:55:52 -05:00
|
|
|
{{svg "octicon-globe" 16}}
|
2022-03-31 12:01:43 -05:00
|
|
|
{{else if eq .Process.Type "system"}}
|
2022-08-25 16:55:52 -05:00
|
|
|
{{svg "octicon-cpu" 16}}
|
2022-03-31 12:01:43 -05:00
|
|
|
{{else if eq .Process.Type "normal"}}
|
2022-08-25 16:55:52 -05:00
|
|
|
{{svg "octicon-terminal" 16}}
|
2022-03-31 12:01:43 -05:00
|
|
|
{{else}}
|
2022-08-25 16:55:52 -05:00
|
|
|
{{svg "octicon-code" 16}}
|
2022-03-31 12:01:43 -05:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2023-02-13 11:59:59 -06:00
|
|
|
<div class="content gt-f1">
|
2022-03-31 12:01:43 -05:00
|
|
|
<div class="header">{{.Process.Description}}</div>
|
2023-09-25 07:42:40 -05:00
|
|
|
<div class="description">{{if ne .Process.Type "none"}}{{TimeSince .Process.Start ctx.Locale}}{{end}}</div>
|
2022-03-31 12:01:43 -05:00
|
|
|
</div>
|
|
|
|
<div>
|
2022-08-25 16:55:52 -05:00
|
|
|
{{if or (eq .Process.Type "request") (eq .Process.Type "normal")}}
|
2022-03-31 12:01:43 -05:00
|
|
|
<a class="delete-button icon" href="" data-url="{{.root.Link}}/cancel/{{.Process.PID}}" data-id="{{.Process.PID}}" data-name="{{.Process.Description}}">{{svg "octicon-trash" 16 "text-red"}}</a>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{if .Process.Stacks}}
|
2023-02-13 11:59:59 -06:00
|
|
|
<div class="divided list gt-ml-3">
|
2022-03-31 12:01:43 -05:00
|
|
|
{{range .Process.Stacks}}
|
|
|
|
<div class="item">
|
|
|
|
<details>
|
|
|
|
<summary>
|
2023-08-25 18:35:10 -05:00
|
|
|
<div class="flex-text-inline">
|
2023-02-13 11:59:59 -06:00
|
|
|
<div class="header gt-ml-3">
|
|
|
|
<span class="icon gt-mr-3">{{svg "octicon-code" 16}}</span>{{.Description}}{{if gt .Count 1}} * {{.Count}}{{end}}
|
2022-03-31 12:01:43 -05:00
|
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
{{range .Labels}}
|
|
|
|
<div class="ui label">{{.Name}}<div class="detail">{{.Value}}</div></div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</summary>
|
|
|
|
<div class="list">
|
|
|
|
{{range .Entry}}
|
2023-02-13 11:59:59 -06:00
|
|
|
<div class="item gt-df gt-ac">
|
|
|
|
<span class="icon gt-mr-4">{{svg "octicon-dot-fill" 16}}</span>
|
|
|
|
<div class="content gt-f1">
|
2022-03-31 12:01:43 -05:00
|
|
|
<div class="header"><code>{{.Function}}</code></div>
|
|
|
|
<div class="description"><code>{{.File}}:{{.Line}}</code></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</details>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if .Process.Children}}
|
|
|
|
<div class="divided list">
|
|
|
|
{{range .Process.Children}}
|
|
|
|
{{template "admin/stacktrace-row" dict "Process" . "root" $.root}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
</div>
|