diff options
author | Francis Irving <francis@mysociety.org> | 2010-07-18 02:55:16 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-07-18 02:55:16 +0100 |
commit | 77eed2598a8810726ea17695bc8f50ff39e60a46 (patch) | |
tree | 2005af32a94cbfa048f9fdf017453cc6ce73769d /app | |
parent | 39996591673ad9e4ebbf11f013fa198e606cec95 (diff) |
Show user photos in search results
Diffstat (limited to 'app')
-rw-r--r-- | app/views/user/_user_listing_single.rhtml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/views/user/_user_listing_single.rhtml b/app/views/user/_user_listing_single.rhtml index 4f0496fd8..0113e5a65 100644 --- a/app/views/user/_user_listing_single.rhtml +++ b/app/views/user/_user_listing_single.rhtml @@ -2,8 +2,16 @@ @highlight_words = [] end %> <div class="user_listing"> + <% if display_user.profile_photo %> + <div class="user_photo_on_search"> + <a href="<%=user_url(display_user)%>"> + <img src="<%= get_profile_photo_url(:url_name => display_user.url_name) %>"> + </a> + </div> + <% end %> + <span class="head"> - <%= link_to highlight_words(display_user.name, @highlight_words), user_url(display_user) %> + <%= link_to highlight_words(display_user.name, @highlight_words), user_url(display_user) %> </span> <span class="bottomline"> |