Get username from cherrypy request object
[invirt/packages/invirt-web.git] / code / templates / skeleton.mako
index d602252..a619a67 100644 (file)
@@ -46,8 +46,8 @@ function helppopup(name){
 % endif
 
 % if not simple:
 % endif
 
 % if not simple:
-% if user:
-<p class="loggedin">Welcome, <span class="name">${user}</span>.</p>
+% if cherrypy.request.login:
+<p class="loggedin">Welcome, <span class="name">${cherrypy.request.login}</span>.</p>
 % endif
 
 <ul class="navigation">
 % endif
 
 <ul class="navigation">