]> git.openstreetmap.org Git - rails.git/blob - app/views/diary_entry/list.html.erb
Put all feed discovery tags in the auto_discovery_link_tag section
[rails.git] / app / views / diary_entry / list.html.erb
1 <% content_for :heading do %>
2   <div <% if @this_user %> id="userinformation"<% end %> >
3     <% if @this_user %>
4       <%= user_image @this_user %>
5     <% end %>
6     <h1><%= h(@title) %></h1>
7
8     <ul class='secondary-actions clearfix'>
9       <% unless params[:friends] or params[:nearby] -%>
10         <li><%= rss_link_to :action => 'rss', :language => params[:language] %></li>
11       <% end -%>
12
13       <% if @this_user %>
14         <%= if_user(@this_user) do %>
15           <li><%= 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')} %></li>
16         <% end %>
17       <% else %>
18         <%= if_logged_in do %>
19           <li><%= 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')} %></li>
20         <% end %>
21       <% end %>
22     </ul>
23   </div>
24 <% end %>
25
26 <% if @entries.empty? %>
27   <h4><%= t 'diary_entry.list.no_entries' %></h4>
28 <% else %>
29   <h4><%= t 'diary_entry.list.recent_entries' %></h4>
30
31   <% if @this_user %>
32     <%= render :partial => 'diary_entry', :collection => @entries %>
33   <% else %>
34     <%= render :partial => 'diary_list_entry', :collection => @entries %>
35   <% end %>
36
37   <% if @entries.size < @page_size -%>
38     <%= t('diary_entry.list.older_entries') %>
39   <% else -%>
40     <%= link_to t('diary_entry.list.older_entries'), params.merge(:page => @page + 1 ) %>
41   <% end -%>
42
43   |
44
45   <% if @page > 1 -%>
46     <%= link_to t('diary_entry.list.newer_entries'), params.merge(:page => @page - 1) %>
47   <% else -%>
48     <%= t('diary_entry.list.newer_entries') %>
49   <% end -%>
50 <% end %>
51
52 <% unless params[:friends] or params[:nearby] -%>
53   <% content_for :auto_discovery_link_tag do -%>
54   <%= auto_discovery_link_tag :rss, :action => 'rss', :language => params[:language] %>
55   <% end -%>
56 <% end -%>