summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
Diffstat (limited to 'jfr_playoff')
-rw-r--r--jfr_playoff/generator.py5
-rw-r--r--jfr_playoff/template.py5
2 files changed, 10 insertions, 0 deletions
diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py
index e640e03..f2dc22b 100644
--- a/jfr_playoff/generator.py
+++ b/jfr_playoff/generator.py
@@ -10,6 +10,7 @@ class PlayoffGenerator(object):
def __init__(self, settings):
self.data = PlayoffData(settings)
self.page = settings.get('page')
+ print self.page.get('favicon')
PlayoffLogger.get('generator').info(
'page settings: %s', self.page)
self.team_box_settings = self.page.get('team_boxes', {})
@@ -40,6 +41,10 @@ class PlayoffGenerator(object):
'PAGE_HEAD_REFRESH',
self.page['refresh']) \
if self.page['refresh'] > 0 else '',
+ self.p_temp.get(
+ 'PAGE_HEAD_FAVICON',
+ self.page['favicon']) \
+ if len(self.page.get('favicon', '')) else '',
self.page['title']),
self.p_temp.get(
'PAGE_BODY',
diff --git a/jfr_playoff/template.py b/jfr_playoff/template.py
index a76ebcd..936a051 100644
--- a/jfr_playoff/template.py
+++ b/jfr_playoff/template.py
@@ -176,6 +176,7 @@ class PlayoffTemplateStrings(object):
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Generator" content="PlayOff" />
%s
+ %s
<title>%s</title>
<link rel="stylesheet" type="text/css" href="css/kolorki.css" />
<link rel="stylesheet" type="text/css" href="css/playoff.css" />
@@ -186,6 +187,10 @@ class PlayoffTemplateStrings(object):
<meta http-equiv="Refresh" content="%d" />
'''
+ PAGE_HEAD_FAVICON = '''
+ <link rel="shortcut icon" href="%s">
+ '''
+
PAGE_BODY = '''
<script type="text/javascript" src="sklady/wz_tooltip.js"></script>
%s