From 138f4eb8246c338aec0be5d123f0fee0d6ee6b4f Mon Sep 17 00:00:00 2001 From: Kivou-2000607 Date: Mon, 2 Sep 2019 09:33:13 +0200 Subject: [PATCH] wall breakdown titles --- chain/models.py | 3 +++ templates/chain/walls.html | 2 +- yata/static/perso/css/chain.css | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/chain/models.py b/chain/models.py index ae292a5a1..6e4627709 100644 --- a/chain/models.py +++ b/chain/models.py @@ -47,6 +47,9 @@ class Faction(models.Model): def __str__(self): return "{} [{}]".format(self.name, self.tId) + def getFullName(self): + return "{} [{}]".format(self.name, self.tId) + def addKey(self, id, key): try: keys = json.loads(self.apiString) diff --git a/templates/chain/walls.html b/templates/chain/walls.html index c62c53c96..c23b6968b 100644 --- a/templates/chain/walls.html +++ b/templates/chain/walls.html @@ -77,7 +77,7 @@

List of walls

{% for fac, TotalPlayers in summary.items %}
-

Walls summary for faction {{fac}}  

+

Walls breakdown for {{fac}}: {{TotalPlayers.Total.0|intcomma}} points, {{TotalPlayers.Total.1}} joins and {{TotalPlayers.Total.2}} clears