mirror of
https://github.com/derf/travelynx
synced 2024-11-10 15:04:17 +00:00
add marker for cancelled departures
This commit is contained in:
parent
9c32677365
commit
25f75928e7
3 changed files with 10 additions and 2 deletions
|
@ -3,3 +3,7 @@
|
|||
.action-undo {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
td.cancelled {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
|
|
@ -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 %>)
|
||||
% }
|
||||
|
|
Loading…
Reference in a new issue