summaryrefslogtreecommitdiff
path: root/templates/_history_stats.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_history_stats.html.ep')
-rw-r--r--templates/_history_stats.html.ep23
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">