summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-11-23 08:53:54 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-11-23 08:53:54 +0100
commitebaba18683a3c8e3297ebff71733466a36ee009b (patch)
tree666ed4c4277bdec6c9bab0e9c7d14cdc5f540f9e /templates
parent1bbb00b3edf11f2219130370c37615caae40e8f5 (diff)
improved replacement handling
Diffstat (limited to 'templates')
-rw-r--r--templates/clean.html.ep18
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">