Skip to content
Snippets Groups Projects
Commit 25f75928 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

add marker for cancelled departures

parent 9c326773
No related branches found
No related tags found
No related merge requests found
......@@ -3,3 +3,7 @@
.action-undo {
cursor: pointer;
}
td.cancelled {
text-decoration: line-through;
}
File moved
......@@ -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 %>)
% }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment