summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-08-17 21:45:43 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-08-17 21:45:43 +0200
commit5bf1318cf5980511301ac542f5c0096dfccb0dbd (patch)
tree7d576705c73ee7b61274fc59918e3f427d46bcd9
parente01e6a43d18754a5b6a5c9286906f0e28716f803 (diff)
connections: do not allow checkin while still in transit1.23.6
fixes bug introduced by f01f108f94f53846268188d8e9a63ad36613bcab
-rw-r--r--templates/_connections.html.ep14
1 files changed, 12 insertions, 2 deletions
diff --git a/templates/_connections.html.ep b/templates/_connections.html.ep
index 9b009df..ca2a6ba 100644
--- a/templates/_connections.html.ep
+++ b/templates/_connections.html.ep
@@ -7,7 +7,12 @@
% $td_class = 'cancelled';
% $link_class = 'action-cancelled-from';
% }
- <tr class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>">
+ % if ($checkin_from) {
+ <tr class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>">
+ % }
+ % else {
+ <tr>
+ % }
<td class="<%= $td_class %>">
% if ($checkin_from) {
<a><%= $train->line %></a>
@@ -70,7 +75,12 @@
% $td_class = 'cancelled';
% $link_class = 'action-cancelled-from';
% }
- <tr class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>" data-tr="4">
+ % if ($checkin_from) {
+ <tr class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>" data-tr="4">
+ % }
+ % else {
+ <tr>
+ % }
<td class="<%= $td_class %>">
% if ($checkin_from) {
<a><%= $train->line %></a>