| 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 {{ if eq .Build.Summary.Status.String "Running" }} | 12 {{ if eq .Build.Summary.Status.String "Running" }} |
| 13 <p class="running result">Build running | 13 <p class="running result">Build running |
| 14 {{ else if eq .Build.Summary.Status.String "Success" }} | 14 {{ else if eq .Build.Summary.Status.String "Success" }} |
| 15 <p class="success result">Build successful | 15 <p class="success result">Build successful |
| 16 {{ else if eq .Build.Summary.Status.String "InfraFailure" }} | 16 {{ else if eq .Build.Summary.Status.String "InfraFailure" }} |
| 17 <p class="exception result">Internal Failure | 17 <p class="exception result">Internal Failure |
| 18 {{ else if eq .Build.Summary.Status.String "Failure" }} | 18 {{ else if eq .Build.Summary.Status.String "Failure" }} |
| 19 <p class="failure result">Failed | 19 <p class="failure result">Failed |
| 20 {{ else }} | 20 {{ else }} |
| 21 <p class="failure result">Unknown status {{.Build.Summary.Status.String
}} | 21 <p class="failure result">Unknown status {{.Build.Summary.Status.String
}} |
| 22 <!--- TODO(hinoka): step text --> | 22 <!--- TODO(hinoka): step text --> |
| 23 {{ end }} | 23 {{ end }} |
| 24 <span class="subtitle"> | 24 <span class="subtitle"> |
| 25 {{ range .Build.Summary.Text }}{{ . }}{{ end }} | 25 {{ range .Text }}<div class="step-text">{{ . }}</div>{{ end }} |
| 26 </span> | 26 </span> |
| 27 </p> | 27 </p> |
| 28 | 28 |
| 29 | 29 |
| 30 {{ if .Build.SourceStamp }} | 30 {{ if .Build.SourceStamp }} |
| 31 {{ with .Build.SourceStamp }} | 31 {{ with .Build.SourceStamp }} |
| 32 | 32 |
| 33 <h2>SourceStamp:</h2> | 33 <h2>SourceStamp:</h2> |
| 34 | 34 |
| 35 <table class="info" width="100%"> | 35 <table class="info" width="100%"> |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 <p>{{ .Source }}</p> | 69 <p>{{ .Source }}</p> |
| 70 {{ end }} | 70 {{ end }} |
| 71 {{ end }} | 71 {{ end }} |
| 72 | 72 |
| 73 <h2>Steps and Logfiles:</h2> | 73 <h2>Steps and Logfiles:</h2> |
| 74 <ol> | 74 <ol> |
| 75 {{ range .Build.Components }} | 75 {{ range .Build.Components }} |
| 76 <li> | 76 <li> |
| 77 <div class="status-{{.Status}} result"> | 77 <div class="status-{{.Status}} result"> |
| 78 <b>{{.Label}}</b> | 78 <b>{{.Label}}</b> |
| 79 {{ range .Text }} {{ . }} {{ end }} | 79 <span> |
| 80 {{ range .Text }}<div class="step-text">{{ . }}</div>{{ end }} |
| 81 </span> |
| 80 <span style="float:right">( {{ .Duration | humanDuration }} )<
/span> | 82 <span style="float:right">( {{ .Duration | humanDuration }} )<
/span> |
| 81 </div> | 83 </div> |
| 82 <ul> | 84 <ul> |
| 83 {{ if .MainLink }} | 85 {{ if .MainLink }} |
| 84 <li><a href="{{.MainLink.URL}}">{{.MainLink.Label}}</a></li> | 86 <li><a href="{{.MainLink.URL}}">{{.MainLink.Label}}</a></li> |
| 85 {{ end }} | 87 {{ end }} |
| 86 {{ range .SubLink }} | 88 {{ range .SubLink }} |
| 87 <li><a href="{{.URL}}">{{.Label}}</a></li> | 89 <li><a href="{{.URL}}">{{.Label}}</a></li> |
| 88 {{ end }} | 90 {{ end }} |
| 89 {{ if not (or .MainLink .SubLink) }} | 91 {{ if not (or .MainLink .SubLink) }} |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 <script> | 176 <script> |
| 175 (function() { | 177 (function() { |
| 176 'use strict'; | 178 'use strict'; |
| 177 var startedSpan = document.getElementById('started-time'); | 179 var startedSpan = document.getElementById('started-time'); |
| 178 var finishedSpan = document.getElementById('finished-time'); | 180 var finishedSpan = document.getElementById('finished-time'); |
| 179 startedSpan.textContent = milo.formatDate('{{ .Build.Summary.Started }}'); | 181 startedSpan.textContent = milo.formatDate('{{ .Build.Summary.Started }}'); |
| 180 finishedSpan.textContent = milo.formatDate('{{ .Build.Summary.Finished }}'); | 182 finishedSpan.textContent = milo.formatDate('{{ .Build.Summary.Finished }}'); |
| 181 })(); | 183 })(); |
| 182 </script> | 184 </script> |
| 183 {{end}} | 185 {{end}} |
| OLD | NEW |