Link to a user's details from their diary page.
This commit is contained in:
parent
c9f52b3726
commit
52e58e77c8
1 changed files with 1 additions and 1 deletions
|
@ -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 %>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue