diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/clean.html.ep | 13 | ||||
-rw-r--r-- | templates/layouts/default.html.ep | 8 |
2 files changed, 20 insertions, 1 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 21750d5..f073c2e 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -58,15 +58,26 @@ </span> <span class="countdown"> % if ($departure->{delay} and not $departure->{is_cancelled}) { +% if ($show_realtime) { +<span class="delaynorm">(+<%= $departure->{delay} %>)</span> +% } +% else { <span class="delay">(+<%= $departure->{delay} %>)</span> % } +% } <span class="platform"> %= $departure->{platform} </span> </span> -<span class="time"> +<span class="time <%= ($show_realtime and $departure->{delay} and not $departure->{is_cancelled}) ? 'delayed' : q{} %>"> +% if ($show_realtime and $departure->{delay} and not $departure->{is_cancelled}) { +<span class="delayed"> +% } %= $departure->{time} </span> +% if ($show_realtime and $departure->{delay} and not $departure->{is_cancelled}) { +</span> +% } </li> <!-- diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 85ef48c..a6ffaae 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -123,6 +123,14 @@ %= select_field admode => [['Abfahrt bevorzugen' => 'deparr'], ['Nur Abfahrt' => 'dep'], ['Nur Ankunft' => 'arr']] </div> </div> + <div class="field"> + <div class="desc"> + Erwartete Abfahrtzeiten statt Fahrplandaten verwenden? + </div> + <div> + %= check_box 'show_realtime' => 1 + </div> + </div> </div> % end |