diff options
-rw-r--r-- | public/static/css/local.css | 4 | ||||
l--------- | public/static/v4 (renamed from public/static/v2) | 0 | ||||
-rw-r--r-- | templates/departures.html.ep | 8 |
3 files changed, 10 insertions, 2 deletions
diff --git a/public/static/css/local.css b/public/static/css/local.css index 06d50c0..7502b64 100644 --- a/public/static/css/local.css +++ b/public/static/css/local.css @@ -3,3 +3,7 @@ .action-undo { cursor: pointer; } + +td.cancelled { + text-decoration: line-through; +} diff --git a/public/static/v2 b/public/static/v4 index 945c9b4..945c9b4 120000 --- a/public/static/v2 +++ b/public/static/v4 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 %>) % } |