summaryrefslogtreecommitdiff
path: root/templates/_train_attr.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-01-09 18:38:50 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-01-09 18:38:50 +0100
commit0cbfcf55948c1ec953a39942b47a1b60a276d572 (patch)
tree30f3bcef34246e854630f4f58e06ccd8bb7fb243 /templates/_train_attr.html.ep
parentd0891186b6e2d5baf7141c2ce0ecdfdc246097b2 (diff)
Re-add train attributes4.14.7
Diffstat (limited to 'templates/_train_attr.html.ep')
-rw-r--r--templates/_train_attr.html.ep16
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>
% }