Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
Use the .ico functionality recently added to fanstatic.
Browse files Browse the repository at this point in the history
  • Loading branch information
janjaapdriessen committed Jan 4, 2011
1 parent ceeecb2 commit ca4a8ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/grokui/base/layout.py
Expand Up @@ -17,6 +17,7 @@ class GrokUILayout(Layout):

def update(self):
resource.grok_css.need()
resource.favicon.need()
self.baseurl = absoluteURL(self.context, self.request) + '/'


Expand Down
2 changes: 0 additions & 2 deletions src/grokui/base/layout_templates/grokuilayout.pt
Expand Up @@ -2,8 +2,6 @@
<head>
<title tal:content="layout/title" />
<base tal:attributes="href layout/baseurl" />
<link rel="shortcut icon" type="image/x-icon"
tal:attributes="href static/favicon.ico" />
</head>
<body>
<div id="grokui-page">
Expand Down
2 changes: 2 additions & 0 deletions src/grokui/base/resource.py
Expand Up @@ -3,3 +3,5 @@
library = Library('grokui.base', 'static')

grok_css = Resource(library, 'grok.css')

favicon = Resource(library, 'favicon.ico')

0 comments on commit ca4a8ae

Please sign in to comment.