X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7f598ab412674ce5a78da98c54aa2fe2e4a05792..2160f820ac9fe3f78deb97a3a4285e9bf8daa095:/app/views/diary_entry/list.html.erb?ds=sidebyside
diff --git a/app/views/diary_entry/list.html.erb b/app/views/diary_entry/list.html.erb
index 2939ec7e6..e6e304ead 100644
--- a/app/views/diary_entry/list.html.erb
+++ b/app/views/diary_entry/list.html.erb
@@ -1,17 +1,17 @@
<% content_for :heading do %>
-
id="userinformation"<% end %> >
- <% if @this_user %>
- <%= user_image @this_user %>
+
id="userinformation"<% end %> >
+ <% if @user %>
+ <%= user_image @user %>
<% end %>
-
<%= h(@title) %>
+
<%= h(@title) %>
<% unless params[:friends] or params[:nearby] -%>
- <%= rss_link_to :action => 'rss', :language => params[:language] %>
<% end -%>
- <% if @this_user %>
- <%= if_user(@this_user) do %>
+ <% if @user %>
+ <%= if_user(@user) do %>
- <%= link_to image_tag("new.png", :class => "small_icon", :border=>0) + t('diary_entry.list.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('diary_entry.list.new_title')} %>
<% end %>
<% else %>
@@ -28,29 +28,31 @@
<% else %>
<%= t 'diary_entry.list.recent_entries' %>
- <% if @this_user %>
+ <% if @user %>
<%= render :partial => 'diary_entry', :collection => @entries %>
<% else %>
<%= render :partial => 'diary_list_entry', :collection => @entries %>
<% end %>
- <% if @entries.size < @page_size -%>
- <%= t('diary_entry.list.older_entries') %>
- <% else -%>
- <%= link_to t('diary_entry.list.older_entries'), params.merge(:page => @page + 1 ) %>
- <% end -%>
+
<% end %>
<% unless params[:friends] or params[:nearby] -%>
- <% content_for :head do -%>
- <%= auto_discovery_link_tag :atom, :action => 'rss', :language => params[:language] %>
+ <% content_for :auto_discovery_link_tag do -%>
+ <%= auto_discovery_link_tag :rss, :action => 'rss', :language => params[:language] %>
<% end -%>
<% end -%>