| OLD | NEW |
| 1 {{define "title"}}{{.Build.Summary.Label}}{{end}} | 1 {{define "title"}}{{.Build.Summary.Label}}{{end}} |
| 2 | 2 |
| 3 {{define "head"}}{{end}} | 3 {{define "head"}}{{end}} |
| 4 | 4 |
| 5 {{define "body"}} | 5 {{define "body"}} |
| 6 <div class="content"> | 6 <div class="content"> |
| 7 <h1>{{.Build.Summary.Label}}</h1> | 7 <h1>{{.Build.Summary.Label}}</h1> |
| 8 | 8 |
| 9 <div class="column"> | 9 <div class="column"> |
| 10 | 10 |
| 11 <h2>Results:</h2> | 11 <h2>Results:</h2> |
| 12 {{ with .Build.Summary }} | 12 {{ with .Build.Summary }} |
| 13 {{ if eq .Status.String "Running" }} | 13 {{ if eq .Status.String "Running" }} |
| 14 <p class="running result">Build Running | 14 <p class="running result">Build Running |
| 15 {{ else if eq .Status.String "Success" }} | 15 {{ else if eq .Status.String "Success" }} |
| 16 <p class="success result">Build Successful | 16 <p class="success result">Build Successful |
| 17 {{ else if eq .Status.String "InfraFailure" }} | 17 {{ else if eq .Status.String "InfraFailure" }} |
| 18 <p class="exception result">Internal Failure | 18 <p class="exception result">Internal Failure |
| 19 {{ else if eq .Status.String "Failure" }} | 19 {{ else if eq .Status.String "Failure" }} |
| 20 <p class="failure result">Build Failed | 20 <p class="failure result">Build Failed |
| 21 {{ else if eq .Status.String "NotRun" }} |
| 22 <p class="pending result">Build Pending |
| 21 {{ else }} | 23 {{ else }} |
| 22 <p class="failure result">Unknown status {{.Status.String }} | 24 <p class="failure result">Unknown status {{.Status.String }} |
| 23 {{ end }} | 25 {{ end }} |
| 24 <span class="subtitle"> | 26 <span class="subtitle"> |
| 25 {{ range .Text }}<div class="step-text">{{ . }}</div>{{ end }} | 27 {{ range .Text }}<div class="step-text">{{ . }}</div>{{ end }} |
| 26 </span> | 28 </span> |
| 27 </p> | 29 </p> |
| 28 {{ end }} <!-- with --> | 30 {{ end }} <!-- with --> |
| 29 | 31 |
| 30 | 32 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 </ul> | 80 </ul> |
| 79 {{ end }} <!-- if --> | 81 {{ end }} <!-- if --> |
| 80 | 82 |
| 81 {{ if .Build.SourceStamp }} | 83 {{ if .Build.SourceStamp }} |
| 82 {{ if .Build.SourceStamp.Source }} | 84 {{ if .Build.SourceStamp.Source }} |
| 83 <h2>Reason:</h2> | 85 <h2>Reason:</h2> |
| 84 <p>{{ .Source }}</p> | 86 <p>{{ .Source }}</p> |
| 85 {{ end }} | 87 {{ end }} |
| 86 {{ end }} | 88 {{ end }} |
| 87 | 89 |
| 88 <h2>Steps and Logfiles:</h2> | 90 {{ if .Build.Components }} |
| 89 <ol> | 91 <h2>Steps and Logfiles:</h2> |
| 90 {{ range .Build.Components }} | 92 <ol> |
| 91 <li> | 93 {{ range .Build.Components }} |
| 92 <div class="status-{{.Status}} result"> | 94 <li> |
| 93 <b>{{.Label}}</b> | 95 <div class="status-{{.Status}} result"> |
| 94 <span style="float:right">( {{ .Duration | humanDuration }} )</span> | 96 <b>{{.Label}}</b> |
| 95 <span> | 97 <span style="float:right">( {{ .Duration | humanDuration }} )</spa
n> |
| 96 {{ range .Text }}<div class="step-text">{{ . }}</div>{{ end }} | 98 <span> |
| 97 </span> | 99 {{ range .Text }}<div class="step-text">{{ . }}</div>{{ end }} |
| 98 </div> | 100 </span> |
| 99 <ul> | 101 </div> |
| 100 {{ if .MainLink }} | 102 <ul> |
| 101 <li>{{.MainLink | linkify}}</li> | 103 {{ if .MainLink }} |
| 102 {{ end }} | 104 <li>{{.MainLink | linkify}}</li> |
| 103 {{ range .SubLink }} | 105 {{ end }} |
| 104 <li>{{. | linkify}}</li> | 106 {{ range .SubLink }} |
| 105 {{ end }} | 107 <li>{{. | linkify}}</li> |
| 106 {{ if not (or .MainLink .SubLink) }} | 108 {{ end }} |
| 107 <li> - no logs - </li> | 109 {{ if not (or .MainLink .SubLink) }} |
| 108 {{ end }} | 110 <li> - no logs - </li> |
| 109 </ul> | 111 {{ end }} |
| 110 </li> | 112 </ul> |
| 111 {{ end }} | 113 </li> |
| 112 </ol> | 114 {{ end }} |
| 115 </ol> |
| 116 {{ end }} <!-- if .Build.Components --> |
| 113 | 117 |
| 114 </div> | 118 </div> |
| 115 | 119 |
| 116 <div class="column"> | 120 <div class="column"> |
| 117 | 121 |
| 118 <h2>Build Properties:</h2> | 122 <h2>Build Properties:</h2> |
| 119 | 123 |
| 120 <table class="info" width="100%"> | 124 <table class="info" width="100%"> |
| 121 <tr><th>Name</th><th>Value</th><th>Source</th></tr> | 125 <tr><th>Name</th><th>Value</th><th>Source</th></tr> |
| 122 | 126 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 <script> | 195 <script> |
| 192 (function() { | 196 (function() { |
| 193 'use strict'; | 197 'use strict'; |
| 194 var startedSpan = document.getElementById('started-time'); | 198 var startedSpan = document.getElementById('started-time'); |
| 195 var finishedSpan = document.getElementById('finished-time'); | 199 var finishedSpan = document.getElementById('finished-time'); |
| 196 startedSpan.textContent = milo.formatDate('{{ .Build.Summary.Started }}'); | 200 startedSpan.textContent = milo.formatDate('{{ .Build.Summary.Started }}'); |
| 197 finishedSpan.textContent = milo.formatDate('{{ .Build.Summary.Finished }}'); | 201 finishedSpan.textContent = milo.formatDate('{{ .Build.Summary.Finished }}'); |
| 198 })(); | 202 })(); |
| 199 </script> | 203 </script> |
| 200 {{end}} | 204 {{end}} |
| OLD | NEW |