summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-19 17:17:53 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-19 17:17:53 +0100
commit25f75928e7dec3ee4fb9374cd8e9d0beb8a56bc3 (patch)
tree4af38eff51f637bc91acbf82b9ec5f5306fd039e /templates
parent9c326773655664e18d5b846ed4136fea9fafacf8 (diff)
add marker for cancelled departures
Diffstat (limited to 'templates')
-rw-r--r--templates/departures.html.ep8
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 %>)
% }