From 7971511d859710929199b65b121d19eac8a9ac37 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 27 Dec 2019 21:04:15 +0100 Subject: Updating copyright year in output footer Fixes #40 --- jfr_playoff/template.py | 478 ++++++++++++++++++++++++------------------------ 1 file changed, 239 insertions(+), 239 deletions(-) (limited to 'jfr_playoff') diff --git a/jfr_playoff/template.py b/jfr_playoff/template.py index 936a051..c4e6d4f 100644 --- a/jfr_playoff/template.py +++ b/jfr_playoff/template.py @@ -1,239 +1,239 @@ -# -*- coding: utf-8 -*- - -from jfr_playoff.i18n import PlayoffI18N - -class PlayoffTemplateStrings(object): - - MATCH_TABLE = ''' - - - - - - %s -
  {{SCORE}} 
- ''' - - MATCH_LINK = ''' - - %s - - ''' - - MATCH_SCORE = ''' -  %.1f  - ''' - - MATCH_TEAM_LABEL = '%s' - - MATCH_PREDICTED_TEAM_LABEL = '%s' - - MATCH_TEAM_LIST_HEADER = '{{DETERMINED_TEAMS}}' - - MATCH_POSSIBLE_TEAM_LIST_HEADER = '{{POSSIBLE_TEAMS}}' - - MATCH_TEAM_LINK = ''' - %s - ''' - - MATCH_TEAM_NON_LINK = ''' - %s - ''' - - MATCH_TEAM_ROW = ''' - -  %s  - - %s - - - ''' - - MATCH_RUNNING = ''' - - %d - - ''' - - MATCH_GRID = ''' -
- - %s - %s - %s - -
- ''' - - MATCH_GRID_PHASE_LINK = ''' - - %s - - ''' - - MATCH_GRID_PHASE_NON_LINK = ''' - -

%s

-
- ''' - - MATCH_GRID_PHASE = ''' - %s - ''' - - MATCH_GRID_PHASE_RUNNING = ''' - - %s - - ''' - - STARTING_POSITION_BOX = ''' -
- %s -
- ''' - - FINISHING_POSITION_BOX = ''' -
- %s -
- ''' - - POSITION_BOX = ''' - - - - -
%d
- ''' - - CAPTIONED_POSITION_BOX = ''' - - - - -
- %d -
- ''' - - MATCH_BOX = ''' -
- %s -
- ''' - - LEADERBOARD = ''' - - - - - - - - - - - - %s -
 {{FINAL_STANDINGS}} 
 
 {{STANDINGS_PLACE}}  {{STANDINGS_TEAM}} 
- ''' - - LEADERBOARD_ROW = ''' - - %d - -  %s  %s  - - - ''' - - LEADERBOARD_ROW_FLAG = ''' - - ''' - - LEADERBOARD_CAPTION_TABLE = ''' - - - - %s -
 
 {{STANDINGS_CAPTIONS}} 
- ''' - - LEADERBOARD_CAPTION_TABLE_ROW = ''' - - -  %s  - - - ''' - - PAGE_HEAD = ''' - - - - - - - %s - %s - %s - - - - ''' - - PAGE_HEAD_REFRESH = ''' - - ''' - - PAGE_HEAD_FAVICON = ''' - - ''' - - PAGE_BODY = ''' - - %s - %s - - %s - %s - %s - ''' - - PAGE_BODY_FOOTER = ''' -

 Admin ©Jan Romański'2005, PlayOff ©Michał Klichowicz'2017-2018, {{FOOTER_GENERATED}} %s

- ''' - - PAGE = ''' - - - - %s - - - %s - - - ''' - - SWISS_LINK = ''' - [ %s ]

- ''' - - SWISS_RUNNING_LINK = ''' - [  %s  ]

- ''' - - SWISS_DEFAULT_LABEL = '{{SWISS_DEFAULT_LABEL}}' - -class PlayoffTemplate(object): - - def __init__(self, settings): - self.i18n = PlayoffI18N(settings) - - def get(self, string, *params): - return self.i18n.localize( - getattr(PlayoffTemplateStrings, string).decode('utf8')) % params +# -*- coding: utf-8 -*- + +from jfr_playoff.i18n import PlayoffI18N + +class PlayoffTemplateStrings(object): + + MATCH_TABLE = ''' + + + + + + %s +
  {{SCORE}} 
+ ''' + + MATCH_LINK = ''' + + %s + + ''' + + MATCH_SCORE = ''' +  %.1f  + ''' + + MATCH_TEAM_LABEL = '%s' + + MATCH_PREDICTED_TEAM_LABEL = '%s' + + MATCH_TEAM_LIST_HEADER = '{{DETERMINED_TEAMS}}' + + MATCH_POSSIBLE_TEAM_LIST_HEADER = '{{POSSIBLE_TEAMS}}' + + MATCH_TEAM_LINK = ''' + %s + ''' + + MATCH_TEAM_NON_LINK = ''' + %s + ''' + + MATCH_TEAM_ROW = ''' + +  %s  + + %s + + + ''' + + MATCH_RUNNING = ''' + + %d + + ''' + + MATCH_GRID = ''' +
+ + %s + %s + %s + +
+ ''' + + MATCH_GRID_PHASE_LINK = ''' + + %s + + ''' + + MATCH_GRID_PHASE_NON_LINK = ''' + +

%s

+
+ ''' + + MATCH_GRID_PHASE = ''' + %s + ''' + + MATCH_GRID_PHASE_RUNNING = ''' + + %s + + ''' + + STARTING_POSITION_BOX = ''' +
+ %s +
+ ''' + + FINISHING_POSITION_BOX = ''' +
+ %s +
+ ''' + + POSITION_BOX = ''' + + + + +
%d
+ ''' + + CAPTIONED_POSITION_BOX = ''' + + + + +
+ %d +
+ ''' + + MATCH_BOX = ''' +
+ %s +
+ ''' + + LEADERBOARD = ''' + + + + + + + + + + + + %s +
 {{FINAL_STANDINGS}} 
 
 {{STANDINGS_PLACE}}  {{STANDINGS_TEAM}} 
+ ''' + + LEADERBOARD_ROW = ''' + + %d + +  %s  %s  + + + ''' + + LEADERBOARD_ROW_FLAG = ''' + + ''' + + LEADERBOARD_CAPTION_TABLE = ''' + + + + %s +
 
 {{STANDINGS_CAPTIONS}} 
+ ''' + + LEADERBOARD_CAPTION_TABLE_ROW = ''' + + +  %s  + + + ''' + + PAGE_HEAD = ''' + + + + + + + %s + %s + %s + + + + ''' + + PAGE_HEAD_REFRESH = ''' + + ''' + + PAGE_HEAD_FAVICON = ''' + + ''' + + PAGE_BODY = ''' + + %s + %s + + %s + %s + %s + ''' + + PAGE_BODY_FOOTER = ''' +

 Admin ©Jan Romański'2005, PlayOff ©Michał Klichowicz'2017-2020, {{FOOTER_GENERATED}} %s

+ ''' + + PAGE = ''' + + + + %s + + + %s + + + ''' + + SWISS_LINK = ''' + [ %s ]

+ ''' + + SWISS_RUNNING_LINK = ''' + [  %s  ]

+ ''' + + SWISS_DEFAULT_LABEL = '{{SWISS_DEFAULT_LABEL}}' + +class PlayoffTemplate(object): + + def __init__(self, settings): + self.i18n = PlayoffI18N(settings) + + def get(self, string, *params): + return self.i18n.localize( + getattr(PlayoffTemplateStrings, string).decode('utf8')) % params -- cgit v1.2.3