]> git.openstreetmap.org Git - rails.git/blob - app/views/diary_entry/list.html.erb
Remove hard coded assumption that layer zero is mapnik
[rails.git] / app / views / diary_entry / list.html.erb
1 <% if @this_user %>
2   <%= user_image @this_user %>
3 <% end %>
4
5 <h2><%= h(@title) %></h2>
6
7 <% if @this_user %>
8   <%= if_user(@this_user) do %>
9     <%= link_to image_tag("new.png", :border=>0) + t('diary_entry.list.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('diary_entry.list.new_title')} %>
10   <% end %>
11 <% else %>
12   <%= if_logged_in do %>
13     <%= link_to image_tag("new.png", :border=>0) + t('diary_entry.list.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('diary_entry.list.new_title')} %>
14   <% end %>
15 <% end %>
16
17 <% if @entries.empty? %>
18   <p><%= t 'diary_entry.list.no_entries' %></p>
19 <% else %>
20   <p><%= t 'diary_entry.list.recent_entries' %></p>
21
22   <hr />
23
24   <% if @this_user %>
25     <%= render :partial => 'diary_entry', :collection => @entries %>
26   <% else %>
27     <%= render :partial => 'diary_list_entry', :collection => @entries %>
28   <% end %>
29
30   <%= link_to t('diary_entry.list.older_entries'), { :page => @entry_pages.current.next, :language => params[:language] } if @entry_pages.current.next %>
31   <% if @entry_pages.current.next and @entry_pages.current.previous %>|<% end %>
32   <%= link_to t('diary_entry.list.newer_entries'), { :page => @entry_pages.current.previous, :language => params[:language] } if @entry_pages.current.previous %>
33
34   <br />
35 <% end %>
36
37 <% unless params[:friends] or params[:nearby] -%>
38 <%= rss_link_to :action => 'rss', :language => params[:language] %>
39
40 <% content_for :head do -%>
41 <%= auto_discovery_link_tag :atom, :action => 'rss', :language => params[:language] %>
42 <% end -%>
43 <% end -%>