summaryrefslogtreecommitdiff
path: root/templates/_connections.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-07-14 21:29:52 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-07-14 21:29:52 +0200
commitb12b5a821b68b98aad646f1931c6c9775759952c (patch)
tree9a1f6dce1686fa9a933ba91796004ff90c4cddfd /templates/_connections.html.ep
parentb08b0fb921e7c5dc9afada0cd873b0cf980bd429 (diff)
Show departures of all linked stations
Not well-tested yet, deployment will have to wait a bit. Issue #15
Diffstat (limited to 'templates/_connections.html.ep')
-rw-r--r--templates/_connections.html.ep8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/_connections.html.ep b/templates/_connections.html.ep
index cd9edc3..f1d8c2b 100644
--- a/templates/_connections.html.ep
+++ b/templates/_connections.html.ep
@@ -4,7 +4,7 @@
<tr>
<td>
% if ($checkin_from) {
- <a class="action-checkin" data-station="<%= $checkin_from %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $train->line %></a>
+ <a class="action-checkin" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $train->line %></a>
% }
% else {
%= $train->line
@@ -12,7 +12,7 @@
</td>
<td>
% if ($checkin_from) {
- <a class="action-checkin" data-station="<%= $checkin_from %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $via %></a>
+ <a class="action-checkin" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $via %></a>
% }
% else {
%= $via
@@ -38,7 +38,7 @@
<tr>
<td class="<%= $td_class %>">
% if ($checkin_from) {
- <a class="<%= $link_class %>" data-station="<%= $checkin_from %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $train->line %></a>
+ <a class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $train->line %></a>
% }
% else {
%= $train->line
@@ -46,7 +46,7 @@
</td>
<td class="<%= $td_class %>">
% if ($checkin_from) {
- <a class="<%= $link_class %>" data-station="<%= $checkin_from %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $via %></a>
+ <a class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $via %></a>
% }
% else {
%= $via