github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/syz-cluster/dashboard/templates/index.html (about)

     1  {{define "content"}}
     2      <div class="mx-3">
     3        <form action="{{.FilterFormURL}}">
     4          <div class="row align-items-center">
     5            <div class="col-auto col-sm-3">
     6              <label for="inputCc">Cc'd</label>
     7              <input type="text" name="cc" class="form-control mb-3" value="{{.Filter.Cc}}" id="inputCc">
     8            </div>
     9            <div class="col-auto col-sm-3">
    10              <label for="inputStatus">Status</label>
    11              <select id="inputStatus" class="form-control mb-3" name="status">
    12                {{$filter := .Filter}}
    13                {{range .Statuses}}
    14                  <option value="{{.Key}}" {{if eq .Key $filter.Status}} selected{{end}}>{{.Value}}</option>
    15                {{end}}
    16              </select>
    17            </div>
    18            <div class="form-check col-auto">
    19              <input class="form-check-input" type="checkbox" name="with_findings" value="true"
    20                     id="onlyWithFindings"{{if .Filter.WithFindings}} checked=""{{end}}>
    21              <label class="form-check-label" for="onlyWithFindings">
    22                Only with findings
    23              </label>
    24            </div>
    25            <div class="col-auto">
    26              <button type="submit" class="btn btn-primary">Filter</button>
    27            </div>
    28          </div>
    29        </form>
    30      </div>
    31  
    32      {{if or .PrevPageURL .NextPageURL}}
    33      <nav class="mx-3">
    34        <ul class="pagination">
    35          <li class="page-item {{if not .PrevPageURL}}disabled{{end}}">
    36            <a class="page-link" href="{{.PrevPageURL}}" tabindex="-1">Previous</a>
    37          </li>
    38          <li class="page-item {{if not .NextPageURL}}disabled{{end}}">
    39            <a class="page-link" href="{{.NextPageURL}}">Next</a>
    40          </li>
    41        </ul>
    42      </nav>
    43      {{end}}
    44  
    45      <table class="table">
    46        <thead class="thead-light">
    47          <tr>
    48            <th scope="col">Published</th>
    49            <th scope="col">Title</th>
    50            <th scope="col">Version</th>
    51            <th scope="col">Author</th>
    52            <th scope="col">Status</th>
    53          </tr>
    54        </thead>
    55        <tbody>
    56          {{range .List}}
    57          <tr>
    58            <td>{{.Series.PublishedAt.Format "2006-01-02 15:04 MST"}}</td>
    59            <td><a href="/series/{{.Series.ID}}">{{.Series.Title}}</a></td>
    60            <td>{{.Series.Version}}</td>
    61            <td>{{.Series.AuthorEmail}}</td>
    62            <td>
    63              {{if .Session}}
    64                {{.Session.Status}}
    65                {{if eq .Session.Status "finished"}}in {{.Session.Duration}}{{end}}
    66                {{if gt .Findings 0}}<br /><b>[{{.Findings}} findings]</b>{{end}}
    67              {{else}}
    68                -
    69              {{end}}
    70            </td>
    71          </tr>
    72          {{end}}
    73        </tbody>
    74      </table>
    75  {{end}}
    76