From 25f75928e7dec3ee4fb9374cd8e9d0beb8a56bc3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 19 Mar 2019 17:17:53 +0100 Subject: add marker for cancelled departures --- public/static/css/local.css | 4 ++++ public/static/v2 | 1 - public/static/v4 | 1 + templates/departures.html.ep | 8 ++++++-- 4 files changed, 11 insertions(+), 3 deletions(-) delete mode 120000 public/static/v2 create mode 120000 public/static/v4 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/v2 deleted file mode 120000 index 945c9b4..0000000 --- a/public/static/v2 +++ /dev/null @@ -1 +0,0 @@ -. \ No newline at end of file diff --git a/public/static/v4 b/public/static/v4 new file mode 120000 index 0000000..945c9b4 --- /dev/null +++ b/public/static/v4 @@ -0,0 +1 @@ +. \ No newline at end of file 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 %>) % } -- cgit v1.2.3