github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/pkg/spyglass/lenses/links/template.html (about) 1 {{define "header"}} 2 <link rel="stylesheet" href="links.css"> 3 <script type="text/javascript" src="script_bundle.min.js"></script> 4 {{end}} 5 6 {{define "body"}} 7 <table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp"> 8 <tbody> 9 {{range $ix, $linkGroup := .LinkGroups}} 10 <tr class="header links-expander"> 11 <td class="mdl-data-table__cell--non-numeric expander"><h6>{{$linkGroup.Title}}</h6></td> 12 <td class="mdl-data-table__cell--non-numeric expander"><i class="icon-button material-icons arrow-icon noselect">expand_more</i></td> 13 </tr> 14 <tbody class="hidden-links"> 15 {{range $jx, $link := $linkGroup.Links}} 16 <tr> 17 <td class="mdl-data-table__cell--non-numeric">{{$link.Name}}</td> 18 <td class="mdl-data-table__cell--non-numeric link"> 19 <button class="copy" data-link="{{$link.URL}}">Copy</button> 20 {{if $link.Link}} 21 <a href="{{$link.Link}}">{{$link.URL}}</a> 22 {{else}} 23 {{$link.URL}} 24 {{end}} 25 </td> 26 </tr> 27 {{end}} 28 </tbody> 29 {{end}} 30 </tbody> 31 </table> 32 {{end}}