frontend: show submittable status and URL, add runner, revamp logging

This commit is contained in:
Florian Klink 2019-11-21 16:12:04 +01:00
parent 43f8205e85
commit 057294830e
7 changed files with 186 additions and 56 deletions

View file

@ -9,13 +9,17 @@
<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">
<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>#{{ $changeset.Number }}</small>
<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>
@ -32,7 +36,8 @@
</div>
{{ end }}
</div>
<br />
</div>
{{ end }}
</div>
</body>
</html>