Show v0.12 feature stats

This commit is contained in:
Jakob Borg
2015-09-11 10:56:32 +02:00
parent e55ff6cccc
commit c8c4b090ef
2 changed files with 146 additions and 0 deletions

View File

@@ -243,6 +243,29 @@ found in the LICENSE file.
</div>
</div>
<div class="row">
<div class="col-md-12">
<h4>Feature Usage</h4>
<p>
The following lists feature usage, as a percentage of the v0.12+ population (<b>{{.v2nodes}}</b> devices).
</p>
<table class="table table-striped">
<thead><tr><th>Feature</th><th colspan="2" class="text-center">Usage</th></tr></thead>
<tbody>
{{range .features}}
<tr>
<td style="width: 30%">{{.Key}}</td>
<td style="width: 10%" class="text-right">{{.Pct}}%</td>
<td style="width: 60%">
<div class="progress-bar" role="progressbar" aria-valuenow="{{.Pct}}" aria-valuemin="0" aria-valuemax="100" style="width: {{.Pct}}%; height:20px"></div>
</td>
</tr>
{{end}}
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>