go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/casviewer/templates/pages/tree.html (about)

     1  <!--
     2    Copyright 2020 The LUCI Authors. All rights reserved.
     3    Use of this source code is governed under the Apache License, Version 2.0
     4    that can be found in the LICENSE file.
     5  -->
     6  {{define "body"}}
     7  <table>
     8    <thead>
     9      <th>Name</th>
    10      <th>Size</th>
    11      <th>Digest</th>
    12    </thead>
    13    <tbody>
    14    {{range .Directories}}
    15      <tr>
    16        <td><a href="{{ treeURL $.Instance . }}">{{.Name}}/</a></td>
    17        <td></td>
    18        <td><pre class="no-margin">{{.Digest.Hash}}/{{.Digest.SizeBytes}}</pre></td>
    19      </tr>
    20    {{end}}
    21    {{range .Symlinks}}
    22      <tr>
    23          <td>{{.Name}}</td>
    24          <td></td>
    25          <td>symlink target: {{.Target}}</td>
    26      </tr>
    27    {{end}}
    28    {{range .Files}}
    29      <tr>
    30        <td><a href="{{ getURL $.Instance . }}" target="_blank">{{.Name}}</a></td>
    31        <td>{{.Digest.SizeBytes | readableBytes}}</td>
    32        <td><pre class="no-margin">{{.Digest.Hash}}/{{.Digest.SizeBytes}}</pre></td>
    33      </tr>
    34    {{end}}
    35    <tbody>
    36  </table>
    37  
    38  {{end}} <!-- body -->