]> git.openstreetmap.org Git - rails.git/commitdiff
Fix regression - no link to view diary of other users
authorTom MacWright <tom@macwright.org>
Tue, 14 Aug 2012 18:53:51 +0000 (14:53 -0400)
committerTom Hughes <tom@compton.nu>
Tue, 14 Aug 2012 23:15:20 +0000 (00:15 +0100)
app/views/user/view.html.erb

index 70e4f18288b7799436880def9db0a7eca2924ca3..8ba4c072588be769b419f0b34155135a60473304 100644 (file)
@@ -36,6 +36,8 @@
     <!-- Displaying another user's profile page -->
     <%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :display_name => @this_user.display_name %>
     |
     <!-- Displaying another user's profile page -->
     <%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :display_name => @this_user.display_name %>
     |
+    <%= link_to t('user.view.diary'), :controller => 'diary_entry', :action => 'list', :display_name => @this_user.display_name %>
+    |
     <%= link_to t('user.view.comments'), :controller => 'diary_entry', :action => 'comments', :display_name => @this_user.display_name %>
     |
     <% if @user and @user.is_friends_with?(@this_user) %>
     <%= link_to t('user.view.comments'), :controller => 'diary_entry', :action => 'comments', :display_name => @this_user.display_name %>
     |
     <% if @user and @user.is_friends_with?(@this_user) %>