diff options
-rw-r--r-- | public/static/default.css | 10 | ||||
-rw-r--r-- | templates/clean.html.ep | 8 | ||||
-rw-r--r-- | templates/layouts/default.html.ep | 8 |
3 files changed, 26 insertions, 0 deletions
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} % } </div> +% if (param('detailed')) { +% if ($departure->{train_line} and $departure->{train_no} +% and $departure->{train_line} ne $departure->{train_no}) { + <div class="extra_trainno"> +%= $departure->{train_no} + </div> +% } +% } % if (@{$departure->{replaced_by}} or @{$departure->{replacement_for}}) { <div class="lineinfo"> % 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 @@ -141,6 +141,14 @@ Bitte eine Station aus der Liste auswählen</div> </div> <div class="field"> <div class="desc"> + %= check_box 'detailed' => 1, id => 'id_detailed' + <label for="id_detailed"> + Detaillierte Übersicht + </label> + </div> + </div> + <div class="field"> + <div class="desc"> %= check_box 'show_realtime' => 1, id => 'id_show_realtime' <label for="id_show_realtime"> Erwartete Zeiten statt Fahrplandaten |