Merge branch 'master' of git.rrerr.net:justask/justask

This commit is contained in:
nilsding 2014-12-12 17:24:38 +01:00
commit 21282961b3
3 changed files with 19 additions and 4 deletions

View File

@ -8,4 +8,8 @@
.entry-text {
margin-bottom: 0px;
}
.entry-about {
margin-top: 0px;
}

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

@ -16,10 +16,20 @@
%h3 The Team
The people behind justask!
%br/
%ul
- @admins.each do |user|
%li
%a= link_to user.screen_name, show_user_profile_path(user.screen_name)
.media
.pull-left
%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{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
.panel.panel-default
.panel-body
There are lies, damned lies, and then there are...