cmd/ursrv: Summarize known distribution channels

That is, whether the binary was downloaded from GitHub, from our APT
repository, etc.
This commit is contained in:
Jakob Borg
2019-05-15 13:42:55 +02:00
parent c02aed0a21
commit e16a65bacb
3 changed files with 62 additions and 14 deletions

View File

@@ -506,6 +506,27 @@ found in the LICENSE file.
</table>
</div>
<div class="col-md-6">
<table class="table table-striped">
<thead>
<tr>
<th>Distribution Channel</th>
<th class="text-right">Devices</th>
<th class="text-right">Share</th>
</tr>
</thead>
<tbody>
{{range .distributions}}
<tr>
<td>{{.Key}}</td>
<td class="text-right">{{.Count}}</td>
<td class="text-right">{{.Percentage | printf "%.01f"}}%</td>
</tr>
{{end}}
</tbody>
</table>
</div>
</div>
<div class="row">