Very simple profile editing.
[zzz-spline-users.git] / spline / plugins / users / templates / users / profile.mako
diff --git a/spline/plugins/users/templates/users/profile.mako b/spline/plugins/users/templates/users/profile.mako
new file mode 100644 (file)
index 0000000..bf0a630
--- /dev/null
@@ -0,0 +1,16 @@
+<%inherit file="/base.mako" />
+<%namespace name="userlib" file="/users/lib.mako" />
+
+<%def name="title()">${c.page_user.name} - Users</%def>
+
+<h1>${c.page_user.name}'s profile</h1>
+
+<p>
+    Profile for ${c.page_user.name} ${userlib.color_bar(c.page_user)}.
+    % if c.page_user == c.user:
+    <a href="${url(controller='users', action='profile_edit', id=c.page_user.id, name=c.page_user.name.lower())}">
+        <img src="${h.static_uri('spline', 'icons/user--pencil.png')}" alt="">
+        Edit
+    </a>
+    % endif
+</p>