diff options
Diffstat (limited to 'templates/_history_trains.html.ep')
-rw-r--r-- | templates/_history_trains.html.ep | 66 |
1 files changed, 37 insertions, 29 deletions
diff --git a/templates/_history_trains.html.ep b/templates/_history_trains.html.ep index 9af5490..cf998ab 100644 --- a/templates/_history_trains.html.ep +++ b/templates/_history_trains.html.ep @@ -21,37 +21,45 @@ </span> </a> - <a href="<%= $detail_link %>" class="unmarked destination"> - <i class="material-icons tiny" aria-label="nach">place</i> - % if (param('cancelled') and $travel->{sched_arrival}->epoch != 0) { - %= $travel->{sched_arrival}->strftime('%H:%M') - % } - % else { - % if ($travel->{rt_arrival}->epoch == 0 and $travel->{sched_arrival}->epoch == 0) { - <i class="material-icons">timer_off</i> - % } else { - %= $travel->{rt_arrival}->strftime('%H:%M'); - % if ($travel->{sched_arrival} != $travel->{rt_arrival}) { - (<%= sprintf('%+d', ($travel->{rt_arrival}->epoch - $travel->{sched_arrival}->epoch) / 60) %>) + <ul class="route-history"> + <li> + <i class="material-icons tiny" aria-label="nach">radio_button_unchecked</i> + + <a href="<%= $detail_link %>" class="unmarked"> + % if (param('cancelled') and $travel->{sched_arrival}->epoch != 0) { + %= $travel->{sched_arrival}->strftime('%H:%M') + % } + % else { + % if ($travel->{rt_arrival}->epoch == 0 and $travel->{sched_arrival}->epoch == 0) { + <i class="material-icons">timer_off</i> + % } else { + %= $travel->{rt_arrival}->strftime('%H:%M'); + % if ($travel->{sched_arrival} != $travel->{rt_arrival}) { + (<%= sprintf('%+d', ($travel->{rt_arrival}->epoch - $travel->{sched_arrival}->epoch) / 60) %>) + % } + % } % } - % } - % } - <strong><%= $travel->{to_name} %></strong> + <strong><%= $travel->{to_name} %></strong> + </a> + </li> - <a href="<%= $detail_link %>" class="unmarked origin"> - <i class="material-icons tiny" aria-label="von">radio_button_unchecked</i> - % if (param('cancelled')) { - %= $travel->{sched_departure}->strftime('%H:%M') - % } - % else { - <%= $travel->{rt_departure}->strftime('%H:%M') %> - % if ($travel->{sched_departure} != $travel->{rt_departure}) { - (<%= sprintf('%+d', ($travel->{rt_departure}->epoch - $travel->{sched_departure}->epoch) / 60) %>) - % } - % } - <strong><%= $travel->{from_name} %></strong> - </a> - </a> + <li> + <i class="material-icons tiny" aria-label="von">play_circle_filled</i> + + <a href="<%= $detail_link %>" class="unmarked"> + % if (param('cancelled')) { + %= $travel->{sched_departure}->strftime('%H:%M') + % } + % else { + <%= $travel->{rt_departure}->strftime('%H:%M') %> + % if ($travel->{sched_departure} != $travel->{rt_departure}) { + (<%= sprintf('%+d', ($travel->{rt_departure}->epoch - $travel->{sched_departure}->epoch) / 60) %>) + % } + % } + <strong><%= $travel->{from_name} %></strong> + </a> + </li> + </ul> </li> % } </ul> |