diff options
author | MichaĆ Klichowicz <emkael@tlen.pl> | 2018-10-17 20:05:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-17 20:05:53 +0200 |
commit | 337ef4b3c426b392bfed8b9c4656d292645d9bb5 (patch) | |
tree | 1971b6ec8244df1cc093b3e5b8471c2dadd659e8 /jfr_playoff/template.py | |
parent | 984540cd2dfba29c1dc9cbc43ab6fa4c85c7727b (diff) | |
parent | 9a2db36e92d12f2724801de3618e2794579ac302 (diff) |
Merge pull request #29 from emkael/v1.2.1v1.2.1
v1.2.1
Diffstat (limited to 'jfr_playoff/template.py')
-rw-r--r-- | jfr_playoff/template.py | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/jfr_playoff/template.py b/jfr_playoff/template.py index 70c179b..dc9e91e 100644 --- a/jfr_playoff/template.py +++ b/jfr_playoff/template.py @@ -24,6 +24,14 @@ class PlayoffTemplateStrings(object): %.1f ''' + MATCH_TEAM_LABEL = '<span class="team-label">%s</span>' + + MATCH_PREDICTED_TEAM_LABEL = '<span class="team-predicted-label">%s</span>' + + MATCH_TEAM_LIST_HEADER = '{{DETERMINED_TEAMS}}' + + MATCH_POSSIBLE_TEAM_LIST_HEADER = '{{POSSIBLE_TEAMS}}' + MATCH_TEAM_LINK = ''' <a href="%s" onmouseover="Tip('%s')" onmouseout="UnTip()">%s</a> ''' @@ -51,6 +59,8 @@ class PlayoffTemplateStrings(object): <div style="position: relative; width: %dpx; height: %dpx; margin: 10px"> <canvas width="%d" height="%d" id="playoff_canvas" %s></canvas> %s + %s + %s <script src="sklady/playoff.js" type="text/javascript"></script> </div> ''' @@ -77,8 +87,28 @@ class PlayoffTemplateStrings(object): <img src="images/A.gif" /> ''' + STARTING_POSITION_BOX = ''' + <div style="position: absolute; left: %dpx; top: %dpx" class="playoff_matchbox" data-id="place-%d"> + %s + </div> + ''' + + 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"> + %s + </div> + ''' + + POSITION_BOX = ''' + <table border="0" cellspacing="0"> + <tr> + <td class="bdc12" width="20">%d</td> + </tr> + </table> + ''' + MATCH_BOX = ''' - <div style="text-align: center; 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" data-place-winner="%s" data-place-loser="%s" class="playoff_matchbox"> %s </div> ''' |