diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-28 22:33:09 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-28 22:33:09 +0200 |
commit | fd6d12d355e5fb5596168b91affe71eb059c0e99 (patch) | |
tree | bc984831db2c7d3a1bb2d55fb2cbd231c708029d /templates | |
parent | cc1a620041ec946ae130055c56f0d35c760c7468 (diff) |
Handle inconsistent data when calculating monthly/yearly stats
Closes #11
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_history_stats.html.ep | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/_history_stats.html.ep b/templates/_history_stats.html.ep index f203631..715fa1a 100644 --- a/templates/_history_stats.html.ep +++ b/templates/_history_stats.html.ep @@ -1,3 +1,26 @@ +% if (@{$stats->{inconsistencies}}) { + <div class="row"> + <div class="col s12"> + <div class="card red darken-4"> + <div class="card-content white-text"> + <i class="material-icons small right">warning</i> + <span class="card-title">Inkonsistente Reisedaten</span> + <p> + Die folgenden Abfahrtszeiten liegen vor der Ankunftszeit der + vorherigen Zugfahrt und wurden bei der Wartezeitberechnung + ignoriert. + <ul> + % for my $date (@{$stats->{inconsistencies}}) { + <li><%= $date %></li> + % } + </ul> + </p> + </div> + </div> + </div> + </div> +% } + <div class="row"> <div class="col s12"> <table class="striped"> |