diff options
author | emkael <emkael@tlen.pl> | 2018-10-17 19:48:53 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-10-17 19:48:53 +0200 |
commit | 69faf075c1ddf5e9d5a77fb1bba245fd567bd348 (patch) | |
tree | faf676b535a417d188b5ab0e922f7e17c78514f5 /jfr_playoff/template.py | |
parent | 524d09e5cd6d1e026d706aa8c0eac346c26c6433 (diff) | |
parent | 17b67eec50d428383406d4309bc7506fd22015db (diff) |
Merge branch 'position-boxes' into v1.2.1
Diffstat (limited to 'jfr_playoff/template.py')
-rw-r--r-- | jfr_playoff/template.py | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/jfr_playoff/template.py b/jfr_playoff/template.py index 70c179b..267c5f7 100644 --- a/jfr_playoff/template.py +++ b/jfr_playoff/template.py @@ -51,6 +51,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 +79,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> ''' |