2015-03-06 21:58:53 +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') }}'>Statistics</a></li>
|
2015-03-15 07:28:34 +01:00
|
|
|
<li><a href='{{ url_for('get_services') }}'>Services</a></li>
|
2015-03-06 21:58:53 +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">
|
2015-03-06 21:58:53 +01:00
|
|
|
<tr>
|
2015-03-12 08:02:17 +01:00
|
|
|
<th>
|
|
|
|
Date<br />
|
|
|
|
Days
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Odometer<br />
|
|
|
|
Distance
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Litres<br />
|
|
|
|
Average
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
{% for pitstop in data['pitstops'] %}
|
|
|
|
<tr class='pitstop'>
|
|
|
|
<td>
|
|
|
|
{{pitstop.date}}<br />
|
|
|
|
{% if pitstop.days %}{{pitstop.days}}{% else %} --{% endif %} days
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{pitstop.odometer}} km<br />
|
|
|
|
{% if pitstop.distance %}{{pitstop.distance}}{% else %} --{% endif %} km
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{pitstop.litres}} l<br />
|
2015-03-16 22:06:59 +01:00
|
|
|
{% if pitstop.average %}{{pitstop.average | round(2)}}{% else %} --{% endif %} l/100km
|
2015-03-12 08:02:17 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
2015-03-06 21:58:53 +01:00
|
|
|
{% endblock %}
|