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

<% 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:



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