diff options
Diffstat (limited to 'templates/app.html.ep')
-rw-r--r-- | templates/app.html.ep | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/app.html.ep b/templates/app.html.ep index 852d8a8..6baf0f4 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -99,18 +99,18 @@ $departure->{is_cancelled}) ? 'delayed' : q{} %>"> % if ($departure->{delay} and not $departure->{is_cancelled}) { % if ($show_realtime) { -% if ($departure->{delay} > 0) { +% if ($departure->{delay} > ($hide_low_delay ? 4 : 0)) { <span class="delaynorm" aria-hidden="true">(+<%= $departure->{delay} %>)</span> % } -% else { +% elsif ($departure->{delay} < 0) { <span class="undelaynorm" aria-hidden="true">(<%= $departure->{delay} %>)</span> % } % } % else { -% if ($departure->{delay} > 0) { +% if ($departure->{delay} > ($hide_low_delay ? 4 : 0)) { <span class="delay" aria-hidden="true">(+<%= $departure->{delay} %>)</span> % } -% else { +% elsif ($departure->{delay} < 0) { <span class="undelay" aria-hidden="true">(<%= $departure->{delay} %>)</span> % } % } |