diff options
author | Daniel Friesel <derf@finalrewind.org> | 2023-01-09 18:38:50 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2023-01-09 18:38:50 +0100 |
commit | 0cbfcf55948c1ec953a39942b47a1b60a276d572 (patch) | |
tree | 30f3bcef34246e854630f4f58e06ccd8bb7fb243 /templates/_train_attr.html.ep | |
parent | d0891186b6e2d5baf7141c2ce0ecdfdc246097b2 (diff) |
Re-add train attributes4.14.7
Diffstat (limited to 'templates/_train_attr.html.ep')
-rw-r--r-- | templates/_train_attr.html.ep | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/templates/_train_attr.html.ep b/templates/_train_attr.html.ep index 4f7e9ca..dad21e4 100644 --- a/templates/_train_attr.html.ep +++ b/templates/_train_attr.html.ep @@ -1,19 +1,15 @@ -% if ($attr->{series}) { - <span>BR <%= $attr->{series} %> -% if ($attr->{series2}) { - + <%= $attr->{series2} %> -% } - </span> +% if ($attr->{vmax}) { + <span><%= $attr->{vmax} %> km/h</span> % } % if ($attr->{length}) { <span>⇤ <%= $attr->{length} %>m ⇥</span> % } -% if ($attr->{vmax}) { - <span><%= $attr->{vmax} %> km/h</span> +% if ($attr->{weight}) { + <span><%= $attr->{weight} %>t</span> % } % if ($attr->{brakingPercentage}) { <span>λ=<%= $attr->{brakingPercentage} %></span> % } -% if ($attr->{station} and $with_station) { - <span>ab <%= $attr->{station} %></span> +% if ($with_station and $attr->{range}[0]) { + <span>ab <%= $attr->{range}[0] %></span> % } |