cairn/web/templates/pages/campaigns.html

39 lines
1.1 KiB
HTML

{{define "content"}}
<div class="campaigns-page">
<div class="toolbar">
<span class="result-count">{{.Total}} campaigns</span>
</div>
{{if .Campaigns}}
<table class="table">
<thead>
<tr>
<th>Status</th>
<th>Name</th>
<th>Type</th>
<th>Repository</th>
<th>Artifacts</th>
<th>Started</th>
<th></th>
</tr>
</thead>
<tbody>
{{range .Campaigns}}
<tr>
<td><span class="badge badge-campaign-{{.Status}}">{{.Status}}</span></td>
<td>{{.Name}}</td>
<td>{{.Type}}</td>
<td>{{.RepoName}}</td>
<td>{{.ArtifactCount}}</td>
<td>{{timeAgo .StartedAt}}</td>
<td><a href="/campaigns/{{.ID}}" class="btn btn-sm">View</a></td>
</tr>
{{end}}
</tbody>
</table>
{{else}}
<p class="empty-state">No campaigns yet. Use <code>cairn campaign start</code> to begin a campaign.</p>
{{end}}
</div>
{{end}}