]> git.openstreetmap.org Git - rails.git/commitdiff
Back out previous change, and use the name in the "Posted by" line to
authorTom Hughes <tom@compton.nu>
Sat, 28 Jul 2007 19:08:52 +0000 (19:08 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 28 Jul 2007 19:08:52 +0000 (19:08 +0000)
link to the user details instead.

app/views/diary_entry/_diary_entry.rhtml
app/views/diary_entry/list.rhtml

index 439cb9018280fb7e10e0f25163ec6eee43dc9521..168bb832bc7de54ed81602d9af7632b014141b0a 100644 (file)
@@ -1,5 +1,5 @@
 <b><%= diary_entry.title %></b><br />
 <%= simple_format(diary_entry.body) %>
 <b><%= diary_entry.title %></b><br />
 <%= simple_format(diary_entry.body) %>
-Posted by user <b><%= link_to diary_entry.user.display_name,{:controller => 'diary_entry', :action => 'list', :display_name => diary_entry.user.display_name} %></b> at <%= diary_entry.created_at %><br />
+Posted by user <b><%= link_to diary_entry.user.display_name, :controller => 'user', :action => 'view', :display_name => diary_entry.user.display_name %></b> at <%= diary_entry.created_at %><br />
 <br />
 <hr />
 <br />
 <hr />
index 873528bd8138e08a45358cb8d0da4b9bbc464040..37b0365aa164459c2310f517e76cfc12f420fe2a 100644 (file)
@@ -1,5 +1,5 @@
 <% if @this_user %>
 <% if @this_user %>
-  <h2><%= link_to @this_user.display_name, :controller => 'user', :action => 'view', :display_name => @this_user.display_name %>'s diary</h2>
+  <h2><%= @this_user.display_name %>'s diary</h2>
 
   <% if @user and @this_user.id == @user.id %>
     <%= link_to 'new post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
 
   <% if @user and @this_user.id == @user.id %>
     <%= link_to 'new post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>