summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-07-02 18:41:00 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-07-02 18:41:00 +0200
commit428d1581d5dc72f340ac17ca8087023fcd95c078 (patch)
tree781a630cff8b4754018dae0cf89a1b6af9ea3a14
parent63dcc39f08b7726bae3859a5341b4ed0d71345bf (diff)
parent678d410e44ed8b36d21b2f1b720a9cb77d213e56 (diff)
Merge branch 'master' of github.com:derf/db-fakedisplay1.11
-rw-r--r--index.pl2
-rw-r--r--templates/clean.html.ep6
2 files changed, 4 insertions, 4 deletions
diff --git a/index.pl b/index.pl
index 4981f93..5044713 100644
--- a/index.pl
+++ b/index.pl
@@ -75,7 +75,7 @@ sub get_results_for {
station => $station,
main_cache => $cache_iris_main,
realtime_cache => $cache_iris_rt,
- lookbehind => 60,
+ lookbehind => 20,
%opt
);
$data = {
diff --git a/templates/clean.html.ep b/templates/clean.html.ep
index 7d63577..c2cd524 100644
--- a/templates/clean.html.ep
+++ b/templates/clean.html.ep
@@ -99,12 +99,12 @@
</div> <!-- mheader -->
<div class="mfooter">
<div class="platforminfo">
-% if ($departure->{platform}) {
- Gleis <%= $departure->{platform} %>
+% if ($departure->{scheduled_platform} or $departure->{platform}) {
+ Gleis <%= $departure->{scheduled_platform} // $departure->{platform} %>
% }
% if ($departure->{scheduled_platform} and $departure->{platform}
% and $departure->{scheduled_platform} ne $departure->{platform}) {
- (nicht Gleis <%= $departure->{scheduled_platform} %>)
+ (heute Gleis <%= $departure->{platform} %>)
% }
% elsif ($departure->{changed_platform}) {
(Gleiswechsel)