From 89bd91e7d80531e5344427cdf2f98c58e8203737 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 3 Apr 2011 16:11:20 +0100 Subject: [PATCH] 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. --- app/views/diary_entry/view.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/diary_entry/view.html.erb b/app/views/diary_entry/view.html.erb index c3e49a227..1a8096d13 100644 --- a/app/views/diary_entry/view.html.erb +++ b/app/views/diary_entry/view.html.erb @@ -1,6 +1,6 @@ <%= user_image @entry.user, :style => "float: right" %> -

<%= t 'diary_entry.view.user_title', :user => h(@entry.user.display_name) %>

+

<%= link_to t('diary_entry.view.user_title', :user => h(@entry.user.display_name)), :action => :list %>

<%= render :partial => 'diary_entry', :object => @entry %> -- 2.39.5