diff options
Diffstat (limited to 'templates/_history_stats.html.ep')
-rw-r--r-- | templates/_history_stats.html.ep | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/_history_stats.html.ep b/templates/_history_stats.html.ep new file mode 100644 index 0000000..f203631 --- /dev/null +++ b/templates/_history_stats.html.ep @@ -0,0 +1,33 @@ +<div class="row"> + <div class="col s12"> + <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> + <th scope="row">Entfernung</th> + <td>ca. <%= sprintf('%.f', $stats->{km_route}) %> km + (Luftlinie: <%= sprintf('%.f', $stats->{km_beeline}) %> km)</td> + </tr> + <tr> + <th scope="row">Fahrtzeit</th> + <td><%= sprintf('%02d:%02d', $stats->{min_travel_real} / 60, $stats->{min_travel_real} % 60) %> Stunden + (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> + </tr> + </table> + </div> +</div> |