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
(parent:
563477a
)
Minor improvement to gravatar template.
author
Eevee
<git@veekun.com>
Mon, 26 Jul 2010 05:24:55 +0000
(22:24 -0700)
committer
Eevee
<git@veekun.com>
Mon, 26 Jul 2010 05:24:55 +0000
(22:24 -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
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 name="avatar(user)">\
+<%def name="avatar(user
, size=96
)">\
<%! 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>