about summary refs log tree commit diff
path: root/public/submit-queue.tmpl.html
blob: c2eff3146637f4ee34533338a624f31dde89f619 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html>
<head>
  <title>Gerrit Submit Queue</title>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js" integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha256-CjSoeELFOcH0/uxWu6mC/Vlrc1AARqbm/jiiImDGV3s=" crossorigin="anonymous"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha256-YLGeXaapI0/5IgZopewRJcFXomhRMlYYjugPLSyNjTY=" crossorigin="anonymous" />
</head>
<body>
  <nav class="navbar sticky-top navbar-expand-lg navbar-dark bg-dark">
    <div class="container">
      <a class="navbar-brand" href="#">Gerrit Submit Queue</a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button></code>
      <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
          <li class="nav-item">
            <a class="nav-link" href="#region-info">Info</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="#region-queue">Current Queue</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="#region-log">Log</a>
          </li>
        </ul>
      </div>
    </div>
  </nav>
  <div class="container">
    <h2 id="region-info">Info</h2>
    <table class="table">
      <tbody>
        <tr>
          <th scope="row">Project Name:</th>
          <td>{{ .projectName }}</td>
        </tr>
        <tr>
          <th scope="row">Branch Name:</th>
          <td>{{ .branchName }}</td>
        </tr>
        <tr>
          <th scope="row">HEAD:</th>
	  <td><code>{{ .HEAD }}</code></td>
        </tr>
        <tr>
          <th scope="row">Currently running:</th>
	  <td>
	    {{ if .currentlyRunning }}
	    started at {{ .currentlyRunning.Format "Jan 02, 2006 15:04:05 UTC" }}
	    {{ else }}
	    <span class="text-secondary">Not currently running</span>
	    {{ end }}
	  </td>
        </tr>
      </tbody>
    </table>
    <h2>Current Queue</h2>
    <table class="table table-sm table-hover" id="region-queue">
      <thead class="thead-light">
        <tr>
          <th scope="col">Owner</th>
          <th scope="col">Changeset</th>
          <th scope="col">Flags</th>
        </tr>
      </thead>
      <tbody>
        {{ range $serie := .series }}
        {{ block "serie" $serie }}{{ end }}
        {{ end }}
      </tbody>
    </table>

    <h2 id="region-log">History</h2>
  </div>
</body>
</html>