From 04488fec2cbbef9bf759c36bbbfda8f6d4b52ade Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 28 Jul 2007 19:08:52 +0000 Subject: [PATCH] Back out previous change, and use the name in the "Posted by" line to link to the user details instead. --- app/views/diary_entry/_diary_entry.rhtml | 2 +- app/views/diary_entry/list.rhtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/diary_entry/_diary_entry.rhtml b/app/views/diary_entry/_diary_entry.rhtml index 439cb9018..168bb832b 100644 --- a/app/views/diary_entry/_diary_entry.rhtml +++ b/app/views/diary_entry/_diary_entry.rhtml @@ -1,5 +1,5 @@ <%= diary_entry.title %>
<%= simple_format(diary_entry.body) %> -Posted by user <%= link_to diary_entry.user.display_name,{:controller => 'diary_entry', :action => 'list', :display_name => diary_entry.user.display_name} %> at <%= diary_entry.created_at %>
+Posted by user <%= link_to diary_entry.user.display_name, :controller => 'user', :action => 'view', :display_name => diary_entry.user.display_name %> at <%= diary_entry.created_at %>


diff --git a/app/views/diary_entry/list.rhtml b/app/views/diary_entry/list.rhtml index 873528bd8..37b0365aa 100644 --- a/app/views/diary_entry/list.rhtml +++ b/app/views/diary_entry/list.rhtml @@ -1,5 +1,5 @@ <% if @this_user %> -

<%= link_to @this_user.display_name, :controller => 'user', :action => 'view', :display_name => @this_user.display_name %>'s diary

+

<%= @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 %> -- 2.39.5