about summary refs log tree commit diff
path: root/public/submit-queue.tmpl.html
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-11-22T12·35+0100
committerFlorian Klink <flokli@flokli.de>2019-11-22T12·35+0100
commita77beee02b48e053ddbfaac2b9ed0bf843d38757 (patch)
tree6b0ee114c328834d4f9c0ab2ba499080e7b1ae2f /public/submit-queue.tmpl.html
parent26943b7419ea1b1cdbc123a25c7ab5955bb392fb (diff)
submit-queue.tmpl.html: use table to make it more usable
Diffstat (limited to 'public/submit-queue.tmpl.html')
-rw-r--r--public/submit-queue.tmpl.html62
1 files changed, 33 insertions, 29 deletions
diff --git a/public/submit-queue.tmpl.html b/public/submit-queue.tmpl.html
index cad001cd3dbd..ce72b3915241 100644
--- a/public/submit-queue.tmpl.html
+++ b/public/submit-queue.tmpl.html
@@ -9,35 +9,39 @@
   <h1>Gerrit Submit Queue</h1>
   <h2>{{ .projectName }}/{{ .branchName }} is at {{ printf "%.7s" .HEAD }}</h2>
   <h2>Current Queue:</h2>
-  <div class="card-columns">
 
-  {{ range $serie := .series }}
-
-  <div class="card" style="width: 18rem">
-  <div class="list-group">
-    {{ range $changeset := $serie.ChangeSets}}
-    <div class="list-group-item{{ if not ($serie | isAutoSubmittable) }} disabled{{ end }}">
-      <div class="d-flex w-100 justify-content-between">
-        <h5>{{ $changeset.Subject }}</h5>
-        <small><a href="{{ changesetURL $changeset }}" target="_blank">#{{ $changeset.Number }}</a></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>
-  </div>
-  {{ end }}
-  </div>
+  <table class="table table-sm table-hover">
+    <thead>
+      <tr>
+        <th scope="col">ChangeSet</th>
+        <th scope="col">Owner</th>
+        <th scope="col">Subject &amp; CommitID</th>
+        <th scope="col">Flags</th>
+      </tr>
+    </thead>
+    <tbody>
+      {{ range $serie := .series }}
+      <tr>
+        <td colspan="4">Serie with {{ len $serie.ChangeSets }} changes{{ if not ($serie | isAutoSubmittable) }}, not auto submittable {{ end }}</th>
+      </tr>
+      {{ range $changeset := $serie.ChangeSets}}
+      <tr class="{{ if $serie | isAutoSubmittable }}table-success{{ end }}">
+        <th scope="row"><a href="{{ changesetURL $changeset }}" target="_blank">#{{ $changeset.Number }}</a></th>
+        <td>{{ $changeset.OwnerName }}</td>
+        <td>
+          <strong>{{ $changeset.Subject }}</strong><br />
+          <small><code>{{ $changeset.CommitID }}</code></small>
+        </td>
+        <td>
+            <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>
+        </td>
+      </tr>
+      {{ end }}
+      {{ end }}
+    </tbody>
+  </table>
 </body>
 </html>