diff options
author | Florian Klink <flokli@flokli.de> | 2019-11-27T12·05+0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2019-11-27T12·05+0100 |
commit | e6482a97258e0e3dba6ff29b5b01905e8b7a41a6 (patch) | |
tree | c21a1052c3371dab8d9bdb36e0dd50f3e986198e /public/submit-queue.tmpl.html | |
parent | 91deabe4b322a68f551a829d9650ee8bb74b38e3 (diff) |
submit-queue.tmpl.html: add history visualizer
Diffstat (limited to 'public/submit-queue.tmpl.html')
-rw-r--r-- | public/submit-queue.tmpl.html | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/public/submit-queue.tmpl.html b/public/submit-queue.tmpl.html index cc159d5cadf4..2d02ce36a931 100644 --- a/public/submit-queue.tmpl.html +++ b/public/submit-queue.tmpl.html @@ -60,6 +60,34 @@ {{ block "series" .series }}{{ end }} <h2 id="region-log">History</h2> - </div> + + <div id="history-accordion"> + {{ range $i, $result := .results }} + <div class="card"> + <div class="card-header"> + <h5 class="mb-0"> + <button class="btn btn-link" data-toggle="collapse" data-target="history-collapse-{{ $i }}"> + Result Item {{ $i }}, {{ $result.StartTime.Format "Jan 02, 2006 15:04:05 UTC"}} - {{ $result.EndTime.Format "Jan 02, 2006 15:04:05 UTC"}} + </button> + </h5> + </div> + <div id="history-collapse-{{ $i }}" class="collapse show" data-parent="#history-accordion"> + <div class="card-body"> + <!--// TODO: currentlyRunning, HEAD--> + {{ if $result.Error }} + <div class="text-danger">{{ $result.Error }}</div> + {{ end }} + <ul> + {{ range $logEntry := $result.LogEntries }} + <li>{{ $logEntry }}</li> + {{ end }} + </ul> + {{ block "series" $result.Series}}{{ end }} + </div> + </div> + </div> + {{ end }} + </div> + </div> <!-- .container --> </body> </html> |