Updated login to work correctly with current spline. #69
[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
new file mode 100644 (file)
index 0000000..d279dc4
--- /dev/null
@@ -0,0 +1,9 @@
+${h.form(url(controller='accounts', action='login_begin'), id='user')}
+    % if c.user:
+    Logged in as ${c.user.name}.
+    % else:
+    <img src="${h.static_uri('spline', 'icons/openid.png')}">
+    <input type="text" name="openid" size="30">
+    <input type="submit" value="Log in">
+    % endif
+${h.end_form()}