summaryrefslogtreecommitdiff
path: root/templates/_train_details.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r--templates/_train_details.html.ep12
1 files changed, 10 insertions, 2 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 2816af0..a7ad86e 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -66,12 +66,20 @@
<span class="minfo">Fahrt fällt aus</span>
% }
% else {
+% my $left = '';
+% my $right = '';
+% if ($departure->{direction} and $departure->{direction} eq 'l') {
+% $left = '◀ ';
+% }
+% elsif ($departure->{direction} and $departure->{direction} eq 'r') {
+% $right = ' ▶';
+% }
% if ($departure->{scheduled_platform} and $departure->{platform}
% and $departure->{scheduled_platform} ne $departure->{platform}) {
- <span class="minfo">Gleis <%= $departure->{platform} %></span>
+ <span class="minfo"><%= $left %>Gleis <%= $departure->{platform} %><%= $right %></span>
% }
% elsif ($departure->{scheduled_platform} or $departure->{platform}) {
- Gleis <%= $departure->{platform} // $departure->{scheduled_platform} %>
+ <%= $left %>Gleis <%= $departure->{platform} // $departure->{scheduled_platform} %><%= $right %>
% }
% }
</div>