X-Git-Url: http://git.veekun.com/zzz-spline-users.git/blobdiff_plain/1e2382335ea1e52b42cdc07fd1f74b9a9b0cec39..a35a43eeaf6e7fe1247657ffffda8bb1735def12:/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..adf816b 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 ${userlib.color_bar(c.user)} ${c.user.name}. + ${h.end_form()} +% else: +

Log in or register

+% endif