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.

show.tmpl 2.7 kB

5 years ago
5 years ago
5 years ago
3 years ago
4 years ago
4 years ago
5 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {{template "base/head" .}}
  2. <div class="repository">
  3. {{template "repo/header" .}}
  4. <div class="repository new repo ui middle very relaxed page grid">
  5. <div class="column">
  6. {{template "base/alert" .}}
  7. <h4 class="ui header" id="vertical-segment">
  8. <a href="javascript:window.history.back();"><i class="arrow left icon"></i>返回</a>
  9. </h4>
  10. <div>
  11. <div class="ui yellow segment">
  12. {{with .task}}
  13. <p>任务名称: {{.JobName}}</p>
  14. {{end}}
  15. </div>
  16. <div class="ui green segment">
  17. <p>任务结果:</p>
  18. {{with .taskRes}}
  19. {{range .TaskStatuses}}
  20. <table class="ui celled striped table">
  21. <tbody>
  22. <tr>
  23. <td class="four wide"> 状态 </td>
  24. <td> {{.State}} </td>
  25. </tr>
  26. </tbody>
  27. </table>
  28. {{end}}
  29. {{end}}
  30. </div>
  31. <div class="ui blue segment">
  32. {{with .result}}
  33. <table class="ui celled striped table">
  34. <thead>
  35. <tr> <th colspan="2"> 硬件信息 </th> </tr>
  36. </thead>
  37. <tbody>
  38. <tr>
  39. <td class="four wide"> CPU </td>
  40. <td>{{.Resource.CPU}}</td>
  41. </tr>
  42. <tr>
  43. <td> Memory </td>
  44. <td>{{.Resource.Memory}}</td>
  45. </tr>
  46. <tr>
  47. <td> NvidiaComGpu </td>
  48. <td>{{.Resource.NvidiaComGpu}}</td>
  49. </tr>
  50. </tbody>
  51. </table>
  52. <table class="ui celled striped table">
  53. <thead>
  54. <tr> <th colspan="2"> 调试信息 </th> </tr>
  55. </thead>
  56. <tbody>
  57. <tr>
  58. <td class="four wide"> 平台 </td>
  59. <td> {{.Platform}} </td>
  60. </tr>
  61. <tr>
  62. <td> 开始时间 </td>
  63. <td>{{.JobStatus.StartTime}}</td>
  64. </tr>
  65. <tr>
  66. <td> 结束时间 </td>
  67. <td>{{.JobStatus.EndTime}}</td>
  68. </tr>
  69. <tr>
  70. <td> ExitCode </td>
  71. <td>{{.JobStatus.AppExitCode}}</td>
  72. </tr>
  73. <tr>
  74. <td> 退出信息 </td>
  75. <td>{{.JobStatus.AppExitDiagnostics | nl2br}}</td>
  76. </tr>
  77. </tbody>
  78. </table>
  79. {{end}}
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. {{template "base/footer" .}}