mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 03:21:49 +01:00
d55a0b7238
* Refactor `i18n` to `locale` - Currently we're using the `i18n` variable naming for the `locale` struct. This contains locale's specific information and cannot be used for general i18n purpose, therefore refactoring it to `locale` makes more sense. - Ref: https://github.com/go-gitea/gitea/pull/20096#discussion_r906699200 * Update routers/install/install.go
51 lines
1.7 KiB
Handlebars
51 lines
1.7 KiB
Handlebars
{{template "base/head" .}}
|
|
<div class="page-content admin monitor">
|
|
{{template "admin/navbar" .}}
|
|
<div class="ui container">
|
|
{{template "base/alert" .}}
|
|
{{template "admin/cron" .}}
|
|
<h4 class="ui top attached header">
|
|
{{.locale.Tr "admin.monitor.queues"}}
|
|
</h4>
|
|
<div class="ui attached table segment">
|
|
<table class="ui very basic striped table unstackable">
|
|
<thead>
|
|
<tr>
|
|
<th>{{.locale.Tr "admin.monitor.queue.name"}}</th>
|
|
<th>{{.locale.Tr "admin.monitor.queue.type"}}</th>
|
|
<th>{{.locale.Tr "admin.monitor.queue.exemplar"}}</th>
|
|
<th>{{.locale.Tr "admin.monitor.queue.numberworkers"}}</th>
|
|
<th>{{.locale.Tr "admin.monitor.queue.numberinqueue"}}</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>{{$sum := .NumberInQueue}}{{if lt $sum 0}}-{{else}}{{$sum}}{{end}}</td>
|
|
<td><a href="{{$.Link}}/queue/{{.QID}}" class="button">{{if lt $sum 0}}{{$.locale.Tr "admin.monitor.queue.review"}}{{else}}{{$.locale.Tr "admin.monitor.queue.review_add"}}{{end}}</a>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
{{template "admin/process" .}}
|
|
</div>
|
|
</div>
|
|
<div class="ui small basic delete modal">
|
|
<div class="ui icon header">
|
|
{{svg "octicon-x" 16 "close inside"}}
|
|
{{.locale.Tr "admin.monitor.process.cancel"}}
|
|
</div>
|
|
<div class="content">
|
|
<p>{{$.locale.Tr "admin.monitor.process.cancel_notices" `<span class="name"></span>` | Safe}}</p>
|
|
<p>{{$.locale.Tr "admin.monitor.process.cancel_desc"}}</p>
|
|
</div>
|
|
{{template "base/delete_modal_actions" .}}
|
|
</div>
|
|
{{template "base/footer" .}}
|