2022-03-31 17:01:43 +00:00
|
|
|
<div class="item">
|
2024-03-22 13:45:10 +00:00
|
|
|
<div class="tw-flex tw-content-center">
|
2023-02-13 17:59:59 +00:00
|
|
|
<div class="icon gt-ml-3 gt-mr-3">
|
2022-03-31 17:01:43 +00:00
|
|
|
{{if eq .Process.Type "request"}}
|
2022-08-25 21:55:52 +00:00
|
|
|
{{svg "octicon-globe" 16}}
|
2022-03-31 17:01:43 +00:00
|
|
|
{{else if eq .Process.Type "system"}}
|
2022-08-25 21:55:52 +00:00
|
|
|
{{svg "octicon-cpu" 16}}
|
2022-03-31 17:01:43 +00:00
|
|
|
{{else if eq .Process.Type "normal"}}
|
2022-08-25 21:55:52 +00:00
|
|
|
{{svg "octicon-terminal" 16}}
|
2022-03-31 17:01:43 +00:00
|
|
|
{{else}}
|
2022-08-25 21:55:52 +00:00
|
|
|
{{svg "octicon-code" 16}}
|
2022-03-31 17:01:43 +00:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2024-03-22 13:45:10 +00:00
|
|
|
<div class="content tw-flex-1">
|
2022-03-31 17:01:43 +00:00
|
|
|
<div class="header">{{.Process.Description}}</div>
|
2023-09-25 12:42:40 +00:00
|
|
|
<div class="description">{{if ne .Process.Type "none"}}{{TimeSince .Process.Start ctx.Locale}}{{end}}</div>
|
2022-03-31 17:01:43 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2022-08-25 21:55:52 +00:00
|
|
|
{{if or (eq .Process.Type "request") (eq .Process.Type "normal")}}
|
2022-03-31 17:01:43 +00: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 17:59:59 +00:00
|
|
|
<div class="divided list gt-ml-3">
|
2022-03-31 17:01:43 +00:00
|
|
|
{{range .Process.Stacks}}
|
|
|
|
<div class="item">
|
|
|
|
<details>
|
|
|
|
<summary>
|
2023-08-25 23:35:10 +00:00
|
|
|
<div class="flex-text-inline">
|
2023-02-13 17:59:59 +00: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 17:01:43 +00: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}}
|
2024-03-22 13:45:10 +00:00
|
|
|
<div class="item tw-flex tw-content-center">
|
2023-02-13 17:59:59 +00:00
|
|
|
<span class="icon gt-mr-4">{{svg "octicon-dot-fill" 16}}</span>
|
2024-03-22 13:45:10 +00:00
|
|
|
<div class="content tw-flex-1">
|
2022-03-31 17:01:43 +00: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>
|