X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e89742928ddccbe127955f94be4be61e13f1faed..a6dd1ec4b8abeaa6e577633ba2fb05f84683d78e:/app/views/diary_entries/index.html.erb 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 %>