From ab94c51e92e8b5cb29b1c63cdd6781bd5e258b12 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 29 Dec 2017 23:37:58 +0100 Subject: Add detailed mode. For now, it only shows train numbers --- public/static/default.css | 10 ++++++++++ templates/clean.html.ep | 8 ++++++++ templates/layouts/default.html.ep | 8 ++++++++ 3 files changed, 26 insertions(+) diff --git a/public/static/default.css b/public/static/default.css index aa39d72..8010a8c 100644 --- a/public/static/default.css +++ b/public/static/default.css @@ -53,6 +53,16 @@ div.displayclean li .line .trainno { font-weight: normal; } +div.displayclean li .extra_trainno { + font-size: 2em; + position:absolute; + top:5px; + left:2px; + max-width: 6em; + max-height: 3ex; + overflow: hidden; +} + div.displayclean li .lineinfo { color:#000000; font-size: 2em; diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 61f6db9..3f6bcd0 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -50,6 +50,14 @@ %= $departure->{train} % } +% if (param('detailed')) { +% if ($departure->{train_line} and $departure->{train_no} +% and $departure->{train_line} ne $departure->{train_no}) { +
+%= $departure->{train_no} +
+% } +% } % if (@{$departure->{replaced_by}} or @{$departure->{replacement_for}}) {
% if (@{$departure->{replaced_by}}) { diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 7278686..0f4d9e9 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -139,6 +139,14 @@ Bitte eine Station aus der Liste auswählen
%= select_field admode => [['Abfahrt bevorzugen' => 'deparr'], ['Nur Abfahrt' => 'dep'], ['Nur Ankunft' => 'arr']] +
+
+ %= check_box 'detailed' => 1, id => 'id_detailed' + +
+
%= check_box 'show_realtime' => 1, id => 'id_show_realtime' -- cgit v1.2.3