github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/cmd/deck/template/spyglass.html (about) 1 {{define "title"}}{{.JobName}} #{{.BuildID}}{{end}} 2 3 {{define "scripts"}} 4 <script type="text/javascript"> 5 var src = {{.Source}}; 6 var lensArtifacts = {{.LensArtifacts}}; 7 var lensIndexes = {{.LensIndexes}}; 8 var rerunCreatesJob = {{.ReRunCreatesJob}}; 9 var prowJob = {{.ProwJob}}; 10 var prowJobName = {{.ProwJobName}}; 11 var prowJobState = {{.ProwJobState}}; 12 </script> 13 <script type="text/javascript" src="/static/spyglass_bundle.min.js?v={{deckVersion}}"></script> 14 <link rel="stylesheet" type="text/css" href="/static/spyglass/spyglass.css?v={{deckVersion}}"> 15 {{end}} 16 17 {{define "content"}} 18 {{$source:=.Source}} 19 {{if .Announcement}} 20 <div id="announcement"> 21 {{.Announcement}} 22 </div> 23 {{end}} 24 <div id="lens-container"> 25 {{if or .JobHistLink .ProwJobLink .ArtifactsLink .PRHistLink .PRLink .TestgridLink .ExtraLinks}} 26 <div id="links-card" class="mdl-card mdl-shadow--2dp lens-card"> 27 {{if .JobHistLink}}<a href="{{.JobHistLink}}">Job History</a>{{end}} 28 {{if .ProwJobLink}}<a href="{{.ProwJobLink}}" onclick="gtag('event', 'view_job_yaml', {event_category: 'engagement', transport_type: 'beacon'})">Prow Job YAML</a>{{end}} 29 {{if .PRHistLink}}<a href="{{.PRHistLink}}">PR History</a>{{end}} 30 {{if .PRLink}}<a href="{{.PRLink}}">PR</a>{{end}} 31 {{if .ArtifactsLink}}<a href="{{.ArtifactsLink}}">Artifacts</a>{{end}} 32 {{if .TestgridLink}}<a href="{{.TestgridLink}}">Testgrid</a>{{end}} 33 {{range .ExtraLinks}} 34 <a href="{{.URL}}" title="{{.Description}}">{{.Name}}</a> 35 {{end}} 36 </div> 37 {{end}} 38 {{$lenses:=.Lenses}} 39 {{range $index := .LensIndexes}} 40 {{$lens:=index $lenses $index}} 41 {{$config:=$lens.Config}} 42 <div class="mdl-card mdl-shadow--2dp lens-card"> 43 <div class="mdl-card__title lens-title"><h3 class="mdl-card__title-text">{{$config.Title}}</h3></div> 44 <div id="{{$config.Name}}-view-container" class="lens-view-content mdl-card__supporting-text"> 45 <img src="/static/kubernetes-wheel.svg?v={{deckVersion}}" alt="loading spinner" class="loading-spinner is-active lens-card-loading" id="{{$config.Name}}-loading"> 46 <iframe class="lens-container" style="visibility: hidden;" id="iframe-{{$index}}" sandbox="allow-scripts allow-top-navigation allow-popups allow-same-origin" data-lens-index="{{$index}}" data-lens-name="{{$config.Name}}"{{if $config.HideTitle}} data-hide-title="true"{{end}}></iframe> 47 </div> 48 </div> 49 {{end}} 50 </div> 51 {{end}} 52 53 {{template "page" (settings mobileUnfriendly darkMode "spyglass" .)}} 54 55 <div id="rerun"> 56 <div class="modal-content"></div> 57 </div>