github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/prow/spyglass/lenses/buildlog/template.html (about)

     1  {{define "header"}}
     2  <link rel="stylesheet" href="buildlog.css">
     3  <script type="text/javascript" src="script_bundle.min.js"></script>
     4  {{end}}
     5  {{define "body"}}
     6  <div style="font-family:monospace;">
     7  {{range $log := .LogViews}}
     8    <div>
     9      <h4 style="margin: 0;">
    10        <a href="{{$log.ArtifactLink}}">{{$log.ArtifactName}}<i class="material-icons" style="font-size: 1em; vertical-align: middle;">link</i></a>
    11        <button class="show-all-button" data-artifact="{{$log.ArtifactName}}">Show all hidden lines</button>
    12      </h4>
    13      <table class="loglines" id="{{$log.ArtifactName}}-content">
    14      {{range $g := $log.LineGroups}}
    15      {{if $g.Skip}}
    16        <tbody class="show-skipped" data-artifact="{{$log.ArtifactName}}" data-offset="{{$g.ByteOffset}}" data-length="{{$g.ByteLength}}" data-start-line="{{$g.Start}}">
    17        <tr>
    18          <td></td>
    19          <td><button>Show {{$g.LinesSkipped}} hidden lines</button></td>
    20        </tr>
    21        </tbody>
    22      {{else}}
    23        <tbody class="shown">
    24        {{template "line group" $g.LogLines}}
    25        </tbody>
    26      {{end}}
    27      {{end}}
    28      </table>
    29    </div>
    30  {{end}}
    31  </div>
    32  {{end}}
    33  
    34  {{define "line group"}}
    35    {{range .}}
    36      <tr>
    37        <td class="linenum">{{.Number}}</td>
    38        <td>
    39          <span {{if .Highlighted}}class="line-highlighted"{{end}}>
    40            {{- range .SubLines -}}<span {{if .Highlighted}}class="match-highlighted"{{end}}>{{.Text}}</span>{{- end -}}
    41          </span>
    42        </td>
    43      </tr>
    44    {{end}}
    45  {{end}}