summaryrefslogtreecommitdiff
path: root/templates/departures.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/departures.html.ep')
-rw-r--r--templates/departures.html.ep14
1 files changed, 8 insertions, 6 deletions
diff --git a/templates/departures.html.ep b/templates/departures.html.ep
index ee87496..47c4872 100644
--- a/templates/departures.html.ep
+++ b/templates/departures.html.ep
@@ -52,22 +52,24 @@
</thead>
<tbody>
% for my $result (@{$results}) {
- % my $class = "";
+ % my $td_class = '';
+ % my $link_class = 'action-checkin';
% if ($result->departure_is_cancelled) {
- % $class = "cancelled";
+ % $td_class = "cancelled";
+ % $link_class = 'action-cancelled-from';
% }
<tr>
<td>
- <a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
+ <a class="<%= $link_class %>" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
<%= $result->line %>
</a>
</td>
- <td class="<%= $class %>">
- <a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
+ <td class="<%= $td_class %>">
+ <a class="<%= $link_class %>" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
<%= $result->destination %>
</a>
</td>
- <td class="<%= $class %>"><%= $result->departure->strftime('%H:%M') %>
+ <td class="<%= $td_class %>"><%= $result->departure->strftime('%H:%M') %>
% if ($result->departure_delay) {
(+<%= $result->departure_delay %>)
% }