summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornfoy <nfoy@purdue.edu>2014-04-03 16:48:58 -0400
committernfoy <nfoy@purdue.edu>2014-04-03 16:48:58 -0400
commit9d2e1394bc09d4df3fce97d6151f5bfc3546fbe8 (patch)
treec7c1b35672ebc2b577df1004a258f0ae72c638b8
parent5169363d6698fb87372efcb7ace552b89953584e (diff)
Added Gravatar support for tournament's index view.
-rw-r--r--app/views/tournaments/index.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/tournaments/index.html.erb b/app/views/tournaments/index.html.erb
index 6a86955..e174de7 100644
--- a/app/views/tournaments/index.html.erb
+++ b/app/views/tournaments/index.html.erb
@@ -6,7 +6,7 @@
<%# Each tournament has a div for its listing %>
<% @tournaments.each do |t| %>
<div class="row tournament-listing">
- <div class="col-md-2 ">Gravatar of Host Goes Here</div>
+ <div class="col-md-2 "><%= image_tag 'http://www.gravatar.com/avatar/' + Digest::MD5.hexdigest(t.hosts.first.email) + '?s=100&d=mm' %></div>
<div class="col-md-8">