rollerverbrauch/app/templates/statistics.html

40 lines
1.0 KiB
HTML
Raw Normal View History

2015-03-05 21:14:21 +01:00
{% extends "layout.html" %}
{% block navigation %}
2015-03-16 22:06:59 +01:00
<li><a href='{{ url_for('create_pit_stop_form') }}'>Create Pitstop</a></li>
<li><a href='{{ url_for('get_statistics') }}' class="active">Statistics</a></li>
<li><a href='{{ url_for('get_services') }}'>Services</a></li>
2015-03-05 21:14:21 +01:00
{% endblock %}
{% block body %}
2015-03-16 22:06:59 +01:00
{{ service_warning() }}
2015-03-12 08:02:17 +01:00
<div class="table-responsive">
<table class="table table-striped table-bordered table-condensed">
<tr>
<th>Number of Pitstops:</th>
<td>{{ data.count }}</td>
</tr>
<tr>
<th>Logged Distance:</th>
2015-03-16 22:06:59 +01:00
<td>{{ data.distance | round(2) }} km</td>
2015-03-12 08:02:17 +01:00
</tr>
<tr>
<th>Average Distance:</th>
2015-03-16 22:06:59 +01:00
<td>{{ data.averageDistance | round(2) }} km</td>
2015-03-12 08:02:17 +01:00
</tr>
<tr>
<th>Litres fuelled:</th>
2015-03-16 22:06:59 +01:00
<td>{{ data.litres | round(2) }} l</td>
2015-03-12 08:02:17 +01:00
</tr>
<tr>
<th>Average Litres fuelled:</th>
2015-03-16 22:06:59 +01:00
<td>{{ data.averageListresFuelled | round(2) }} l</td>
2015-03-12 08:02:17 +01:00
</tr>
<tr>
<th>Average Litres used:</th>
2015-03-16 22:06:59 +01:00
<td>{{ data.averageListresUsed | round(2) }} l/100km</td>
2015-03-12 08:02:17 +01:00
</tr>
</table>
</div>
2015-03-05 21:14:21 +01:00
{% endblock %}