diff options
author | maxwell <maxwell@joindiaspora.com> | 2010-09-14 02:08:39 +0400 |
---|---|---|
committer | maxwell <maxwell@joindiaspora.com> | 2010-09-14 02:08:39 +0400 |
commit | c098be99bc24a834998437d401dabd9a5ac308e5 (patch) | |
tree | 1ec2a6bc5bc1443edc4f14506f5c3621265ea8a0 | |
parent | 0b33e6b3eb8a40b69ced179f7b6032aeda5dcdf9 (diff) |
MS IZ attempt one to fix remote profile images
-rw-r--r-- | app/views/users/edit.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml index d8866d275..9901a8c73 100644 --- a/app/views/users/edit.html.haml +++ b/app/views/users/edit.html.haml @@ -16,11 +16,11 @@ = p.hidden_field :image_url, :value => @profile.image_url, :id => 'image_url_field' - for photo in @photos - if photo.url(:thumb_medium) == @profile.image_url - %div.small_photo{:id => photo.url(:thumb_medium), :class=>'selected'} + %div.small_photo{:id => request.host + photo.url(:thumb_medium), :class=>'selected'} = check_box_tag 'checked_photo', true, true = link_to image_tag(photo.url(:thumb_medium)), "#" - else - %div.small_photo{:id => photo.url(:thumb_medium)} + %div.small_photo{:id => request.host + photo.url(:thumb_medium)} = check_box_tag 'checked_photo' = link_to image_tag(photo.url(:thumb_medium)), "#" =will_paginate @photos |