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 | |
parent | 1bbb00b3edf11f2219130370c37615caae40e8f5 (diff) |
improved replacement handling
-rw-r--r-- | public/static/default.css | 6 | ||||
-rw-r--r-- | templates/clean.html.ep | 18 |
2 files changed, 17 insertions, 7 deletions
diff --git a/public/static/default.css b/public/static/default.css index 6af949f..9a04ee1 100644 --- a/public/static/default.css +++ b/public/static/default.css @@ -49,15 +49,15 @@ div.displayclean li .lineinfo { color:#000000; font-size: 2em; position:absolute; - bottom:2px; + top:0px; left:2px; } -div.displayclean li .lineinfo .replacement { +div.displayclean .replacement { color: #006600; } -div.displayclean li .lineinfo .replaced { +div.displayclean .replaced { color: #660000; } 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"> |