| OLD | NEW |
| 1 {{define "title"}} | 1 {{define "title"}} |
| 2 {{ with .Build.Summary -}} | 2 {{ with .Build.Summary -}} |
| 3 {{ if eq .Status.String "InfraFailure" }} | 3 {{ if eq .Status.String "InfraFailure" }} |
| 4 Infra Failure | 4 Infra Failure |
| 5 {{ else if eq .Status.String "Exception" }} | 5 {{ else if eq .Status.String "Exception" }} |
| 6 Exception | 6 Exception |
| 7 {{ else if eq .Status.String "Failure" }} | 7 {{ else if eq .Status.String "Failure" }} |
| 8 Failed | 8 Failed |
| 9 {{ else if eq .Status.String "NotRun" }} | 9 {{ else if eq .Status.String "NotRun" }} |
| 10 Pending | 10 Pending |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 {{ if .Build.SourceStamp }} | 142 {{ if .Build.SourceStamp }} |
| 143 {{ if .Build.SourceStamp.Source }} | 143 {{ if .Build.SourceStamp.Source }} |
| 144 <h2>Reason:</h2> | 144 <h2>Reason:</h2> |
| 145 <p>{{ .Source }}</p> | 145 <p>{{ .Source }}</p> |
| 146 {{ end }} | 146 {{ end }} |
| 147 {{ end }} | 147 {{ end }} |
| 148 | 148 |
| 149 {{ if or .Build.Components .Build.Summary.SubLink }} | 149 {{ if or .Build.Components .Build.Summary.SubLink }} |
| 150 <h2>Steps and Logfiles:</h2> | 150 <h2>Steps and Logfiles:</h2> |
| 151 <input type="checkbox" id="showHidden"> | 151 Show: |
| 152 <label for="showHidden">Show hidden <span id="numHidden"></span></label> | 152 <input type="radio" name="hider" id="showAll"> |
| 153 <ol id="steps" class="hide"> | 153 <label for="showAll">All</label> |
| 154 <input type="radio" name="hider" id="showStandard" checked> |
| 155 <label for="showStandard">Standard</label> |
| 156 <input type="radio" name="hider" id="showInteresting"> |
| 157 <label for="showInteresting">Interesting Only</label> |
| 158 <ol id="steps" class="standard"> |
| 154 | 159 |
| 155 {{ with .Build.Summary }} | 160 {{ with .Build.Summary }} |
| 156 {{ if .SubLink }} | 161 {{ if .SubLink }} |
| 157 <li class="verbosity-{{.Verbosity.String}}"> | 162 <li class="verbosity-{{.Verbosity.String}}"> |
| 158 <div class="status-{{.Status}} result"> | 163 <div class="status-{{.Status}} result"> |
| 159 <b>Steps</b> | 164 <b>Steps</b> |
| 160 {{ if .Duration -}} | 165 {{ if .Duration -}} |
| 161 <span style="float:right" | 166 <span style="float:right" |
| 162 class="duration" | 167 class="duration" |
| 163 data-starttime="{{ .Started | formatTime }}" | 168 data-starttime="{{ .Started | formatTime }}" |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 323 |
| 319 </li> | 324 </li> |
| 320 {{ end }} | 325 {{ end }} |
| 321 </ol> | 326 </ol> |
| 322 </div> | 327 </div> |
| 323 {{ end }} | 328 {{ end }} |
| 324 </div> | 329 </div> |
| 325 </div> | 330 </div> |
| 326 <script language="javascript"> | 331 <script language="javascript"> |
| 327 $(document).ready(function() { | 332 $(document).ready(function() { |
| 328 var check = function(checked) { | 333 |
| 329 var things = $("#steps"); | 334 var check = function(className) { |
| 330 if (checked) { | 335 $("#steps").removeClass("all standard interesting").addClass(className) |
| 331 $("#steps").removeClass("hide"); | 336 } |
| 332 } else { | 337 |
| 333 $("#steps").addClass("hide"); | 338 $("#showInteresting").click(function(e) { |
| 339 check("interesting"); |
| 340 }); |
| 341 $("#showStandard").click(function(e) { |
| 342 check("standard"); |
| 343 }); |
| 344 $("#showAll").click(function(e) { |
| 345 check("all"); |
| 346 }); |
| 347 |
| 348 $("input[name='hider']").each(function(){ |
| 349 if ($(this).prop("checked")) { |
| 350 $(this).click(); |
| 334 } | 351 } |
| 335 var numHidden = $(".verbosity-Hidden").length; | |
| 336 if (numHidden > 0) { | |
| 337 $("#numHidden").text("(" + numHidden + " hidden)"); | |
| 338 } else { | |
| 339 $("#numHidden").text(""); | |
| 340 } | |
| 341 }; | |
| 342 | |
| 343 check($("#showHidden").is(":checked")); | |
| 344 $("#showHidden").click(function(e) { | |
| 345 check($(this).is(":checked")); | |
| 346 }); | 352 }); |
| 347 }); | 353 }); |
| 348 </script> | 354 </script> |
| 349 {{end}} | 355 {{end}} |
| OLD | NEW |