foxed about page

This commit is contained in:
nilsding 2014-12-12 16:45:39 +01:00
parent 3f8fb96975
commit ebd0719599
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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