]> git.openstreetmap.org Git - rails.git/commitdiff
Display the image of the user who made the diary entry, not that of
authorTom Hughes <tom@compton.nu>
Sun, 24 Feb 2008 17:38:50 +0000 (17:38 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 24 Feb 2008 17:38:50 +0000 (17:38 +0000)
the currently logged in user...

app/views/diary_entry/list.rhtml

index 7d592d87e24eb545abb84fcb7ebdf0d6e44a37b6..4fd5e7bc26f6dd4af4d057e70e0e3654ec49f386 100644 (file)
@@ -1,8 +1,9 @@
 <h2><%= @title %></h2>
 
-<% if @this_user.image %>
- <%= image_tag url_for_file_column(@this_user, "image") %>
+<% if @user.image %>
+ <%= image_tag url_for_file_column(@user, "image") %>
 <% end %>
+
 <br />
 
 <% if @this_user %>