diff --git a/core/models/survex.py b/core/models/survex.py index 4c2c109..8999810 100644 --- a/core/models/survex.py +++ b/core/models/survex.py @@ -86,14 +86,16 @@ class SurvexStation(models.Model): diff = alt - self.z if diff >= 0: colour = "blue" + sign = "+" else: colour = "red" + sign = "" if abs(diff) > 60: weight = "bold" else: weight = "normal" - diff_str = f"{diff:.0f}" + diff_str = f"{sign}{diff:.0f}" return diff_str, ref diff --git a/templates/entranceindex.html b/templates/entranceindex.html index 115c33b..6c26c9d 100644 --- a/templates/entranceindex.html +++ b/templates/entranceindex.html @@ -16,10 +16,12 @@