summaryrefslogtreecommitdiff
path: root/templates/_history_trains.html.ep
diff options
context:
space:
mode:
authorCassidy Dingenskirchen <admin@15318.de>2024-02-01 21:00:31 +0100
committerBirte Friesel <derf@chaosdorf.de>2024-02-01 21:08:15 +0100
commit414542dfa431f0f93dde9d9d544edc7678747ef5 (patch)
tree9debc9422bfee7904c7467db74fe2eae3b37ee35 /templates/_history_trains.html.ep
parente23f6b4f629524fa377c7198a6af225752a02653 (diff)
history: fix visual bugs with long station names
Diffstat (limited to 'templates/_history_trains.html.ep')
-rw-r--r--templates/_history_trains.html.ep66
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>