summaryrefslogtreecommitdiff
path: root/playoff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-02-22 15:53:55 +0100
committeremkael <emkael@tlen.pl>2017-02-22 15:53:55 +0100
commitf5b982e2aab612f3a8d7325f714792a670a348f6 (patch)
treedb02ab2a2e76cf95885a6fc4de6d719362634bb9 /playoff
parentef06b88555ee46c9dd199f83dce731d8a7b039a6 (diff)
Leaderboard fixes, regarding team flags
Diffstat (limited to 'playoff')
-rw-r--r--playoff/template.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/playoff/template.py b/playoff/template.py
index 65a846b..5a282e3 100644
--- a/playoff/template.py
+++ b/playoff/template.py
@@ -38,19 +38,21 @@ MATCH_GRID = '''
'''
MATCH_GRID_PHASE = '''
-<a href="%s" target="_top" style="display: inline-block; width: %dpx; text-align: center; position: absolute; top: 0; left: %dpx">%s</a>
+<a href="%s" target="_top" style="display: inline-block; width: %dpx; text-align: center; position: absolute; top: 0; left: %dpx">
+<font size="4">%s</font>
+</a>
'''
-MATCH_GRID_RUNNING_PHASE = '''
+MATCH_GRID_PHASE_RUNNING = '''
<a href="%s" target="_top" style="display: inline-block; width: %dpx; text-align: center; position: absolute; top: 0; left: %dpx">
<img src="images/A.gif" />
-%s
+<font size="4">%s</font>
<img src="images/A.gif" />
</a>
'''
MATCH_BOX = '''
-<div style="position: absolute; left: %dpx; top: %dpx" data-id="%d" data-winner="%s" data-loser="%s" class="playoff_matchbox">
+<div style="text-align: center; position: absolute; left: %dpx; top: %dpx" data-id="%d" data-winner="%s" data-loser="%s" class="playoff_matchbox">
%s
</div>
'''
@@ -74,10 +76,16 @@ LEADERBOARD = '''
LEADERBOARD_ROW = '''
<tr>
<td class="bdc1">%d</td>
-<td class="bd">&nbsp;%s&nbsp;</td>
+<td class="bd">
+&nbsp;%s&nbsp;&nbsp;%s&nbsp;
+</td>
</tr>
'''
+LEADERBOARD_ROW_FLAG = '''
+<img class="fl" src="images/%s" />
+'''
+
PAGE_HEAD = '''
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />