X-Git-Url: http://git.veekun.com/zzz-spline-users.git/blobdiff_plain/1e2382335ea1e52b42cdc07fd1f74b9a9b0cec39..3036be98ef57c54a3c06ac55d9b96432cfeaad90:/spline/plugins/users/templates/widgets/user_state.mako?ds=inline diff --git a/spline/plugins/users/templates/widgets/user_state.mako b/spline/plugins/users/templates/widgets/user_state.mako index d279dc4..dbc73a0 100644 --- a/spline/plugins/users/templates/widgets/user_state.mako +++ b/spline/plugins/users/templates/widgets/user_state.mako @@ -1,9 +1,12 @@ -${h.form(url(controller='accounts', action='login_begin'), id='user')} - % if c.user: +% if c.user: +${h.form(url(controller='accounts', action='logout'), id='user')} Logged in as ${c.user.name}. - % else: + +${h.end_form()} +% else: +${h.form(url(controller='accounts', action='login_begin'), id='user')} - % endif ${h.end_form()} +% endif