% if c.user: ${h.form(url(controller='accounts', action='logout'), id='user')} Logged in as ${c.user.name}. ${h.end_form()} % else: ${h.form(url(controller='accounts', action='login_begin'), id='user')} ${h.end_form()} % endif