cairn/web/templates/pages/targets.html

39 lines
1.1 KiB
HTML

{{define "content"}}
<div class="targets-page">
<div class="toolbar">
<span class="result-count">{{.Total}} targets</span>
</div>
{{if .Targets}}
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Repository</th>
<th>Runs</th>
<th>Corpus</th>
<th>Updated</th>
<th></th>
</tr>
</thead>
<tbody>
{{range .Targets}}
<tr>
<td>{{.Name}}</td>
<td><span class="badge badge-{{.Type}}">{{.Type}}</span></td>
<td>{{.RepoName}}</td>
<td>{{.RunCount}}</td>
<td>{{.CorpusCount}}</td>
<td>{{timeAgo .UpdatedAt}}</td>
<td><a href="/targets/{{.ID}}" class="btn btn-sm">View</a></td>
</tr>
{{end}}
</tbody>
</table>
{{else}}
<p class="empty-state">No targets yet. Use <code>cairn target ensure</code> to register a target.</p>
{{end}}
</div>
{{end}}