Improve UI views for assets/components/failures and timeline details
This commit is contained in:
41
internal/api/ui_components_models.tmpl
Normal file
41
internal/api/ui_components_models.tmpl
Normal file
@@ -0,0 +1,41 @@
|
||||
{{define "components_models"}}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{{template "head" .}}
|
||||
<body>
|
||||
{{template "topbar" .}}
|
||||
{{template "breadcrumbs" .}}
|
||||
|
||||
<main class="container">
|
||||
<section class="card">
|
||||
<h2>Unique Component Models</h2>
|
||||
{{if .Rows}}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vendor</th>
|
||||
<th>Model</th>
|
||||
<th>Total</th>
|
||||
<th>Failed</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{range .Rows}}
|
||||
<tr class="clickable" onclick="navigateToRow('{{.URL}}')">
|
||||
<td>{{.Vendor}}</td>
|
||||
<td>{{.Model}}</td>
|
||||
<td>{{.Total}}</td>
|
||||
<td>{{.Failed}}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="meta">Click a row to open components of this model with status filters.</div>
|
||||
{{else}}
|
||||
<div class="meta">No component models yet.</div>
|
||||
{{end}}
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user