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.4KB

1234567891011121314151617181920212223242526272829303132333435
  1. <h4 class="ui top attached header">
  2. {{.locale.Tr "admin.monitor.cron"}}
  3. </h4>
  4. <div class="ui attached table segment">
  5. <form method="post" action="{{AppSubUrl}}/admin">
  6. <table class="ui very basic striped table unstackable">
  7. <thead>
  8. <tr>
  9. <th></th>
  10. <th>{{.locale.Tr "admin.monitor.name"}}</th>
  11. <th>{{.locale.Tr "admin.monitor.schedule"}}</th>
  12. <th>{{.locale.Tr "admin.monitor.next"}}</th>
  13. <th>{{.locale.Tr "admin.monitor.previous"}}</th>
  14. <th>{{.locale.Tr "admin.monitor.execute_times"}}</th>
  15. <th>{{.locale.Tr "admin.monitor.last_execution_result"}}</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. {{range .Entries}}
  20. <tr>
  21. <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>
  22. <td>{{$.locale.Tr (printf "admin.dashboard.%s" .Name)}}</td>
  23. <td>{{.Spec}}</td>
  24. <td>{{DateFmtLong .Next}}</td>
  25. <td>{{if gt .Prev.Year 1}}{{DateFmtLong .Prev}}{{else}}N/A{{end}}</td>
  26. <td>{{.ExecTimes}}</td>
  27. <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>
  28. </tr>
  29. {{end}}
  30. </tbody>
  31. </table>
  32. <input type="hidden" name="from" value="monitor"/>
  33. {{.CsrfTokenHtml}}
  34. </form>
  35. </div>