collab: Add foo.sh theme python script
This commit is contained in:
parent
689ba57b72
commit
42353b188c
2 changed files with 36 additions and 0 deletions
26
roles/collab/files/foosh.py
Normal file
26
roles/collab/files/foosh.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
foo.sh branded bootstrap theme.
|
||||
@license: GNU GPL <http://www.gnu.org/licenses/gpl.html>
|
||||
"""
|
||||
from collabbackend.plugin.theme.opencollab import Theme as ThemeParent
|
||||
|
||||
|
||||
class Theme(ThemeParent):
|
||||
name = "foo.sh"
|
||||
css_files = ["screen"]
|
||||
|
||||
def logo(self):
|
||||
url = self.cfg.url_prefix_static + "/foo.sh/img/logo.png"
|
||||
return u"""<img src="%s">""" % url
|
||||
|
||||
|
||||
def execute(request):
|
||||
"""
|
||||
Generate and return a theme object
|
||||
|
||||
@param request: the request object
|
||||
@rtype: MoinTheme
|
||||
@return: Theme object
|
||||
"""
|
||||
return Theme(request)
|
Loading…
Add table
Add a link
Reference in a new issue