summaryrefslogtreecommitdiff
path: root/templates/_checked_in.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r--templates/_checked_in.html.ep16
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index 053904a..44d57dc 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -200,9 +200,15 @@
<tbody>
% for my $station (@{$journey->{route_after}}) {
<tr><td><a class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %>
- % if ($station->[1]{rt_arr}) {
+ % if ($station->[2] and $station->[2] eq 'cancelled') {
+ <span style="float: right;">entfällt</span>
+ % }
+ % elsif ($station->[1]{rt_arr}) {
<span style="float: right;"><%= $station->[1]{rt_arr}->strftime('%H:%M') %></span>
% }
+ % elsif ($station->[2] and $station->[2] eq 'additional') {
+ <span style="float: right;">Zusatzhalt</span>
+ % }
</a></td></tr>
% }
</tbody>
@@ -247,9 +253,15 @@
% for my $station (@{$journey->{route_after}}) {
% my $is_dest = ($journey->{arr_name} and $station->[0] eq $journey->{arr_name});
<tr><td><a style="<%= $is_dest? 'font-weight: bold;' : '' %>" class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %>
- % if ($station->[1]{rt_arr}) {
+ % if ($station->[2] and $station->[2] eq 'cancelled') {
+ <span style="float: right;">entfällt</span>
+ % }
+ % elsif ($station->[1]{rt_arr}) {
<span style="float: right;"><%= $station->[1]{rt_arr}->strftime('%H:%M') %></span>
% }
+ % elsif ($station->[2] and $station->[2] eq 'additional') {
+ <span style="float: right;">Zusatzhalt</span>
+ % }
</a></td></tr>
% }
</tbody>