mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-27 12:16:10 +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
36 lines
1.4 KiB
Handlebars
36 lines
1.4 KiB
Handlebars
<h4 class="ui top attached header">
|
|
{{.locale.Tr "admin.monitor.cron"}}
|
|
</h4>
|
|
<div class="ui attached table segment">
|
|
<form method="post" action="{{AppSubUrl}}/admin">
|
|
<table class="ui very basic striped table unstackable">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>{{.locale.Tr "admin.monitor.name"}}</th>
|
|
<th>{{.locale.Tr "admin.monitor.schedule"}}</th>
|
|
<th>{{.locale.Tr "admin.monitor.next"}}</th>
|
|
<th>{{.locale.Tr "admin.monitor.previous"}}</th>
|
|
<th>{{.locale.Tr "admin.monitor.execute_times"}}</th>
|
|
<th>{{.locale.Tr "admin.monitor.last_execution_result"}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Entries}}
|
|
<tr>
|
|
<td><button type="submit" class="ui green button" name="op" value="{{.Name}}" title="{{$.locale.Tr "admin.dashboard.operation_run"}}">{{svg "octicon-triangle-right"}}</button></td>
|
|
<td>{{$.locale.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>
|
|
<td {{if ne .Status ""}}class="tooltip" data-content="{{.FormatLastMessage $.locale}}"{{end}} >{{if eq .Status "" }}—{{else if eq .Status "finished"}}{{svg "octicon-check" 16}}{{else}}{{svg "octicon-x" 16}}{{end}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
<input type="hidden" name="from" value="monitor"/>
|
|
{{.CsrfTokenHtml}}
|
|
</form>
|
|
</div>
|