summaryrefslogtreecommitdiff
path: root/templates/_history_trains.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_history_trains.html.ep')
-rw-r--r--templates/_history_trains.html.ep5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/_history_trains.html.ep b/templates/_history_trains.html.ep
index 166d74d..0a9abd5 100644
--- a/templates/_history_trains.html.ep
+++ b/templates/_history_trains.html.ep
@@ -16,10 +16,13 @@
% }
<li class="collection-item">
<a href="<%= $detail_link %>">
- <span class="dep-line <%= ($travel->{type} // q{}) =~ tr{a-zA-Z_-}{}cdr %>">
+ <span class="dep-line <%= ($travel->{type} // q{}) =~ tr{a-zA-Z_-}{}cdr %> <%= ($travel->{line} // q{}) =~ s{ ^ \D+ \K \d .* $ }{}rx %>">
% if (length($travel->{type}) < 5 and not $travel->{is_motis}) {
<%= $travel->{type} %>
% }
+ % if ($travel->{type} and $travel->{line}) {
+ % $travel->{line} =~ s{ ^ \Q$travel->{type}\E (?= \d ) }{}x;
+ % }
<%= $travel->{line} // $travel->{no}%>
</span>
</a>