projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acd7286
)
Show the "anonymous user" picture for users with no picture.
author
Tom Hughes
<tom@compton.nu>
Sat, 27 Feb 2010 18:12:27 +0000
(18:12 +0000)
committer
Tom Hughes
<tom@compton.nu>
Sat, 27 Feb 2010 18:12:27 +0000
(18:12 +0000)
app/views/user/view.html.erb
patch
|
blob
|
history
diff --git
a/app/views/user/view.html.erb
b/app/views/user/view.html.erb
index 865c38959193df6009670d7924a101ca4d8e793c..0a182861e4611c5575c59b42c8609bfb3b6dbb87 100644
(file)
--- 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 %>
<h2><%= h(@this_user.display_name) %>