summaryrefslogtreecommitdiff
path: root/templates/_train_details.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r--templates/_train_details.html.ep14
1 files changed, 12 insertions, 2 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index cdadaa0..f4b9247 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -127,7 +127,12 @@
% else {
generic-stop
% }
- "><%= $stop->{dep} // q{} %> <%= $stop->{name} %></a>
+% if ($stop->{rt_dep}) {
+ "><%= $stop->{sched_dep}->strftime('%H:%M') %> (heute <%= $stop->{rt_dep}->strftime('%H:%M') %>) <%= $stop->{name} %></a>
+% }
+% else {
+ "><%= $stop->{sched_dep} ? $stop->{sched_dep}->strftime('%H:%M') : q{} %> <%= $stop->{name} %></a>
+% }
</li>
% }
</ul> <!-- mroute -->
@@ -150,7 +155,12 @@
% else {
generic-stop
% }
- "><%= $stop->{arr} // q{} %> <%= $stop->{name} %></a>
+% if ($stop->{rt_arr}) {
+ "><%= $stop->{sched_arr}->strftime('%H:%M') %> (heute <%= $stop->{rt_arr}->strftime('%H:%M') %>) <%= $stop->{name} %></a>
+% }
+% else {
+ "><%= $stop->{sched_arr} ? $stop->{sched_arr}->strftime('%H:%M') : q{} %> <%= $stop->{name} %></a>
+% }
</li>
% }
</ul> <!-- mroute -->