diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-01-21 10:46:11 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-01-21 10:46:11 +0100 |
commit | dc89b1dcc52878a404b9b91d8103ebc5e52feb9a (patch) | |
tree | 87ef84a9d9c4c80eed5b1922e0648c343e99363b | |
parent | f3679cb23f0d514169f25637f79c2f9ac6101e20 (diff) |
show arrival and departure times in detailed mode
-rw-r--r-- | public/static/default.css | 4 | ||||
-rw-r--r-- | templates/clean.html.ep | 19 |
2 files changed, 20 insertions, 3 deletions
diff --git a/public/static/default.css b/public/static/default.css index 75177d6..2808e46 100644 --- a/public/static/default.css +++ b/public/static/default.css @@ -341,10 +341,10 @@ div.displayclean li .countdown .changed-platform { div.displayclean li .time { background-color: inherit; - font-size:2.4em; + font-size:2.3em; position:absolute; right:5px; - top:5px; + top:4px; padding-left: 0.2em; } diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 0802cde..3c36965 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -242,7 +242,24 @@ </span> <span class="time <%= ($show_realtime and $departure->{delay} and not $departure->{is_cancelled}) ? 'delayed' : q{} %> <%= $extraclasses %>"> -%= $departure->{time} +% if (param('detailed')) { +% my $arrow = '→'; +% if (not $departure->{sched_arrival}) { +% $arrow = '↦'; +% } +% elsif (not $departure->{sched_departure}) { +% $arrow = '⇥'; +% } +% if ($show_realtime) { +%= ($departure->{arrival} // q{}) . $arrow . ($departure->{departure} // q{}) +% } +% else { +%= ($departure->{sched_arrival} // q{}) . $arrow . ($departure->{sched_departure} // q{}) +% } +% } +% else { +%= $departure->{time} +% } </span> </li> |