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.

61 lines
1.6 KiB

  1. {{template "base/head" .}}
  2. <div class="admin monitor">
  3. {{template "admin/navbar" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <h4 class="ui top attached header">
  7. {{.i18n.Tr "admin.monitor.cron"}}
  8. </h4>
  9. <div class="ui attached table segment">
  10. <table class="ui very basic striped table">
  11. <thead>
  12. <tr>
  13. <th>{{.i18n.Tr "admin.monitor.name"}}</th>
  14. <th>{{.i18n.Tr "admin.monitor.schedule"}}</th>
  15. <th>{{.i18n.Tr "admin.monitor.next"}}</th>
  16. <th>{{.i18n.Tr "admin.monitor.previous"}}</th>
  17. <th>{{.i18n.Tr "admin.monitor.execute_times"}}</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. {{range .Entries}}
  22. <tr>
  23. <td>{{.Description}}</td>
  24. <td>{{.Spec}}</td>
  25. <td>{{DateFmtLong .Next}}</td>
  26. <td>{{if gt .Prev.Year 1 }}{{DateFmtLong .Prev}}{{else}}N/A{{end}}</td>
  27. <td>{{.ExecTimes}}</td>
  28. </tr>
  29. {{end}}
  30. </tbody>
  31. </table>
  32. </div>
  33. <h4 class="ui top attached header">
  34. {{.i18n.Tr "admin.monitor.process"}}
  35. </h4>
  36. <div class="ui attached table segment">
  37. <table class="ui very basic striped table">
  38. <thead>
  39. <tr>
  40. <th>Pid</th>
  41. <th>{{.i18n.Tr "admin.monitor.desc"}}</th>
  42. <th>{{.i18n.Tr "admin.monitor.start"}}</th>
  43. <th>{{.i18n.Tr "admin.monitor.execute_time"}}</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. {{range .Processes}}
  48. <tr>
  49. <td>{{.PID}}</td>
  50. <td>{{.Description}}</td>
  51. <td>{{.Start.FormatLong}}</td>
  52. <td>{{TimeSinceUnix .Start $.Lang}}</td>
  53. </tr>
  54. {{end}}
  55. </tbody>
  56. </table>
  57. </div>
  58. </div>
  59. </div>
  60. {{template "base/footer" .}}