X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/76bc5eba0617e36ebb853d24212543d0e1d4904d..7377cb63939f8743ca31e67ea3965c2b15d20057:/app/views/diary_entry/list.html.erb
diff --git a/app/views/diary_entry/list.html.erb b/app/views/diary_entry/list.html.erb
index 8dda82b19..2d9a4b167 100644
--- a/app/views/diary_entry/list.html.erb
+++ b/app/views/diary_entry/list.html.erb
@@ -11,12 +11,16 @@
<% end -%>
<% if @user %>
- <%= if_user(@user) do %>
-
<%= link_to image_tag("new.png", :class => "small_icon", :border=>0) + t('.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('.new_title')} %>
+ <% if @user == current_user %>
+
+
<%= link_to image_tag("new.png", :class => "small_icon", :border=>0) + t('.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('.new_title')} %>
+
<% end %>
<% else %>
- <%= if_logged_in do %>
- <%= link_to image_tag("new.png", :class => "small_icon", :border=>0) + t('.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('.new_title')} %>
+ <% if current_user %>
+
+
<%= link_to image_tag("new.png", :class => "small_icon", :border=>0) + t('.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('.new_title')} %>
+
<% end %>
<% end %>