- <base href="${cherrypy.request.base}" />
- <link href="static/favicon.ico" type="image/x-icon" rel="shortcut icon">
- <link rel="stylesheet" href="static/style.css" type="text/css" />
- <link rel="stylesheet" href="static/layout.css" type="text/css" media="screen" />
- <script type="text/javascript" src="static/prototype.js"></script>
+ <base href="${cherrypy.request.base}${"/admin/" if cherrypy.request.state.isadmin else ""}" />
+ <link href="/static/favicon.ico" type="image/x-icon" rel="shortcut icon">
+ <link rel="stylesheet" href="/static/style.css" type="text/css" />
+ <link rel="stylesheet" href="/static/layout.css" type="text/css" media="screen" />
+ <script type="text/javascript" src="/static/prototype.js"></script>