2019-11-18 15:40:46 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Gerrit Submit Queue</title>
|
2019-11-22 16:41:19 +01:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js" integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin="anonymous"></script>
|
2019-11-18 15:40:46 +01:00
|
|
|
<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>
|
2019-11-27 13:13:48 +01:00
|
|
|
<nav class="navbar sticky-top navbar-expand-sm navbar-dark bg-dark">
|
2019-11-22 16:41:19 +01:00
|
|
|
<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>
|
2019-11-27 19:17:22 +01:00
|
|
|
</button>
|
2019-11-22 16:41:19 +01:00
|
|
|
<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>
|
2019-11-25 18:22:55 +01:00
|
|
|
<th scope="row">Currently running:</th>
|
|
|
|
<td>
|
|
|
|
{{ if .currentlyRunning }}
|
2019-11-27 19:18:02 +01:00
|
|
|
started at {{ .currentlyRunning.Format "2006-01-02 15:04:05 UTC" }}
|
2019-11-25 18:22:55 +01:00
|
|
|
{{ else }}
|
|
|
|
<span class="text-secondary">Not currently running</span>
|
|
|
|
{{ end }}
|
|
|
|
</td>
|
2019-11-22 16:41:19 +01:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2019-11-27 19:18:02 +01:00
|
|
|
<h2 id="region-log">Log</h2>
|
2019-11-27 13:05:22 +01:00
|
|
|
|
|
|
|
<div id="history-accordion">
|
|
|
|
{{ range $i, $result := .results }}
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
2019-11-27 19:18:02 +01:00
|
|
|
<h5>
|
|
|
|
<button class="btn btn-link" data-toggle="collapse" data-target="#history-collapse-{{ $i }}">
|
|
|
|
Result Item {{ $i }}, {{ $result.StartTime.Format "2006-01-02 15:04:05 UTC"}} - {{ $result.EndTime.Format "2006-01-02 15:04:05 UTC"}}
|
2019-11-27 13:05:22 +01:00
|
|
|
</button>
|
|
|
|
</h5>
|
|
|
|
</div>
|
2019-11-27 19:18:02 +01:00
|
|
|
<div id="history-collapse-{{ $i }}" class="collapse {{ if eq $i 0 }} show{{ end }}" data-parent="#history-accordion">
|
2019-11-27 13:05:22 +01:00
|
|
|
<div class="card-body">
|
2019-11-27 19:39:42 +01:00
|
|
|
<table class="table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">HEAD:</th>
|
|
|
|
<td><code>{{ .HEAD }}</code></td>
|
|
|
|
</tr>
|
|
|
|
{{ if $result.Error }}
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Error:</th>
|
|
|
|
<td class="text-danger">{{ $result.Error }}</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2019-11-27 19:31:20 +01:00
|
|
|
{{ end }}
|
2019-11-27 19:39:42 +01:00
|
|
|
<tr>
|
|
|
|
<th scope="row">Log:</th>
|
|
|
|
<td class="bg-dark text-white">
|
|
|
|
{{ range $logEntry := $result.LogEntries }}
|
|
|
|
<code>{{ $logEntry }}</code><br />
|
|
|
|
{{ end }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
|
|
|
{{ block "series" $result.Series}}{{ end }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2019-11-27 13:05:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div> <!-- .container -->
|
2019-11-18 15:40:46 +01:00
|
|
|
</body>
|
|
|
|
</html>
|