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 { .action-undo {
cursor: pointer; cursor: pointer;
} }
td.cancelled {
text-decoration: line-through;
}

View file

@ -52,18 +52,22 @@
</thead> </thead>
<tbody> <tbody>
% for my $result (@{$results}) { % for my $result (@{$results}) {
% my $class = "";
% if ($result->departure_is_cancelled) {
% $class = "cancelled";
% }
<tr> <tr>
<td> <td>
<a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>"> <a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
<%= $result->line %> <%= $result->line %>
</a> </a>
</td> </td>
<td> <td class="<%= $class %>">
<a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>"> <a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
<%= $result->destination %> <%= $result->destination %>
</a> </a>
</td> </td>
<td><%= $result->departure->strftime('%H:%M') %> <td class="<%= $class %>"><%= $result->departure->strftime('%H:%M') %>
% if ($result->departure_delay) { % if ($result->departure_delay) {
(+<%= $result->departure_delay %>) (+<%= $result->departure_delay %>)
% } % }