Link from a diary entry to the relevant user's diary

Fix #2956 by making the title on a diary entry a link back to the
diary list page for the author.
This commit is contained in:
Tom Hughes 2011-04-03 16:11:20 +01:00
parent 9e6e6c2e23
commit 89bd91e7d8

View file

@ -1,6 +1,6 @@
<%= user_image @entry.user, :style => "float: right" %>
<h2><%= t 'diary_entry.view.user_title', :user => h(@entry.user.display_name) %></h2>
<h2><%= link_to t('diary_entry.view.user_title', :user => h(@entry.user.display_name)), :action => :list %></h2>
<%= render :partial => 'diary_entry', :object => @entry %>