summaryrefslogtreecommitdiff
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
parent9c326773655664e18d5b846ed4136fea9fafacf8 (diff)
add marker for cancelled departures
-rw-r--r--public/static/css/local.css4
l---------public/static/v4 (renamed from public/static/v2)0
-rw-r--r--templates/departures.html.ep8
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 %>)
% }