/diary links to users
authorRichard Fairhurst <richard@systemed.net>
Fri, 4 May 2007 17:35:06 +0000 (17:35 +0000)
committerRichard Fairhurst <richard@systemed.net>
Fri, 4 May 2007 17:35:06 +0000 (17:35 +0000)
app/views/diary_entry/_diary_entry.rhtml
app/views/diary_entry/list.rhtml

index 8808aab03bb8a2b55621a98be12282349964aafa..13a2dff30bb67bbefcdc1eadb10e782bf781dd4f 100644 (file)
@@ -1,5 +1,5 @@
 <b><%= diary_entry.title %></b><br />
 <%= simple_format(diary_entry.body) %>
-Posted by user <b><%= link_to diary_entry.user_id,"spong" %></b> at <%= diary_entry.created_at %><br />
+Posted by user <b><%= link_to diary_entry.user.display_name,{:controller => 'user', :action=>'diary', :display_name => diary_entry.user.display_name} %></b> at <%= diary_entry.created_at %><br />
 <br />
 <hr />
index 0b2c590760a4c5f70b3851069bce381715f250a9..d17d58c2c6d947fa42077edb908df63577eb8005 100644 (file)
@@ -1,3 +1,3 @@
 <h3>most recent posts:</h3>
-FIXME: geoRSS needed. Also proper user names and permalinks.<br><br>
+FIXME: geoRSS needed.<br><br>
 <%= render :partial => 'diary_entry/diary_entry', :collection => @entries %>