From: Tom Hughes Date: Sat, 27 Feb 2010 18:12:27 +0000 (+0000) Subject: Show the "anonymous user" picture for users with no picture. X-Git-Tag: live~5111^2~245 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/891a337b329b5628079489c65724a23961b7613c?ds=sidebyside Show the "anonymous user" picture for users with no picture. --- diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb index 865c38959..0a182861e 100644 --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@ -1,5 +1,7 @@ <% if @this_user.image %> <%= image_tag url_for_file_column(@this_user, "image"), :style => "float: right; margin-top: 19px", :class => "user_image" %> +<% else %> + <%= image_tag "anon_large.png", :style => "float: right; margin-top: 19px", :class => "user_image" %> <% end %>

<%= h(@this_user.display_name) %>