projects
/
zzz-spline-users.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor improvement to gravatar template.
[zzz-spline-users.git]
/
splinext
/
users
/
templates
/
users
/
lib.mako
diff --git
a/splinext/users/templates/users/lib.mako
b/splinext/users/templates/users/lib.mako
index
571d34a
..
0eb92cb
100644
(file)
--- a/
splinext/users/templates/users/lib.mako
+++ b/
splinext/users/templates/users/lib.mako
@@
-7,7
+7,7
@@
</%def>
## XXX support user emails, oops
</%def>
## XXX support user emails, oops
-<%def name="avatar(user)">\
+<%def name="avatar(user
, size=96
)">\
<%! import hashlib %>\
<%! import hashlib %>\
-<img src="http://www.gravatar.com/avatar/${hashlib.md5(str(user.id)).hexdigest()}?r=x&s=
96&d=identicon
">\
+<img src="http://www.gravatar.com/avatar/${hashlib.md5(str(user.id)).hexdigest()}?r=x&s=
${size}&d=identicon" alt="${user.name}'s avatar" title="${user.name}
">\
</%def>
</%def>