summaryrefslogtreecommitdiff
path: root/template/table.html
blob: 3b13c97b97757e193018b3e352a063dd360caf5a (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
82
83
{% from 'macros.html' import separator, previous_rounds, table_header, table_player, 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}}: {{"BUTLER"|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="{{segment_limit+5}}">
          {{logoh}}
        </td>
      </tr>
      {{ separator(segment_limit+5) }}
      <tr>
        <td class="bdnt12" colspan="{{segment_limit+5}}">
          {{"NORMALIZED_CLASSIFICATION"|translate}}
          {% if percent_threshold > 0 %}
          <small><br />{{"WITHOUT_PLAYERS_WITHOUT_CHANCES"|translate}}{{percent_threshold}}{{"PERCENT_NOT_LISTED"|translate}}</small>
          {% endif %}
        </td>
      </tr>
      <tr>
        <td class="bde1" style="background: none; padding: 0 1em; width: 1px; white-space: unset" colspan="{{segment_limit+5}}">
          <p>
            {{"INFO_NORMALIZATION_PREFIX"|translate}}{{config['opponent_factor'] * 100}}{{"INFO_NORMALIZATION_SUFFIX"|translate}}
          </p>
          <p>
            {{"INFO_CUTOFF_PREFIX"|translate}}{{config['cutoff_point']}}{{"INFO_CUTOFF"|translate}}{{config['cutoff_rate'] * 100}}{{"INFO_CUTOFF_SUFFIX"|translate}}
          </p>
          <p>
            {% if config['only_current'] %}
            {{"INFO_ONLY_CURRENT"|translate}}
            {% else %}
            {{"INFO_NOT_ONLY_CURRENT"|translate}}
            {% endif %}
          </p>
        </td>
      </tr>
      {{ separator(segment_limit+5) }}
      {% if segments|length > segment_limit %}
        {{ previous_rounds(segments, segment_limit, prefix, per_round) }}
      {% endif %}
      {{ table_header(segments, segment_limit, prefix, per_round) }}
      {% for player in above_threshold %}
        {{ table_player(player, segment_limit) }}
      {% endfor %}
      {% if below_threshold|length > 0 %}
      {{ separator(segment_limit+5) }}
      <tr>
        <td class="bdnt12" colspan="{{segment_limit+5}}">
          {{"NORMALIZED_CLASSIFICATION"|translate}}
          {% if percent_threshold > 0 %}
          <small><br />{{"PLAYERS_WITHOUT_CHANCES"|translate}}{{percent_threshold}}{{"PERCENT"|translate}}</small>
          {% endif %}
        </td>
      </tr>
      {{ separator(segment_limit+5) }}
      {% if segments|length > segment_limit %}
        {{ previous_rounds(segments, segment_limit, prefix, per_round) }}
      {% endif %}
      {{ table_header(segments, segment_limit, prefix, per_round) }}
      {% for player in below_threshold %}
        {{ table_player(player, segment_limit) }}
      {% endfor %}
      {% endif %}
    </table>
    {{ footer(date, time) }}
  </body>
</html>