# -*- coding: utf-8 -*-
class TemplateStrings(object):
MATCH_TABLE = '''
'''
MATCH_LINK = '''
%s
'''
MATCH_SCORE = '''
%.1f
'''
MATCH_TEAM_LINK = '''
%s
'''
MATCH_TEAM_NON_LINK = '''
%s
'''
MATCH_TEAM_ROW = '''
%s |
%s
|
'''
MATCH_RUNNING = '''
%d
'''
MATCH_GRID = '''
%s
'''
MATCH_GRID_PHASE_LINK = '''
%s
'''
MATCH_GRID_PHASE_NON_LINK = '''
'''
MATCH_GRID_PHASE = '''
%s
'''
MATCH_GRID_PHASE_RUNNING = '''
%s
'''
MATCH_BOX = '''
%s
'''
LEADERBOARD = '''
KLASYFIKACJA KOŃCOWA |
|
miejsce |
drużyna |
%s
'''
LEADERBOARD_ROW = '''
%d |
%s %s
|
'''
LEADERBOARD_ROW_FLAG = '''
'''
LEADERBOARD_CAPTION_TABLE = '''
'''
LEADERBOARD_CAPTION_TABLE_ROW = '''
%s
|
'''
PAGE_HEAD = '''
%s
%s
'''
PAGE_HEAD_REFRESH = '''
'''
PAGE_BODY = '''
%s
%s
%s
%s
%s
%s
'''
PAGE_BODY_FOOTER = '''
Admin ©Jan Romański'2005, PlayOff ©Michał Klichowicz'2017-2018, strona wygenerowana %s
'''
PAGE = '''
%s
%s
'''
SWISS_LINK = '''
[ %s ]
'''
SWISS_RUNNING_LINK = '''
[ %s ]
'''
SWISS_DEFAULT_LABEL = 'Turniej o %d. miejsce'
class Template(object):
@staticmethod
def get(string, *params):
return getattr(TemplateStrings, string).decode('utf8') % params