Implemented unique colorbars.
[zzz-spline-users.git] / spline / plugins / users / templates / widgets / user_state.mako
1 <%namespace name="userlib" file="/users/lib.mako" />
2 % if c.user:
3 ${h.form(url(controller='accounts', action='logout'), id='user')}
4     Logged in as ${c.user.name} ${userlib.color_bar(c.user)}.
5     <input type="submit" value="Log out">
6 ${h.end_form()}
7 % else:
8 ${h.form(url(controller='accounts', action='login_begin'), id='user')}
9     <img src="${h.static_uri('spline', 'icons/openid.png')}">
10     <input type="text" name="openid" size="30">
11     <input type="submit" value="Log in">
12 ${h.end_form()}
13 % endif