From be641d4ee2907f873e98677b8e1800124615c43d Mon Sep 17 00:00:00 2001 From: Colin McLeod Date: Thu, 16 Apr 2015 20:47:02 -0700 Subject: [PATCH] html template bug fixes --- app/views/power.html | 4 ++-- app/views/ship.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/power.html b/app/views/power.html index 0db276a8..8a773e74 100644 --- a/app/views/power.html +++ b/app/views/power.html @@ -16,5 +16,5 @@
{{c.c.class}}{{c.c.rating}} {{c.c.name || $r.igMap[c.c.group]}}
{{$r.fPwr(c.c.power)}}
-
Retracted: {{$r.fPwr(ship.powerRetracted)}} ({{$r.percent(ship.powerRetracted/ship.powerAvailable)}})
-
Deployed: {{$r.fPwr(ship.powerDeployed)}} ({{$r.percent(ship.powerDeployed/ship.powerAvailable)}})
+
Retracted: {{$r.fPwr(ship.powerRetracted)}} ({{$r.fPct(ship.powerRetracted/ship.powerAvailable)}})
+
Deployed: {{$r.fPwr(ship.powerDeployed)}} ({{$r.fPct(ship.powerDeployed/ship.powerAvailable)}})
diff --git a/app/views/ship.html b/app/views/ship.html index 111e9126..c63f8d5a 100644 --- a/app/views/ship.html +++ b/app/views/ship.html @@ -1,7 +1,7 @@
{{ship.name}} -
Class: {{ship.class)}
+
Class: {{ship.class}}
Mass: {{fMass(ship.unladenMass)}} - {{fMass(ship.ladenMass)}} [{{ship.mass}}]T
Speed: {{ship.speed}} [{{ship.boost}}] M/s
Agility: {{ship.agility}}