github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/cmd/deck/template/job-history.html (about) 1 {{define "title"}}Job History: {{.Name}}{{end}} 2 {{define "scripts"}} 3 <script type="text/javascript" src="/static/job_history_bundle.min.js?v={{deckVersion}}"></script> 4 <script type="text/javascript"> 5 var allBuilds = {{.Builds}}; 6 </script> 7 8 <style> 9 .run-success { 10 background-color: rgba(0, 255, 0, 0.3); 11 } 12 .run-failure { 13 background-color: rgba(255, 0, 0, 0.3); 14 } 15 .run-error { 16 background-color: rgba(255, 100, 0, 0.3); 17 } 18 .run-pending { 19 background-color: rgba(255, 255, 0, 0.3); 20 } 21 .run-aborted { 22 background-color: rgba(200, 200, 200, 1.0); 23 } 24 </style> 25 {{end}} 26 27 {{define "content"}} 28 <div class="table-container"> 29 <table id="history-table" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp" style="max-width: 1000px"> 30 <thead> 31 <tr> 32 <th class="mdl-data-table__cell--non-numeric">Build</th> 33 <th class="mdl-data-table__cell--non-numeric">Revision</th> 34 <th class="mdl-data-table__cell--non-numeric">Started</th> 35 <th class="mdl-data-table__cell--non-numeric">Duration</th> 36 <th class="mdl-data-table__cell--non-numeric">Result</th> 37 </tr> 38 </thead> 39 <tbody id="history-table-body"> 40 </tbody> 41 </table> 42 <table style="max-width: 1000px"> 43 <tr> 44 {{if .OlderLink}} 45 <td><a href="{{.OlderLink}}"><- Older Runs</a></td> 46 {{end}} 47 {{if .NewerLink}} 48 <td><a href="{{.NewerLink}}">Newer Runs -></a></td> 49 {{end}} 50 {{if .LatestLink}} 51 <td><a href="{{.LatestLink}}">Latest Runs</a></td> 52 {{end}} 53 <td></td> 54 </tr> 55 </table> 56 </div> 57 <br> 58 <p>Showing {{.ResultsShown}}/{{.ResultsTotal}} results</p> 59 {{end}} 60 61 {{template "page" (settings mobileUnfriendly lightMode "job-history" .)}}