X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b8c1bbb4f8d9bacaa7d76b38a974f7f6042523ad..c192bd0d40aab2bbabf47c1dd726c366ffa51db3:/app/views/diary_entries/index.html.erb?ds=sidebyside
diff --git a/app/views/diary_entries/index.html.erb b/app/views/diary_entries/index.html.erb
index 32a4e1e0f..96c052da6 100644
--- a/app/views/diary_entries/index.html.erb
+++ b/app/views/diary_entries/index.html.erb
@@ -10,14 +10,12 @@
<%= rss_link_to :action => "rss", :language => params[:language] %>
<% end -%>
- <% if @user %>
- <% if @user == current_user %>
- <%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %>
- <% end %>
- <% else %>
- <% if current_user %>
- <%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %>
- <% end %>
+ <% if @user && @user == current_user || !@user && current_user %>
+ <%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %>
+ <% end %>
+
+ <% if !@user && current_user %>
+ <%= link_to t(".my_diary"), :controller => "diary_entries", :action => "index", :display_name => current_user.display_name %>
<% end %>