summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-01-06 20:52:34 +0100
committeremkael <emkael@tlen.pl>2019-01-06 20:52:34 +0100
commitfd28ca936707d75dbbaafadb5b3c4958dda905ec (patch)
tree321c67abef4e38d673c450b30f422cdf5f69654f /jfr_playoff
parent337ef4b3c426b392bfed8b9c4656d292645d9bb5 (diff)
Leaderboard classes in finishing positions boxes
Diffstat (limited to 'jfr_playoff')
-rw-r--r--jfr_playoff/generator.py1
-rw-r--r--jfr_playoff/template.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py
index a620a1b..8bdb2d8 100644
--- a/jfr_playoff/generator.py
+++ b/jfr_playoff/generator.py
@@ -272,6 +272,7 @@ class PlayoffGenerator(object):
boxes += self.p_temp.get(
'FINISHING_POSITION_BOX',
self.page['margin'] / 2 + int(float(order) / float(len(positions)) * dimensions[1]),
+ self.get_leaderboard_row_class(place),
place,
' '.join([str(p) for p in position_info[place]['winner']]),
' '.join([str(p) for p in position_info[place]['loser']]),
diff --git a/jfr_playoff/template.py b/jfr_playoff/template.py
index dc9e91e..a33afcc 100644
--- a/jfr_playoff/template.py
+++ b/jfr_playoff/template.py
@@ -94,7 +94,7 @@ class PlayoffTemplateStrings(object):
'''
FINISHING_POSITION_BOX = '''
- <div style="position: absolute; right: 0px; top: %dpx" class="playoff_matchbox" data-id="finish-%d" data-finish-winner="%s" data-finish-loser="%s">
+ <div style="position: absolute; right: 0px; top: %dpx" class="playoff_matchbox %s" data-id="finish-%d" data-finish-winner="%s" data-finish-loser="%s">
%s
</div>
'''