2014-09-22 20:42:29 +00:00
|
|
|
{% extends "oscar/base.html" %}
|
2014-09-26 16:26:46 +00:00
|
|
|
{% block title %}{{ _('stats') }} - {% endblock %}
|
2014-09-22 20:42:29 +00:00
|
|
|
{% block content %}
|
|
|
|
<div class="container-fluid">
|
|
|
|
<h1>{{ _('Engine stats') }}</h1>
|
|
|
|
<div class="row">
|
|
|
|
{% for stat_name,stat_category in stats %}
|
|
|
|
<div class="col-xs-12 col-sm-12 col-md-6">
|
|
|
|
<h3>{{ stat_name }}</h3>
|
|
|
|
<div class="container-fluid">
|
|
|
|
{% for engine in stat_category %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 col-md-4">{{ engine.name }}</div>
|
|
|
|
<div class="col-sm-8 col-md-8">
|
|
|
|
<div class="progress">
|
|
|
|
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="{{ '%i'|format(engine.avg) }}" aria-valuemin="0" aria-valuemax="100" style="width: {{ engine.percentage }}%;">
|
|
|
|
{{ '%.02f'|format(engine.avg) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2014-09-26 16:26:46 +00:00
|
|
|
{% if not stat_category %}
|
|
|
|
<div class="col-sm-12 col-md-12">
|
2014-09-27 09:51:31 +00:00
|
|
|
{% include 'oscar/messages/no_data_available.html' %}
|
2014-09-26 16:26:46 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2014-09-22 20:42:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|