Commit 2bdf45833aef0d11fae44081e553389da2a724ca
- Date: Tue Apr 01 18:03:13 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: 2bdf45833aef0d11fae44081e553389da2a724ca
- Tree SHA1: 6cee54115a549a4093f9ee1a47917b47bba7e39b
Possibly nicer image instead of the ugly gravatar one
Commit diff
| |   |
| 65 | 65 | def gravatar_url_for(email, options = {}) |
| 66 | 66 | "http://www.gravatar.com/avatar.php?gravatar_id=" << |
| 67 | 67 | Digest::MD5.hexdigest(email) << |
| 68 | "&default=" << |
| 69 | u("http://#{request.host}:#{request.port}/images/default_face.gif") << |
| 68 | 70 | options.map { |k,v| "&#{k}=#{v}" }.join |
| 69 | 71 | end |
| 70 | 72 | |
| toggle raw diff |
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -65,6 +65,8 @@ module ApplicationHelper
def gravatar_url_for(email, options = {})
"http://www.gravatar.com/avatar.php?gravatar_id=" <<
Digest::MD5.hexdigest(email) <<
+ "&default=" <<
+ u("http://#{request.host}:#{request.port}/images/default_face.gif") <<
options.map { |k,v| "&#{k}=#{v}" }.join
end
|
| |   |
| toggle raw diff |
Binary files /dev/null and b/public/images/default_face.gif differ |
| |   |
| toggle raw diff |
Binary files a/public/images/default_face.png and /dev/null differ |