From 891a337b329b5628079489c65724a23961b7613c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 27 Feb 2010 18:12:27 +0000 Subject: [PATCH] Show the "anonymous user" picture for users with no picture. --- app/views/user/view.html.erb | 2 ++ 1 file changed, 2 insertions(+) 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) %> -- 2.43.2