:medium everywhere

This commit is contained in:
nilsding 2014-12-29 14:57:16 +01:00
parent e7a0d77fd4
commit f7cb3478be
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ module ApplicationHelper
# @deprecated Use {User#profile_picture.url} instead.
def gravatar_url(user)
return user.profile_picture.url
return user.profile_picture.url :medium
# return '/cage.png'
#return '//www.gravatar.com/avatar' if user.nil?
#return "//www.gravatar.com/avatar/#{Digest::MD5.hexdigest(user)}" if user.is_a? String

View File

@ -11,13 +11,13 @@
.media
.pull-left
%div.img-rounded.profile--img{style: 'width:100px;height:100px;overflow:hidden;margin-left:5px:'}
%img#profile-picture-preview{src: current_user.profile_picture.url, style: 'width: 100%; height: 100%'}
%img#profile-picture-preview{src: current_user.profile_picture.url(:medium), style: 'width: 100%; height: 100%'}
.media-body
= f.file_field :profile_picture
.well#profile-picture-crop-controls{style: 'display: none;'}
%strong Adjust image
%img#profile-picture-cropper{src: current_user.profile_picture.url}
%img#profile-picture-cropper{src: current_user.profile_picture.url(:medium)}
= f.text_field :motivation_header, label: "Motivation header", placeholder: 'Ask me anything!'