layerindex-web/templates/layerindex/stats.html
Paul Eggleton 517424dc81 Upgrade to Bootstrap 3
Use a more modern version of Bootstrap and take the opportunity to
upgrade jQuery to the latest version at the same time. This provides
better browser compatibility, moves to MIT license, allows us to make
the site more responsive for different devices in future, and provides
theming capabilities for custom installs among other improvements.

(I chose to upgrade to v3 for now rather than straight to v4 as it was
easier to do this gradually.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-09-20 15:57:59 +12:00

61 lines
1.7 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% load static %}
{% comment %}
layerindex-web - statistics page template
Copyright (C) 2018 Intel Corporation
Licensed under the MIT license, see COPYING.MIT for details
{% endcomment %}
<!--
{% block title_append %} - statistics{% endblock %}
-->
{% block content %}
{% autoescape on %}
<h2>Statistics</h2>
<h3>Overall</h3>
<dl class="dl-horizontal">
<dt>Layers</dt><dd>{{ layercount }}</dd>
<dt>Recipes</dt><dd>{{ recipe_count_distinct }} (distinct names)</dd>
<dt>Machines</dt><dd>{{ machine_count_distinct }} (distinct names)</dd>
<dt>Classes</dt><dd>{{ class_count_distinct }} (distinct names)</dd>
<dt>Distros</dt><dd>{{ distro_count_distinct }} (distinct names)</dd>
</dl>
<h3>Per branch</h3>
<table class="table">
<thead>
<th>Branch</th>
<th style="text-align: right">Layers</th>
<th style="text-align: right">Recipes</th>
<th style="text-align: right">Machines</th>
<th style="text-align: right">Classes</th>
<th style="text-align: right">Distros</th>
</thead>
<tbody>
{% for branch in perbranch %}
<tr {% if not branch.updates_enabled %}class="text-muted"{% endif %}>
<td>{{ branch.name }}</td>
<td style="text-align: right">{{ branch.layer_count }}</td>
<td style="text-align: right">{{ branch.recipe_count }}</td>
<td style="text-align: right">{{ branch.machine_count }}</td>
<td style="text-align: right">{{ branch.class_count }}</td>
<td style="text-align: right">{{ branch.distro_count }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endautoescape %}
{% endblock %}