add marker for cancelled departures

This commit is contained in:
Daniel Friesel 2019-03-19 17:17:53 +01:00
parent 9c32677365
commit 25f75928e7
3 changed files with 10 additions and 2 deletions

View file

@ -3,3 +3,7 @@
.action-undo {
cursor: pointer;
}
td.cancelled {
text-decoration: line-through;
}

View file

@ -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 %>)
% }