X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f498a9287a25fc284ef0e1fd90ea8ca91e661183..513b863bf021e18c318f1a5bcfe6fb3097e53b23:/app/views/user/diary.rhtml diff --git a/app/views/user/diary.rhtml b/app/views/user/diary.rhtml index abe896db9..106cfd73f 100644 --- a/app/views/user/diary.rhtml +++ b/app/views/user/diary.rhtml @@ -1,8 +1,8 @@

<%= @this_user.display_name %>'s diary

-<% if @this_user.id == @user.id %> +<% if @user and @this_user.id == @user.id %> <%= link_to 'new post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %> <% end %>

recent posts:

-FIXME: geoRSS needed

+

<%= render :partial => 'diary_entry/diary_entry', :collection => @this_user.diary_entries %>