summaryrefslogtreecommitdiff
path: root/jfr_playoff/template.py
diff options
context:
space:
mode:
authorMichał Zimniewicz <michzimny@users.noreply.github.com>2018-04-25 23:00:17 +0200
committerGitHub <noreply@github.com>2018-04-25 23:00:17 +0200
commitacebd78fc701d250069334d607fb918f6b666ba6 (patch)
treee15fce45511d2e0257bf4290baf4675d53745288 /jfr_playoff/template.py
parent753085c46b30828092e66870f15763fee02b32f7 (diff)
parent1060632734b1f4e1117cbc33163101999ab201f6 (diff)
Merge pull request #24 from emkael/position-styles
Wyróżnienie wierszy tabeli klasyfikacji końcowej
Diffstat (limited to 'jfr_playoff/template.py')
-rw-r--r--jfr_playoff/template.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/jfr_playoff/template.py b/jfr_playoff/template.py
index e9ba977..b99c7c7 100644
--- a/jfr_playoff/template.py
+++ b/jfr_playoff/template.py
@@ -96,7 +96,7 @@ LEADERBOARD = '''
'''
LEADERBOARD_ROW = '''
-<tr>
+<tr class="%s">
<td class="bdc1">%d</td>
<td class="bd">
&nbsp;%s&nbsp;&nbsp;%s&nbsp;
@@ -108,6 +108,22 @@ LEADERBOARD_ROW_FLAG = '''
<img class="fl" src="images/%s" />
'''
+LEADERBOARD_CAPTION_TABLE = '''
+<table class="caption_table" border="0" cellspacing="0">
+<tr><td class="e">&nbsp;</td></tr>
+<tr><td class="bdnl12" align="center"><b>&nbsp;LEGENDA&nbsp;</b></td></tr>
+%s
+</table>
+'''
+
+LEADERBOARD_CAPTION_TABLE_ROW = '''
+<tr class="%s">
+<td class="bd1">
+&nbsp;%s&nbsp;
+</td>
+</tr>
+'''
+
PAGE_HEAD = '''
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
@@ -134,6 +150,7 @@ PAGE_BODY = '''
</p>
%s
%s
+%s
'''
PAGE_BODY_FOOTER = '''