rollerverbrauch/templates/pitstops.html

54 lines
1012 B
HTML
Raw Normal View History

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