Skip to content

Commit

Permalink
wall breakdown titles
Browse files Browse the repository at this point in the history
  • Loading branch information
Kivou-2000607 committed Sep 2, 2019
1 parent 68b6a76 commit 138f4eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions chain/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion templates/chain/walls.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h2 class="title">List of walls</h2>
{% for fac, TotalPlayers in summary.items %}
<div class="catch-me">

<h2 class="title toggle-display rounded">Walls summary for faction {{fac}}&nbsp;&nbsp;<i class="fas fa-caret-right"></i></h2>
<h2 class="title toggle-display rounded">Walls breakdown for <b class='{% if fac == faction.getFullName %}valid{% else %}error{% endif %}'>{{fac}}</b>: {{TotalPlayers.Total.0|intcomma}} points, {{TotalPlayers.Total.1}} joins and {{TotalPlayers.Total.2}} clears&nbsp;&nbsp;<i class="fas fa-caret-right"></i></h2>
<div class="module" style="display: none;">
<table class="tablesorter center trshadow wall-joint-faction-report">
<thead>
Expand Down
2 changes: 1 addition & 1 deletion yata/static/perso/css/chain.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This file is part of yata.

table.chain-categories td {
text-align: center;
width: 14.29%;
width: 12.5%;
cursor: pointer;
border: 0;
}
Expand Down

0 comments on commit 138f4eb

Please sign in to comment.