diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-11-23 08:53:54 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-11-23 08:53:54 +0100 |
commit | ebaba18683a3c8e3297ebff71733466a36ee009b (patch) | |
tree | 666ed4c4277bdec6c9bab0e9c7d14cdc5f540f9e /templates | |
parent | 1bbb00b3edf11f2219130370c37615caae40e8f5 (diff) |
improved replacement handling
Diffstat (limited to 'templates')
-rw-r--r-- | templates/clean.html.ep | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 889d409..41dddc6 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -46,11 +46,11 @@ </div> % if (@{$departure->{replaced_by}} or @{$departure->{replacement_for}}) { <div class="lineinfo"> -% for my $replacement (@{$departure->{replaced_by}}) { - <span class="replaced">→ <%= $replacement %></span> +% if (@{$departure->{replaced_by}}) { + %#<span class="replaced">→ Ersatzzug</span> % } -% for my $replacement (@{$departure->{replacement_for}}) { - <span class="replacement">↑ <%= $replacement %></span> +% if (@{$departure->{replacement_for}}) { + <span class="replacement">Ersatzzug</span> % } </div> % } @@ -81,6 +81,16 @@ % elsif (defined $departure->{delay} and $departure->{delay} > 0) { <div class="minfo">+<%= $departure->{delay} %></div> % } +% if (@{$departure->{replaced_by}}) { +% for my $replacement (@{$departure->{replaced_by}}) { + <span class="replaced">Ersatzzug: <%= $replacement %></span> +% } +% } +% if (@{$departure->{replacement_for}}) { +% for my $replacement (@{$departure->{replacement_for}}) { + <span class="replacement">Ersatzzug für <%= $replacement %></span> +% } +% } </div> <!-- mheader --> <div class="mfooter"> <div class="platforminfo"> |