projects
/
zzz-spline-users.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
78a3cb9
)
Preliminary gravatar support.
veekun-promotions/2010070701
author
Eevee
<git@veekun.com>
Fri, 18 Jun 2010 00:34:49 +0000
(17:34 -0700)
committer
Eevee
<git@veekun.com>
Fri, 18 Jun 2010 00:34:49 +0000
(17:34 -0700)
splinext/users/templates/users/lib.mako
patch
|
blob
|
history
diff --git
a/splinext/users/templates/users/lib.mako
b/splinext/users/templates/users/lib.mako
index
34c3194
..
571d34a
100644
(file)
--- a/
splinext/users/templates/users/lib.mako
+++ b/
splinext/users/templates/users/lib.mako
@@
-5,3
+5,9
@@
% endfor
</span>\
</%def>
+
+## XXX support user emails, oops
+<%def name="avatar(user)">\
+<%! import hashlib %>\
+<img src="http://www.gravatar.com/avatar/${hashlib.md5(str(user.id)).hexdigest()}?r=x&s=96&d=identicon">\
+</%def>