use css defined in settings
This commit is contained in:
parent
3f4f9c6998
commit
c17066a6b2
|
@ -13,17 +13,21 @@ from wcs import storage
|
|||
|
||||
|
||||
def html_top [html] (title = None):
|
||||
try:
|
||||
css = wcs.misc.cfg['appearance']['css']
|
||||
except KeyError:
|
||||
css = '/css/wcs.css'
|
||||
return """<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>%s</title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/wcs.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="%s"/>
|
||||
</head>
|
||||
<body>
|
||||
<div id="page">
|
||||
<div id="top">
|
||||
<h1>%s</h1>
|
||||
</div>
|
||||
<div id="main-content">""" % (title, title)
|
||||
<div id="main-content">""" % (title, css, title)
|
||||
|
||||
def html_foot [html] ():
|
||||
return """</div><div id="footer"><p id="lasso">Powered by Lasso</p></div></div></body></html>"""
|
||||
|
|
Loading…
Reference in New Issue