summaryrefslogtreecommitdiff
path: root/template/segment.html
blob: 6948ebbeefcbe58e6c5712669889bc5bdc2b2da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{% from 'macros.html' import separator, footer %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta name="robots" content="noarchive">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="Generator" content="jfrteamy-aus-butler">
    <title>{{"PAGE_TITLE"|translate}}</title>
    <link rel="stylesheet" type="text/css" href="css/kolorki.css">
    {% if favicon %}
    <link rel="shortcut icon" href="images/{{favicon}}" type="image/x-icon">
    <link rel="icon" href="images/{{favicon}}" type="image/x-icon">
    {% endif %}
    <script type="text/javascript" src="sklady/myAjax.js"></script>
  </head>
  <body class="all">
    <script type="text/javascript" src="sklady/wz_tooltip.js"></script>
    <table cellspacing="0">
      <tr>
        <td colspan="3">
          {{logoh}}
        </td>
      </tr>
      {{ separator(3) }}
      <tr>
        <td class="bdnt12" colspan="3">
          {{"BUTLER_ROUND"|translate}}{{round_no}}
          {% if per_round > 1 %}
          {{"SEGMENT"|translate}}{{segment_no}}
          {% endif %}
        </td>
      </tr>
      {{ separator(3) }}
      <tr valign="top">
        <td>
          <table cellspacing="0">
            <tr>
              <td class="bdcc12">{{"HEADER_PLACE"|translate}}</td>
              <td class="bdcc2">{{"HEADER_TABLE"|translate}}</td>
              <td class="bdcc2">&nbsp;</td>
              <td class="bdcc2">{{"HEADER_TEAM"|translate}}</td>
              <td class="bdcc2">&nbsp;&nbsp;&nbsp;{{"HEADER_IMPS"|translate}}&nbsp;&nbsp;&nbsp;</td>
              <td class="bdcc2">&nbsp;{{"HEADER_OPPS"|translate}}&nbsp;</td>
              <td class="bdcc2">&nbsp;{{"HEADER_NORMALIZED"|translate}}&nbsp;</td>
            </tr>
            {% for result in results %}
            <tr>
              <td class="bdc1">{{result['place']}}</td>
              <td class="bdc">{{result['position']}}</td>
              <td class="zno">{{'-'.join(result['players'])}}</td>
              <td class="zno">{{result['team']}}</td>
              <td class="bdc">{{ '%0+d' % result['score']}}</td>
              <td class="bdc">{{ '%+.2f' % result['opp_score']}}</td>
              <td class="bdc">{{ '%+.2f' % result['norm_score']}}</td>
            </tr>
            {% endfor %}
          </table>
        </td>
        <td>&nbsp;&nbsp;&nbsp;</td>
        <td>
          <table cellspacing="0">
            <tr>
              <td class="bdcc12">{{"HEADER_BOARD_NO"|translate}}</td>
            </tr>
            {% for board_no in boards %}
            <tr>
              <td class="bdcc1">
                <a href="{{prefix}}{{round_no}}b-{{board_no}}.html" class="zb" target="popra">&nbsp;&nbsp;&nbsp;{{board_no}}&nbsp;&nbsp;</a>
              </td>
            </tr>
            {% endfor %}
          </table>
        </td>
      </tr>
    </table>
    {{ footer(date, time) }}
  </body>
</html>