Link to a user's details from their diary page.

This commit is contained in:
Tom Hughes 2007-07-28 19:06:07 +00:00
parent c9f52b3726
commit 52e58e77c8

View file

@ -1,5 +1,5 @@
<% if @this_user %> <% if @this_user %>
<h2><%= @this_user.display_name %>'s diary</h2> <h2><%= link_to @this_user.display_name, :controller => 'user', :action => 'view', :display_name => @this_user.display_name %>'s diary</h2>
<% if @user and @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 %> <%= link_to 'new post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>