Skip to content

Commit

Permalink
Add gravatar.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfine committed May 4, 2012
1 parent e96b0db commit 8b0acc8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion lib/ranked/player.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def display_name
end

def gravatar
"http://www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user)}.png"
"http://www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user)}.png?s=64"
end
end
end
4 changes: 0 additions & 4 deletions views/elo.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@
%tr
%th Rank
%th Rating
%th
%th User
%tbody
- @players.each_with_index do |player, i|
%tr
%td= "##{i+1}"
%td= player.rating.round
%td
%img{:src=> player.gravatar}
%td
%img{:src=> player.gravatar}
%a{:href=>"/players/#{player.id}"}= player.display_name

0 comments on commit 8b0acc8

Please sign in to comment.