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

monitor.tmpl 2.2 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. <th></th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. {{range .Processes}}
  49. <tr>
  50. <td>{{.PID}}</td>
  51. <td>{{.Description}}</td>
  52. <td>{{DateFmtLong .Start}}</td>
  53. <td>{{TimeSince .Start $.Lang}}</td>
  54. <td><a class="delete-button" href="" data-url="{{$.Link}}/cancel/{{.PID}}" data-id="{{.PID}}" data-name="{{.Description}}"><i class="close icon text red"></i></a></td>
  55. </tr>
  56. {{end}}
  57. </tbody>
  58. </table>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="ui small basic delete modal">
  63. <div class="ui icon header">
  64. <i class="close icon"></i>
  65. {{.i18n.Tr "admin.monitor.process.cancel"}}
  66. </div>
  67. <div class="content">
  68. <p>{{$.i18n.Tr "admin.monitor.process.cancel_notices" `<span class="name"></span>` | Safe}}</p>
  69. <p>{{$.i18n.Tr "admin.monitor.process.cancel_desc"}}</p>
  70. </div>
  71. {{template "base/delete_modal_actions" .}}
  72. </div>
  73. {{template "base/footer" .}}