summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-03-07 18:27:04 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-03-07 18:27:04 +0100
commit0ce8d6967e907aacaf6e8ac6328a6a674610e8d6 (patch)
tree4dd5213d5128999271c141bc3bb5769218ce2978 /templates
parentfd7afd8f42c029bdaf9d11118f53500805ddad6b (diff)
wagonorder: Do not show "in Abschnitt" when sections have no names
Diffstat (limited to 'templates')
-rw-r--r--templates/wagenreihung.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/wagenreihung.html.ep b/templates/wagenreihung.html.ep
index 9fe132d..493d9c6 100644
--- a/templates/wagenreihung.html.ep
+++ b/templates/wagenreihung.html.ep
@@ -32,7 +32,7 @@
% for my $desc ($wr->train_descriptions) {
% if ($desc->{text}) {
%= $desc->{text}
- % if ($has_multi_desc) {
+ % if ($has_multi_desc and length(join(q{}, sort @{$desc->{sections}}))) {
in Abschnitt <%= join(q{}, sort @{$desc->{sections}}) %>
% }
<br/>