2015-08-19 00:34:11 +08:00
|
|
|
{{template "base/head" .}}
|
2020-12-01 12:00:14 +08:00
|
|
|
<div class="page-content admin monitor">
|
2017-03-16 06:39:38 +08:00
|
|
|
{{template "admin/navbar" .}}
|
2015-12-08 06:30:52 +08:00
|
|
|
<div class="ui container">
|
2017-03-16 06:39:38 +08:00
|
|
|
{{template "base/alert" .}}
|
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "admin.monitor.cron"}}
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
2020-05-21 02:35:16 +08:00
|
|
|
<form method="post" action="{{AppSubUrl}}/admin">
|
2020-07-06 03:38:03 +08:00
|
|
|
<input type="hidden" name="from" value="monitor"/>
|
2020-05-17 07:31:38 +08:00
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<table class="ui very basic striped table">
|
|
|
|
<thead>
|
2017-03-16 06:39:38 +08:00
|
|
|
<tr>
|
2020-05-17 07:31:38 +08:00
|
|
|
<th></th>
|
|
|
|
<th>{{.i18n.Tr "admin.monitor.name"}}</th>
|
|
|
|
<th>{{.i18n.Tr "admin.monitor.schedule"}}</th>
|
|
|
|
<th>{{.i18n.Tr "admin.monitor.next"}}</th>
|
|
|
|
<th>{{.i18n.Tr "admin.monitor.previous"}}</th>
|
|
|
|
<th>{{.i18n.Tr "admin.monitor.execute_times"}}</th>
|
2017-03-16 06:39:38 +08:00
|
|
|
</tr>
|
2020-05-17 07:31:38 +08:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{range .Entries}}
|
|
|
|
<tr>
|
2020-09-12 04:19:00 +08:00
|
|
|
<td><button type="submit" class="ui green button" name="op" value="{{.Name}}" title="{{$.i18n.Tr "admin.dashboard.operation_run"}}">{{svg "octicon-triangle-right"}}</button></td>
|
2020-05-17 07:31:38 +08:00
|
|
|
<td>{{$.i18n.Tr (printf "admin.dashboard.%s" .Name)}}</td>
|
|
|
|
<td>{{.Spec}}</td>
|
|
|
|
<td>{{DateFmtLong .Next}}</td>
|
|
|
|
<td>{{if gt .Prev.Year 1 }}{{DateFmtLong .Prev}}{{else}}N/A{{end}}</td>
|
|
|
|
<td>{{.ExecTimes}}</td>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</form>
|
2017-03-16 06:39:38 +08:00
|
|
|
</div>
|
2015-08-19 00:34:11 +08:00
|
|
|
|
2020-01-07 19:23:09 +08:00
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "admin.monitor.queues"}}
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<table class="ui very basic striped table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{.i18n.Tr "admin.monitor.queue.name"}}</th>
|
|
|
|
<th>{{.i18n.Tr "admin.monitor.queue.type"}}</th>
|
|
|
|
<th>{{.i18n.Tr "admin.monitor.queue.exemplar"}}</th>
|
|
|
|
<th>{{.i18n.Tr "admin.monitor.queue.numberworkers"}}</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{range .Queues}}
|
|
|
|
<tr>
|
|
|
|
<td>{{.Name}}</td>
|
|
|
|
<td>{{.Type}}</td>
|
|
|
|
<td>{{.ExemplarType}}</td>
|
|
|
|
<td>{{$sum := .NumberOfWorkers}}{{if lt $sum 0}}-{{else}}{{$sum}}{{end}}</td>
|
|
|
|
<td><a href="{{$.Link}}/queue/{{.QID}}" class="button">{{if lt $sum 0}}{{$.i18n.Tr "admin.monitor.queue.review"}}{{else}}{{$.i18n.Tr "admin.monitor.queue.review_add"}}{{end}}</a>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2017-03-16 06:39:38 +08:00
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "admin.monitor.process"}}
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<table class="ui very basic striped table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Pid</th>
|
|
|
|
<th>{{.i18n.Tr "admin.monitor.desc"}}</th>
|
|
|
|
<th>{{.i18n.Tr "admin.monitor.start"}}</th>
|
|
|
|
<th>{{.i18n.Tr "admin.monitor.execute_time"}}</th>
|
2019-11-30 22:40:22 +08:00
|
|
|
<th></th>
|
2017-03-16 06:39:38 +08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{range .Processes}}
|
|
|
|
<tr>
|
|
|
|
<td>{{.PID}}</td>
|
|
|
|
<td>{{.Description}}</td>
|
2018-06-10 09:48:45 +08:00
|
|
|
<td>{{DateFmtLong .Start}}</td>
|
|
|
|
<td>{{TimeSince .Start $.Lang}}</td>
|
2020-12-10 03:03:19 +08:00
|
|
|
<td><a class="delete-button" href="" data-url="{{$.Link}}/cancel/{{.PID}}" data-id="{{.PID}}" data-name="{{.Description}}">{{svg "octicon-trashcan" 16 "text-red"}}</a></td>
|
2017-03-16 06:39:38 +08:00
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-12-08 06:30:52 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-08-30 20:49:51 +08:00
|
|
|
</div>
|
2019-11-30 22:40:22 +08:00
|
|
|
<div class="ui small basic delete modal">
|
|
|
|
<div class="ui icon header">
|
2020-12-10 03:03:19 +08:00
|
|
|
{{svg "octicon-x" 16 "close inside"}}
|
2019-11-30 22:40:22 +08:00
|
|
|
{{.i18n.Tr "admin.monitor.process.cancel"}}
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<p>{{$.i18n.Tr "admin.monitor.process.cancel_notices" `<span class="name"></span>` | Safe}}</p>
|
|
|
|
<p>{{$.i18n.Tr "admin.monitor.process.cancel_desc"}}</p>
|
|
|
|
</div>
|
|
|
|
{{template "base/delete_modal_actions" .}}
|
|
|
|
</div>
|
2015-12-08 06:30:52 +08:00
|
|
|
{{template "base/footer" .}}
|