您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

61 行
2.4KB

  1. {{define "build_detail"}}
  2. <!doctype html>
  3. <html lang="en">
  4. <head>
  5. <title>{{.Title}}</title>
  6. {{if gt .AutoRefreshSeconds 0}}<meta http-equiv="refresh" content="{{.AutoRefreshSeconds}}">{{end}}
  7. {{template "head" .}}
  8. </head>
  9. <body>
  10. {{template "nav" .}}
  11. {{if .Msg}}<div class="flash flash-ok">{{.Msg}}</div>{{end}}
  12. {{if .Err}}<div class="flash flash-err">{{.Err}}</div>{{end}}
  13. <h1>Build Detail</h1>
  14. <table>
  15. <tr><th>Build ID</th><td class="mono">{{.Build.ID}}</td></tr>
  16. <tr><th>Template ID</th><td>{{.Build.TemplateID}}</td></tr>
  17. <tr><th>Manifest ID</th><td class="mono">{{.Build.ManifestID}}</td></tr>
  18. <tr><th>Request Name</th><td>{{.Build.RequestName}}</td></tr>
  19. <tr><th>Status</th><td>{{.Build.QCStatus}}</td></tr>
  20. <tr><th>QC Job ID</th><td>{{if .Build.QCJobID}}{{.Build.QCJobID}}{{else}}-{{end}}</td></tr>
  21. <tr><th>QC Site ID</th><td>{{if .Build.QCSiteID}}{{.Build.QCSiteID}}{{else}}-{{end}}</td></tr>
  22. <tr><th>Preview URL</th><td>{{if .Build.QCPreviewURL}}<a href="{{.Build.QCPreviewURL}}" target="_blank" rel="noopener">open</a>{{else}}-{{end}}</td></tr>
  23. <tr><th>Editor URL</th><td>{{if .Build.QCEditorURL}}<a href="{{.Build.QCEditorURL}}" target="_blank" rel="noopener">open</a>{{else}}-{{end}}</td></tr>
  24. <tr><th>Started At</th><td>{{if .Build.StartedAt}}{{.Build.StartedAt}}{{else}}-{{end}}</td></tr>
  25. <tr><th>Finished At</th><td>{{if .Build.FinishedAt}}{{.Build.FinishedAt}}{{else}}-{{end}}</td></tr>
  26. </table>
  27. {{if .CanPoll}}
  28. <p>Build is active. This page auto-refreshes every {{.AutoRefreshSeconds}} seconds.</p>
  29. <form class="inline" method="post" action="/builds/{{.Build.ID}}/poll">
  30. <button type="submit">Poll Once</button>
  31. </form>
  32. {{end}}
  33. {{if .CanFetchEditorURL}}
  34. <form class="inline" method="post" action="/builds/{{.Build.ID}}/fetch-editor-url">
  35. <button type="submit">Fetch Editor URL</button>
  36. </form>
  37. {{end}}
  38. <h2>Effective Global Data (sent to /sites)</h2>
  39. <p class="mono">{{prettyJSON .EffectiveGlobal}}</p>
  40. <h2>Stored Global Data JSON</h2>
  41. <p class="mono">{{prettyJSON .Build.GlobalDataJSON}}</p>
  42. <h2>AI Data JSON</h2>
  43. <p class="mono">{{prettyJSON .Build.AIDataJSON}}</p>
  44. <h2>Final /sites Payload</h2>
  45. <p class="mono">{{prettyJSON .Build.FinalSitesPayload}}</p>
  46. <h2>QC Result JSON</h2>
  47. <p class="mono">{{prettyJSON .Build.QCResultJSON}}</p>
  48. <h2>QC Error JSON</h2>
  49. <p class="mono">{{prettyJSON .Build.QCErrorJSON}}</p>
  50. </body>
  51. </html>
  52. {{end}}