aboutsummaryrefslogtreecommitdiffstats
path: root/templates/admin/cron.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/admin/cron.tmpl')
-rw-r--r--templates/admin/cron.tmpl18
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/admin/cron.tmpl b/templates/admin/cron.tmpl
index 354cd18ed5..1886b48d0d 100644
--- a/templates/admin/cron.tmpl
+++ b/templates/admin/cron.tmpl
@@ -1,7 +1,7 @@
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
<div class="admin-setting-content">
<h4 class="ui top attached header">
- {{.locale.Tr "admin.monitor.cron"}}
+ {{ctx.Locale.Tr "admin.monitor.cron"}}
</h4>
<div class="ui attached table segment">
<form method="post" action="{{AppSubUrl}}/admin">
@@ -9,19 +9,19 @@
<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>
+ <th>{{ctx.Locale.Tr "admin.monitor.name"}}</th>
+ <th>{{ctx.Locale.Tr "admin.monitor.schedule"}}</th>
+ <th>{{ctx.Locale.Tr "admin.monitor.next"}}</th>
+ <th>{{ctx.Locale.Tr "admin.monitor.previous"}}</th>
+ <th>{{ctx.Locale.Tr "admin.monitor.execute_times"}}</th>
+ <th>{{ctx.Locale.Tr "admin.monitor.last_execution_result"}}</th>
</tr>
</thead>
<tbody>
{{range .Entries}}
<tr>
- <td><button type="submit" class="ui primary 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><button type="submit" class="ui primary button" name="op" value="{{.Name}}" title="{{ctx.Locale.Tr "admin.dashboard.operation_run"}}">{{svg "octicon-triangle-right"}}</button></td>
+ <td>{{ctx.Locale.Tr (printf "admin.dashboard.%s" .Name)}}</td>
<td>{{.Spec}}</td>
<td>{{DateTime "full" .Next}}</td>
<td>{{if gt .Prev.Year 1}}{{DateTime "full" .Prev}}{{else}}-{{end}}</td>