github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/cmd/deck/template/pr-history.html (about) 1 {{define "title"}}PR History: {{.Name}}{{end}} 2 {{define "pageTitle"}}PR History: <a style="color: inherit; text-decoration: underline;" href="{{.Link}}">{{.Name}}</a>{{end}} 3 {{define "scripts"}} 4 <style> 5 .run-success { 6 background-color: rgba(0, 255, 0, 0.3); 7 } 8 .run-failure { 9 background-color: rgba(255, 0, 0, 0.3); 10 } 11 .run-pending { 12 background-color: rgba(255, 255, 0, 0.3); 13 } 14 .run-aborted { 15 background-color: rgba(200, 200, 200, 1.0); 16 } 17 </style> 18 {{end}} 19 {{define "content"}} 20 <div class="table-container"> 21 <table id="history-table" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp"> 22 <thead> 23 <tr> 24 <th></th> 25 {{range .Commits}} 26 <th class="mdl-data-table__cell--non-numeric" colspan="{{.MaxWidth}}"> 27 {{if .Link}} 28 <a href="{{.Link}}">{{.HashPrefix}}</a> 29 {{else}} 30 <span>{{.HashPrefix}}</span> 31 {{end}} 32 </th> 33 {{end}} 34 </tr> 35 </thead> 36 <tbody> 37 {{range .Jobs}} 38 <tr> 39 <td class="mdl-data-table__cell--non-numeric">{{if .Link}}<a href="{{.Link}}">{{.Name}}</a>{{else}}{{.Name}}{{end}}</td> 40 {{range .Builds}} 41 <td class="mdl-data-table__cell--non-numeric {{if eq .Result "SUCCESS"}}run-success{{else if eq .Result "FAILURE"}}run-failure{{else if eq .Result "PENDING"}}run-pending{{else if eq .Result "ABORTED"}}run-aborted{{end}}">{{if .SpyglassLink}}<a href="{{.SpyglassLink}}">{{.ID}}</a>{{else}}{{.ID}}{{end}}</td> 42 {{end}} 43 </tr> 44 {{end}} 45 </tbody> 46 </table> 47 </div> 48 {{end}} 49 50 {{template "page" (settings mobileUnfriendly lightMode "pr-history" .)}}