X-Git-Url: http://git.veekun.com/zzz-spline-users.git/blobdiff_plain/1e2382335ea1e52b42cdc07fd1f74b9a9b0cec39..ef84ec8cca82b01bdec296d7c02001b7b212ff5f:/spline/plugins/users/templates/widgets/user_state.mako diff --git a/spline/plugins/users/templates/widgets/user_state.mako b/spline/plugins/users/templates/widgets/user_state.mako index d279dc4..86995dc 100644 --- a/spline/plugins/users/templates/widgets/user_state.mako +++ b/spline/plugins/users/templates/widgets/user_state.mako @@ -1,9 +1,9 @@ -${h.form(url(controller='accounts', action='login_begin'), id='user')} - % if c.user: - Logged in as ${c.user.name}. - % else: - - - - % endif +<%namespace name="userlib" file="/users/lib.mako" /> +% if c.user: +${h.form(url(controller='accounts', action='logout'), id='user')} + Logged in as ${c.user.name} ${userlib.color_bar(c.user)}. + ${h.end_form()} +% else: +
+% endif