about summary refs log tree commit diff
path: root/public
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-11-18T15·29+0100
committerFlorian Klink <flokli@flokli.de>2019-11-18T15·29+0100
commitdbd7b4807a6364630d43edf309eb4b43f4bb3658 (patch)
tree6150837d72f22232bdf123acd55edc34b9c1f47c /public
parent987b539e335ebc93eba9549ebf8204d612b7a148 (diff)
use statik to bundle assets, add nix-shell/lorri .envrc
Diffstat (limited to 'public')
-rw-r--r--public/submit-queue.tmpl.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/public/submit-queue.tmpl.html b/public/submit-queue.tmpl.html
new file mode 100644
index 000000000000..f1320a0c2dde
--- /dev/null
+++ b/public/submit-queue.tmpl.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <title>Gerrit Submit Queue</title>
+  <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>
+  <h1>Gerrit Submit Queue</h1>
+  <h2>{{ .projectName }}/{{ .branchName }} is at {{ printf "%.7s" .HEAD }}</h2>
+  <h2>Current Queue:</h2>
+  {{ range $serie := .series }}
+  <div class="list-group">
+    {{ range $changeset := $serie.ChangeSets}}
+    <div class="list-group-item">
+      <div class="d-flex w-100 justify-content-between">
+        <h5>{{ $changeset.Subject }}</h5>
+        <small>#{{ $changeset.Number }}</small>
+      </div>
+      <div class="d-flex w-100 justify-content-between">
+          <small>{{ $changeset.OwnerName }}</small>
+          <span>
+              {{ if $changeset.IsVerified }}<span class="badge badge-success badge-pill">+1 (CI)</span>{{ end }}
+              {{ if $changeset.IsCodeReviewed }}<span class="badge badge-info badge-pill">+2 (CR)</span>{{ end }}
+          </span>
+      </div>
+      <div>
+        <code>
+          {{ $changeset.CommitID }}
+        </code>
+      </div>
+    </div>
+    {{ end }}
+  </div>
+  <br />
+  {{ end }}
+</body>
+</html>