projects
/
zzz-spline-users.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Constrain userbars to be less ugly. Put them before names.
[zzz-spline-users.git]
/
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
06c6e70
..
adf816b
100644
(file)
--- a/
spline/plugins/users/templates/widgets/user_state.mako
+++ b/
spline/plugins/users/templates/widgets/user_state.mako
@@
-1,13
+1,9
@@
<%namespace name="userlib" file="/users/lib.mako" />
% if c.user:
${h.form(url(controller='accounts', action='logout'), id='user')}
<%namespace name="userlib" file="/users/lib.mako" />
% if c.user:
${h.form(url(controller='accounts', action='logout'), id='user')}
- Logged in as <a href="${url(controller='users', action='profile', id=c.user.id, name=c.user.name)}">${
c.user.name}</a> ${userlib.color_bar(c.user)}
.
+ Logged in as <a href="${url(controller='users', action='profile', id=c.user.id, name=c.user.name)}">${
userlib.color_bar(c.user)} ${c.user.name}</a>
.
<input type="submit" value="Log out">
${h.end_form()}
% else:
<input type="submit" value="Log out">
${h.end_form()}
% else:
-${h.form(url(controller='accounts', action='login_begin'), id='user')}
- <img src="${h.static_uri('spline', 'icons/openid.png')}">
- <input type="text" name="openid" size="30">
- <input type="submit" value="Log in">
-${h.end_form()}
+<p id="user"><a href="${url(controller='accounts', action='login')}">Log in or register</a></p>
% endif
% endif