X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5bed2178231b783176551d21734d23b7a32f0d16..c38a50fc5f43a185dda39fd1aa235a2bda8ad83b:/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 %>