From ebd0719599f26b3399da551d52b16a39fc2e19e3 Mon Sep 17 00:00:00 2001
From: nilsding <nilsding@nilsding.org>
Date: Fri, 12 Dec 2014 16:45:39 +0100
Subject: [PATCH] foxed about page

---
 app/helpers/application_helper.rb | 1 +
 app/views/static/about.html.haml  | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 0108b35d..f64b0611 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -52,6 +52,7 @@ module ApplicationHelper
 
   def gravatar_url(user)
     return '//www.gravatar.com/avatar' if user.nil?
+    return "//www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user)}" if user.is_a? String
     "//www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user.email)}"
   end
 
diff --git a/app/views/static/about.html.haml b/app/views/static/about.html.haml
index e1be8e3b..11f0023a 100644
--- a/app/views/static/about.html.haml
+++ b/app/views/static/about.html.haml
@@ -18,15 +18,15 @@
           %br/
           .media
             .pull-left
-              %a= show_user_profile_path('nilsding'.screen_name)
-                %img.img-rounded.answerbox--img{src: gravatar_url('nilsding')}
+              %a{href: show_user_profile_path('nilsding')}
+                %img.img-rounded.answerbox--img{src: gravatar_url('nilsding@nilsding.org')}
             .media-body
               %h4.entry-text nilsding
               %h6.entry-subtext Backend, Server & Code
           .media
             .pull-left
-              %a= show_user_profile_path('pixeldesu'.screen_name)
-                %img.img-rounded.answerbox--img{src: gravatar_url('pixeldesu')}
+              %a{href: show_user_profile_path('pixeldesu')}
+                %img.img-rounded.answerbox--img{src: gravatar_url('pixeldesu@outlook.com')}
             .media-body
               %h4.entry-text pixeldesu
               %h6.entry-subtext Frontend Design & Layout