88 lines
2.6 KiB
HTML
88 lines
2.6 KiB
HTML
{{define "content"}}
|
|
<div class="target-detail">
|
|
<div class="detail-header">
|
|
<span class="badge badge-{{.Target.Type}}">{{.Target.Type}}</span>
|
|
<span class="detail-repo">{{.Target.RepoName}}</span>
|
|
</div>
|
|
|
|
<h3>{{.Target.Name}}</h3>
|
|
|
|
<div class="detail-grid">
|
|
<div class="detail-item">
|
|
<label>Type</label>
|
|
<span>{{.Target.Type}}</span>
|
|
</div>
|
|
<div class="detail-item">
|
|
<label>Runs</label>
|
|
<span>{{.Target.RunCount}}</span>
|
|
</div>
|
|
<div class="detail-item">
|
|
<label>Corpus Entries</label>
|
|
<span>{{.Target.CorpusCount}}</span>
|
|
</div>
|
|
<div class="detail-item">
|
|
<label>Created</label>
|
|
<span>{{timeAgo .Target.CreatedAt}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
<section class="section">
|
|
<h3>Runs</h3>
|
|
{{if .Runs}}
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Status</th>
|
|
<th>Commit</th>
|
|
<th>Artifacts</th>
|
|
<th>Started</th>
|
|
<th>Finished</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Runs}}
|
|
<tr>
|
|
<td><span class="badge badge-run-{{.Status}}">{{.Status}}</span></td>
|
|
<td><code>{{shortSHA .CommitSHA}}</code></td>
|
|
<td>{{.ArtifactCount}}</td>
|
|
<td>{{timeAgo .StartedAt}}</td>
|
|
<td>{{if .FinishedAt}}{{timeAgo (derefTime .FinishedAt)}}{{else}}-{{end}}</td>
|
|
<td><a href="/runs/{{.ID}}" class="btn btn-sm">View</a></td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
{{else}}
|
|
<p class="empty-state">No runs yet.</p>
|
|
{{end}}
|
|
</section>
|
|
|
|
<section class="section">
|
|
<h3>Corpus ({{.CorpusTotal}} entries)</h3>
|
|
{{if .Corpus}}
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Size</th>
|
|
<th>Added</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Corpus}}
|
|
<tr>
|
|
<td>#{{.ID}}</td>
|
|
<td>{{formatSize .BlobSize}}</td>
|
|
<td>{{timeAgo .CreatedAt}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
{{else}}
|
|
<p class="empty-state">No corpus entries yet.</p>
|
|
{{end}}
|
|
</section>
|
|
</div>
|
|
{{end}}
|