summaryrefslogtreecommitdiff
path: root/templates/_train_attr.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_train_attr.html.ep')
-rw-r--r--templates/_train_attr.html.ep18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/_train_attr.html.ep b/templates/_train_attr.html.ep
new file mode 100644
index 0000000..1b40d12
--- /dev/null
+++ b/templates/_train_attr.html.ep
@@ -0,0 +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->{weight}) {
+ <span><%= $attr->{weight} %>t</span>
+% }
+% if ($attr->{brakingPercentage}) {
+ <span>λ=<%= $attr->{brakingPercentage} %></span>
+% }
+% if ($with_station and $attr->{range}[0]) {
+ <span>ab <%= $attr->{range}[0] %></span>
+% }