本站源代码
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.

62 lines
1.6KB

  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>{{DateFmtLong .Start}}</td>
  52. <td>{{TimeSince .Start $.Lang}}</td>
  53. </tr>
  54. {{end}}
  55. </tbody>
  56. </table>
  57. </div>
  58. </div>
  59. </div>
  60. {{template "base/footer" .}}
上海开阖软件有限公司 沪ICP备12045867号-1