mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-22 20:42:47 +08:00
1a03fa7a4f
* Update JS dependencies - Update all JS dependencies - For octicons, rename trashcan to trash - For svgo, migrate to v2 api, output seems to have slightly changed but icons look the same - For stylelint, update config, fix custom property duplicates - For monaco, drop legacy Edge support - For eslint, enable new rules, fix new issues - For less-loader, remove deprecated import syntax * update svgo usage in generate-images and rebuild logo.svg with it
109 lines
3.5 KiB
Handlebars
109 lines
3.5 KiB
Handlebars
{{template "base/head" .}}
|
|
<div class="page-content admin monitor">
|
|
{{template "admin/navbar" .}}
|
|
<div class="ui container">
|
|
{{template "base/alert" .}}
|
|
<h4 class="ui top attached header">
|
|
{{.i18n.Tr "admin.monitor.cron"}}
|
|
</h4>
|
|
<div class="ui attached table segment">
|
|
<form method="post" action="{{AppSubUrl}}/admin">
|
|
<table class="ui very basic striped table">
|
|
<thead>
|
|
<tr>
|
|
<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>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Entries}}
|
|
<tr>
|
|
<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>
|
|
<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>
|
|
<input type="hidden" name="from" value="monitor"/>
|
|
{{.CsrfTokenHtml}}
|
|
</form>
|
|
</div>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Processes}}
|
|
<tr>
|
|
<td>{{.PID}}</td>
|
|
<td>{{.Description}}</td>
|
|
<td>{{DateFmtLong .Start}}</td>
|
|
<td>{{TimeSince .Start $.Lang}}</td>
|
|
<td><a class="delete-button" href="" data-url="{{$.Link}}/cancel/{{.PID}}" data-id="{{.PID}}" data-name="{{.Description}}">{{svg "octicon-trash" 16 "text-red"}}</a></td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="ui small basic delete modal">
|
|
<div class="ui icon header">
|
|
{{svg "octicon-x" 16 "close inside"}}
|
|
{{.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>
|
|
{{template "base/footer" .}}
|