diff options
Diffstat (limited to 'templates/_train_attr.html.ep')
-rw-r--r-- | templates/_train_attr.html.ep | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/_train_attr.html.ep b/templates/_train_attr.html.ep index a23d9ac..1b40d12 100644 --- a/templates/_train_attr.html.ep +++ b/templates/_train_attr.html.ep @@ -1,15 +1,18 @@ % if ($attr->{series}) { <span>BR <%= $attr->{series} %></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> % } |