monitor.tmpl 1.8 KB

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