summaryrefslogtreecommitdiff
path: root/playoff
diff options
context:
space:
mode:
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" />