From 25f75928e7dec3ee4fb9374cd8e9d0beb8a56bc3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 19 Mar 2019 17:17:53 +0100 Subject: [PATCH] add marker for cancelled departures --- public/static/css/local.css | 4 ++++ public/static/{v2 => v4} | 0 templates/departures.html.ep | 8 ++++++-- 3 files changed, 10 insertions(+), 2 deletions(-) rename public/static/{v2 => v4} (100%) 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 similarity index 100% rename from public/static/v2 rename to 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 @@ % for my $result (@{$results}) { + % my $class = ""; + % if ($result->departure_is_cancelled) { + % $class = "cancelled"; + % } <%= $result->line %> - + <%= $result->destination %> - <%= $result->departure->strftime('%H:%M') %> + <%= $result->departure->strftime('%H:%M') %> % if ($result->departure_delay) { (+<%= $result->departure_delay %>) % }