]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/view.html.erb
Add user images to diary view.
[rails.git] / app / views / user / view.html.erb
index 0a182861e4611c5575c59b42c8609bfb3b6dbb87..8aa4ead492486182895318e2f801335490a8964f 100644 (file)
@@ -1,8 +1,4 @@
-<% 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 %>
+<%= user_image @this_user, :style => "float: right" %>
 
 <h2><%= h(@this_user.display_name) %>