diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-12-29 23:37:58 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-12-29 23:37:58 +0100 |
commit | ab94c51e92e8b5cb29b1c63cdd6781bd5e258b12 (patch) | |
tree | 3c435c3b6b32cb7012f2c39d5c5d364bdb56fa19 /templates | |
parent | 5109d2a4ca68863a22adfac92627a38a79e49993 (diff) |
Add detailed mode. For now, it only shows train numbers
Diffstat (limited to 'templates')
-rw-r--r-- | templates/clean.html.ep | 8 | ||||
-rw-r--r-- | templates/layouts/default.html.ep | 8 |
2 files changed, 16 insertions, 0 deletions
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 |