X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/52e58e77c81f3e0234111d365ecaaf3476da5da7..ba6b3f355a6cfcb2f3d2c9a0d912ec6249264988:/app/views/diary_entry/list.rhtml
diff --git a/app/views/diary_entry/list.rhtml b/app/views/diary_entry/list.rhtml
index 873528bd8..a7aa84c6f 100644
--- a/app/views/diary_entry/list.rhtml
+++ b/app/views/diary_entry/list.rhtml
@@ -1,8 +1,12 @@
<% if @this_user %>
-
<%= link_to @this_user.display_name, :controller => 'user', :action => 'view', :display_name => @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 %>
+ <%= @this_user.display_name %>'s diary
+ <% if @user == @this_user %>
+ <%= link_to 'New diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
+ <% end %>
+<% else %>
+ Users' diaries
+ <% if @user %>
+ <%= link_to 'New diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
<% end %>
<% end %>