summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-01 20:28:06 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-01 20:28:06 +0200
commit335ab8209f3fae82df196ca97170ddcfe9f41fcd (patch)
tree924ecbd29057e0758c207c4af7af7aeab818b5f5 /templates
parent8d843dc43200e65a7b37d2efa8f73fc1c3b7cc29 (diff)
statistics: Add interchange wait time and journey count
Diffstat (limited to 'templates')
-rw-r--r--templates/history.html.ep8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/history.html.ep b/templates/history.html.ep
index 8f63296..1e565e6 100644
--- a/templates/history.html.ep
+++ b/templates/history.html.ep
@@ -22,6 +22,10 @@
<table class="striped">
<tr>
<th scope="row">Fahrten</th>
+ <td><%= $stats->{num_journeys} %></td>
+ </tr>
+ <tr>
+ <th scope="row">Züge</th>
<td><%= $stats->{num_trains} %></td>
</tr>
<tr>
@@ -35,6 +39,10 @@
(nach Fahrplan: <%= sprintf('%02d:%02d', $stats->{min_travel_sched} / 60, $stats->{min_travel_sched} % 60) %>)<td>
</tr>
<tr>
+ <th scope="row">Wartezeit (nur Umstiege)</th>
+ <td><%= sprintf('%02d:%02d', $stats->{min_interchange_real} / 60, $stats->{min_interchange_real} % 60) %> Stunden
+ </tr>
+ <tr>
<th scope="row">Kumulierte Verspätung</th>
<td>Bei Abfahrt: <%= sprintf('%02d:%02d', $stats->{delay_dep} / 60, $stats->{delay_dep} % 60) %> Stunden<br/>
Bei Ankunft: <%= sprintf('%02d:%02d', $stats->{delay_arr} / 60, $stats->{delay_arr} % 60) %> Stunden</td>