From 187fcccf7d41508d10bde62ce47079b2d3f859a4 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 6 Jan 2017 00:30:34 +0100 Subject: Generating compiled table page --- template/table.html | 152 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 template/table.html (limited to 'template/table.html') diff --git a/template/table.html b/template/table.html new file mode 100644 index 0000000..51559c2 --- /dev/null +++ b/template/table.html @@ -0,0 +1,152 @@ + + + + + + + + + + {{"PAGE_TITLE"|translate}}: {{"BUTLER"|translate}} + + + + + + + + + + + + + + + + + + + {% if segments|length > segment_limit %} + + + + + + + {% endif %} + + + + + + + {% for segment in segments[-segment_limit:] %} + + {% endfor %} + + {% for player in above_threshold %} + + + + + + + {% for result in player['results'][-segment_limit:] %} + {% if result != '' %} + + {% else %} + + {% endif %} + {% endfor %} + + {% endfor %} + {% if below_threshold|length > 0 %} + + + + + + + + + + {% if segments|length > segment_limit %} + + + + + + + {% endif %} + + + + + + + {% for segment in segments[-segment_limit:] %} + + {% endfor %} + + {% for player in below_threshold %} + + + + + + + {% for result in player['results'][-segment_limit:] %} + {% if result != '' %} + + {% else %} + + {% endif %} + {% endfor %} + + {% endfor %} + {% endif %} +
+ {{logoh}} +
 
+ {{"NORMALIZED_CLASSIFICATION"|translate}} + {% if percent_threshold > 0 %} +
{{"PLAYERS_WITHOUT_CHANCES"|translate}}{{percent_threshold}}{{"PERCENT_NOT_LISTED"|translate}}
+ {% endif %} +
 
+ {{"HEADER_PREV_ROUNDS"|translate}} + {% for segment in segments[0:-segment_limit] %} + | + {{segment['round']}}-{{segment['segment']}} + + {% endfor %} + | +
 
{{"HEADER_PLACE"|translate}} {{"HEADER_TEAM"|translate}}{{"HEADER_IMPBRD"|translate}}{{"HEADER_BOARDS"|translate}} + + {{segment['round']}}-{{segment['segment']}} + +
{{player['place']}}{{player['name']}}{{player['team']}}{{'%.2f' % player['sum']}}{{player['count']}}{{'%+.2f' % result}} 
 
+ {{"NORMALIZED_CLASSIFICATION"|translate}} + {% if percent_threshold > 0 %} +
{{"PLAYERS_WITHOUT_CHANCES"|translate}}{{percent_threshold}}%
+ {% endif %} +
 
+ {{"HEADER_PREV_ROUNDS"|translate}} + {% for segment in segments[0:-segment_limit] %} + | + {{segment['round']}}-{{segment['segment']}} + + {% endfor %} + | +
 
{{"HEADER_PLACE"|translate}} {{"HEADER_TEAM"|translate}}{{"HEADER_IMPBRD"|translate}}{{"HEADER_BOARDS"|translate}} + + {{segment['round']}}-{{segment['segment']}} + +
{{player['place']}}{{player['name']}}{{player['team']}}{{'%.2f' % player['sum']}}{{player['count']}}{{'%+.2f' % result}} 
+

+

+ {{"FOOTER_ANALYSIS"|translate}}, ©William Bailey'1999
+  Admin ©Jan Romański'2005, jfrteamy-ausbutler ©Michał Klichowicz'2017{{"FOOTER_GENERATED"|translate}} + {{date}}{{"FOOTER_AT"|translate}}{{time}}{{"FOOTER_OPTIMIZED"|translate}} +

+ + -- cgit v1.2.3