You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cron.tmpl 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
  2. <div class="admin-setting-content">
  3. <h4 class="ui top attached header">
  4. {{ctx.Locale.Tr "admin.monitor.cron"}}
  5. </h4>
  6. <div class="ui attached table segment">
  7. <form method="post" action="{{AppSubUrl}}/admin">
  8. <table class="ui very basic striped table unstackable gt-mb-0">
  9. <thead>
  10. <tr>
  11. <th></th>
  12. <th>{{ctx.Locale.Tr "admin.monitor.name"}}</th>
  13. <th>{{ctx.Locale.Tr "admin.monitor.schedule"}}</th>
  14. <th>{{ctx.Locale.Tr "admin.monitor.next"}}</th>
  15. <th>{{ctx.Locale.Tr "admin.monitor.previous"}}</th>
  16. <th>{{ctx.Locale.Tr "admin.monitor.execute_times"}}</th>
  17. <th>{{ctx.Locale.Tr "admin.monitor.last_execution_result"}}</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. {{range .Entries}}
  22. <tr>
  23. <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>
  24. <td>{{ctx.Locale.Tr (printf "admin.dashboard.%s" .Name)}}</td>
  25. <td>{{.Spec}}</td>
  26. <td>{{DateTime "full" .Next}}</td>
  27. <td>{{if gt .Prev.Year 1}}{{DateTime "full" .Prev}}{{else}}-{{end}}</td>
  28. <td>{{.ExecTimes}}</td>
  29. <td {{if ne .Status ""}}data-tooltip-content="{{.FormatLastMessage ctx.Locale}}"{{end}} >{{if eq .Status ""}}—{{else if eq .Status "finished"}}{{svg "octicon-check" 16}}{{else}}{{svg "octicon-x" 16}}{{end}}</td>
  30. </tr>
  31. {{end}}
  32. </tbody>
  33. </table>
  34. <input type="hidden" name="from" value="monitor">
  35. {{.CsrfTokenHtml}}
  36. </form>
  37. </div>
  38. </div>
  39. {{template "admin/layout_footer" .}}