diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/departures.html.ep | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/departures.html.ep b/templates/departures.html.ep index 272a94d..ee87496 100644 --- a/templates/departures.html.ep +++ b/templates/departures.html.ep @@ -52,18 +52,22 @@ </thead> <tbody> % for my $result (@{$results}) { + % my $class = ""; + % if ($result->departure_is_cancelled) { + % $class = "cancelled"; + % } <tr> <td> <a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>"> <%= $result->line %> </a> </td> - <td> + <td class="<%= $class %>"> <a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>"> <%= $result->destination %> </a> </td> - <td><%= $result->departure->strftime('%H:%M') %> + <td class="<%= $class %>"><%= $result->departure->strftime('%H:%M') %> % if ($result->departure_delay) { (+<%= $result->departure_delay %>) % } |