mirror of
https://github.com/go-gitea/gitea.git
synced 2026-02-11 14:28:57 +00:00
We've been cutting down on the "striped" tables (where rows are using alternate row background colors). This completely removes them as I think such a design looks outdated. The removal of selectors starting with `.ui[class*="very basic"].table:not(.striped)` is needed because of a specificity issue in the CSS where table cells would otherwise render with incorrect padding. Example of one affected table: <img width="1027" height="224" alt="image" src="https://github.com/user-attachments/assets/2f3006ca-99a1-4655-afdb-b7cd9e5f19c7" />
37 lines
1.2 KiB
Handlebars
37 lines
1.2 KiB
Handlebars
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
|
|
<div class="admin-setting-content">
|
|
<h4 class="ui top attached header">
|
|
{{ctx.Locale.Tr "admin.monitor.queues"}}
|
|
</h4>
|
|
<div class="ui attached table segment">
|
|
<table class="ui very basic table unstackable">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ctx.Locale.Tr "admin.monitor.queue.name"}}</th>
|
|
<th>{{ctx.Locale.Tr "admin.monitor.queue.type"}}</th>
|
|
<th>{{ctx.Locale.Tr "admin.monitor.queue.exemplar"}}</th>
|
|
<th>{{ctx.Locale.Tr "admin.monitor.queue.numberworkers"}}</th>
|
|
<th>{{ctx.Locale.Tr "admin.monitor.queue.activeworkers"}}</th>
|
|
<th>{{ctx.Locale.Tr "admin.monitor.queue.numberinqueue"}}</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range $qid, $q := .Queues}}
|
|
<tr>
|
|
<td>{{$q.GetName}}</td>
|
|
<td>{{$q.GetType}}</td>
|
|
<td>{{$q.GetItemTypeName}}</td>
|
|
<td>{{$q.GetWorkerNumber}}</td>
|
|
<td>{{$q.GetWorkerActiveNumber}}</td>
|
|
<td>{{$sum := $q.GetQueueItemNumber}}{{if lt $sum 0}}-{{else}}{{$sum}}{{end}}</td>
|
|
<td><a href="{{$.Link}}/{{$qid}}" class="button">{{ctx.Locale.Tr "admin.monitor.queue.review_add"}}</a></td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{{template "admin/layout_footer" .}}
|
|
|