summaryrefslogtreecommitdiff
path: root/app/views/users
diff options
context:
space:
mode:
authornfoy <nfoy@purdue.edu>2014-03-30 19:30:56 -0400
committernfoy <nfoy@purdue.edu>2014-03-30 19:30:56 -0400
commit13489e34d8a99e452ab10ee5659eb2a6704c8da3 (patch)
tree6d24fb43185d82408c70cc8fa0edd68555ede573 /app/views/users
parentd17549102569818559e2bcedfd5e8e37ca799bd8 (diff)
Gravitar images added to user pages.
Diffstat (limited to 'app/views/users')
-rw-r--r--app/views/users/show.html.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index d8cc82b..dafa73e 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -1,4 +1,8 @@
<p>
+ <%= image_tag 'http://www.gravatar.com/avatar/' + Digest::MD5.hexdigest(@user.email) + '?s=100&d=mm' %>
+</p>
+
+<p>
<strong>Name:</strong>
<%= @user.name %>
</p>