Merge branch 'master' of git.rrerr.net:justask/justask
This commit is contained in:
commit
38c08970c8
|
@ -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
|
||||
|
||||
|
|
|
@ -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.entry-about 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.entry-about pixeldesu
|
||||
%h6.entry-subtext Frontend Design & Layout
|
||||
|
|
Loading…
Reference in New Issue