profile photo doesn't change to null if not changed on profile update
This commit is contained in:
parent
f256d433fd
commit
fc3fb817c8
1 changed files with 2 additions and 2 deletions
|
|
@ -32,9 +32,9 @@
|
||||||
|
|
||||||
%h3 Picture
|
%h3 Picture
|
||||||
%div#image_picker
|
%div#image_picker
|
||||||
= p.hidden_field :image_url, :value => @profile.image_url, :id => 'image_url_field'
|
= p.hidden_field :image_url, :value => @profile.image_url.sub(@user.url,'/'), :id => 'image_url_field'
|
||||||
- for photo in @photos
|
- for photo in @photos
|
||||||
- if photo.url(:thumb_medium) == @profile.image_url
|
- if photo.url(:thumb_medium) == @profile.image_url.sub(@user.url,'/')
|
||||||
%div.small_photo{:id => photo.url(:thumb_medium), :class=>'selected'}
|
%div.small_photo{:id => photo.url(:thumb_medium), :class=>'selected'}
|
||||||
= check_box_tag 'checked_photo', true, true
|
= check_box_tag 'checked_photo', true, true
|
||||||
= link_to image_tag(photo.url(:thumb_medium)), "#"
|
= link_to image_tag(photo.url(:thumb_medium)), "#"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue