github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/prow/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 </style> 12 {{end}} 13 {{define "content"}} 14 <div class="table-container"> 15 <table id="history-table" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp"> 16 <thead> 17 <tr> 18 <th></th> 19 {{range .Commits}} 20 <th class="mdl-data-table__cell--non-numeric" colspan="{{.MaxWidth}}"> 21 {{if .Link}} 22 <a href="{{.Link}}">{{.HashPrefix}}</a> 23 {{else}} 24 <span>{{.HashPrefix}}</span> 25 {{end}} 26 </th> 27 {{end}} 28 </tr> 29 </thead> 30 <tbody> 31 {{range .Jobs}} 32 <tr> 33 <td class="mdl-data-table__cell--non-numeric">{{if .Link}}<a href="{{.Link}}">{{.Name}}</a>{{else}}{{.Name}}{{end}}</td> 34 {{range .Builds}} 35 <td class="mdl-data-table__cell--non-numeric {{if eq .Result "SUCCESS"}}run-success{{else if eq .Result "FAILURE"}}run-failure{{end}}">{{if .SpyglassLink}}<a href="{{.SpyglassLink}}">{{.ID}}</a>{{else}}{{.ID}}{{end}}</td> 36 {{end}} 37 </tr> 38 {{end}} 39 </tbody> 40 </table> 41 </div> 42 {{end}} 43 44 {{template "page" (settings mobileUnfriendly "pr-history" .)}}