From 843ee82289199ee77999ffcacdce72081843a9d4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 21 Dec 2020 19:33:50 +0100 Subject: trainattr: show second powercar if present --- templates/_train_attr.html.ep | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/_train_attr.html.ep b/templates/_train_attr.html.ep index a23d9ac..4f7e9ca 100644 --- a/templates/_train_attr.html.ep +++ b/templates/_train_attr.html.ep @@ -1,5 +1,9 @@ % if ($attr->{series}) { - BR <%= $attr->{series} %> + BR <%= $attr->{series} %> +% if ($attr->{series2}) { + + <%= $attr->{series2} %> +% } + % } % if ($attr->{length}) { ⇤ <%= $attr->{length} %>m ⇥ -- cgit v1.2.3