summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-06-29 06:04:55 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-06-29 06:04:55 +0200
commite04c95ea40abf55e7c2787f6fb39da816573cc7d (patch)
tree44b6be749bee3aac8abe3e44bdf84f384b08d57a
parente859ea29209b21b0a2ee703f703330480a434c57 (diff)
_history_trains: hide over-long types2.15.2
-rw-r--r--templates/_history_trains.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/_history_trains.html.ep b/templates/_history_trains.html.ep
index 6631f56..166d74d 100644
--- a/templates/_history_trains.html.ep
+++ b/templates/_history_trains.html.ep
@@ -17,7 +17,7 @@
<li class="collection-item">
<a href="<%= $detail_link %>">
<span class="dep-line <%= ($travel->{type} // q{}) =~ tr{a-zA-Z_-}{}cdr %>">
- % if (not $travel->{is_motis}) {
+ % if (length($travel->{type}) < 5 and not $travel->{is_motis}) {
<%= $travel->{type} %>
% }
<%= $travel->{line} // $travel->{no}%>