From cbbe35517e92f6cdf926a42eb167fca566881233 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 4 Dec 2014 12:21:48 +0100 Subject: iris+clean: show and sort by actual (estimated) arr/dep times --- templates/clean.html.ep | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'templates/clean.html.ep') diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 21750d5..f073c2e 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -58,15 +58,26 @@ % if ($departure->{delay} and not $departure->{is_cancelled}) { +% if ($show_realtime) { +(+<%= $departure->{delay} %>) +% } +% else { (+<%= $departure->{delay} %>) % } +% } %= $departure->{platform} - + +% if ($show_realtime and $departure->{delay} and not $departure->{is_cancelled}) { + +% } %= $departure->{time} +% if ($show_realtime and $departure->{delay} and not $departure->{is_cancelled}) { + +% }