2015-03-03 22:49:43 +01:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
|
2015-03-04 08:11:52 +01:00
|
|
|
{% block navigation %}
|
|
|
|
<li><a href='{{ url_for('createPitStopForm') }}'>Create Pitstop</a></li>
|
|
|
|
{% endblock %}
|
2015-03-03 22:49:43 +01:00
|
|
|
|
2015-03-04 08:11:52 +01:00
|
|
|
{% block body %}
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Date
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Odometer
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Distance
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Litres
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Average
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
{% for pitstop in data['pitstops'] %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{{pitstop.date}}
|
|
|
|
</td>
|
|
|
|
<td class='right-aligned'>
|
|
|
|
{{pitstop.odometer}} km
|
|
|
|
</td>
|
|
|
|
<td class='right-aligned'>
|
|
|
|
{% if pitstop.distance %}{{pitstop.distance}}{% else %} --{% endif %} km
|
|
|
|
</td>
|
|
|
|
<td class='right-aligned'>
|
|
|
|
{{pitstop.litres}} l
|
|
|
|
</td>
|
|
|
|
<td class='right-aligned'>
|
|
|
|
{% if pitstop.average %}{{pitstop.average}}{% else %} --{% endif %} l/100km
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table
|
2015-03-03 22:49:43 +01:00
|
|
|
{% endblock %}
|