2015-08-18 22:04:11 +05:30
|
|
|
{{template "base/head" .}}
|
|
|
|
<div class="admin monitor">
|
2017-03-16 04:09:38 +05:30
|
|
|
{{template "admin/navbar" .}}
|
2015-12-08 04:00:52 +05:30
|
|
|
<div class="ui container">
|
2017-03-16 04:09:38 +05:30
|
|
|
{{template "base/alert" .}}
|
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "admin.monitor.cron"}}
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<table class="ui very basic striped table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<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>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{range .Entries}}
|
|
|
|
<tr>
|
|
|
|
<td>{{.Description}}</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>
|
|
|
|
</div>
|
2015-08-18 22:04:11 +05:30
|
|
|
|
2017-03-16 04:09:38 +05:30
|
|
|
<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 20:10:22 +05:30
|
|
|
<th></th>
|
2017-03-16 04:09:38 +05:30
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{range .Processes}}
|
|
|
|
<tr>
|
|
|
|
<td>{{.PID}}</td>
|
|
|
|
<td>{{.Description}}</td>
|
2018-06-10 07:18:45 +05:30
|
|
|
<td>{{DateFmtLong .Start}}</td>
|
|
|
|
<td>{{TimeSince .Start $.Lang}}</td>
|
2019-11-30 20:10:22 +05:30
|
|
|
<td><a class="delete-button" href="" data-url="{{$.Link}}/cancel/{{.PID}}" data-id="{{.PID}}" data-name="{{.Description}}"><i class="close icon text red"></i></a></td>
|
2017-03-16 04:09:38 +05:30
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2014-08-30 18:19:51 +05:30
|
|
|
</div>
|
2019-11-30 20:10:22 +05:30
|
|
|
<div class="ui small basic delete modal">
|
|
|
|
<div class="ui icon header">
|
|
|
|
<i class="close icon"></i>
|
|
|
|
{{.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 04:00:52 +05:30
|
|
|
{{template "base/footer" .}}
|