]> git.openstreetmap.org Git - rails.git/blob - app/views/diary_entry/list.rhtml
Fix map in IE by deferring Vector layer addition to page load (note that deferred...
[rails.git] / app / views / diary_entry / list.rhtml
1 <h2><%= h(@title) %></h2>
2
3 <% if @this_user && @this_user.image %>
4  <%= image_tag url_for_file_column(@this_user, "image") %>
5 <% end %>
6
7
8 <% if @this_user %>
9   <% if @user == @this_user %>
10     <%= link_to image_tag("new.png", :border=>0) + 'New diary entry', {:controller => 'diary_entry', :action => 'new', :display_name => @user.display_name}, {:title => 'Compose a new entry in your user diary'} %>
11   <% end %>
12 <% else %>
13   <% if @user %>
14     <%= link_to image_tag("new.png", :border=>0) + 'New diary entry', {:controller => 'diary_entry', :action => 'new', :display_name => @user.display_name}, {:title => 'Compose a new entry in your user diary'} %>
15   <% end %>
16 <% end %>
17
18
19 <% if @entries.empty? %>
20   <p>No diary entries</p>
21 <% else %>
22   <p>Recent diary entries:</p>
23
24   <hr />
25
26   <%= render :partial => 'diary_entry', :collection => @entries %>
27         
28   <%= link_to "Older Entries", { :page => @entry_pages.current.next } if @entry_pages.current.next %>
29   <% if @entry_pages.current.next and @entry_pages.current.previous %>|<% end %>
30   <%= link_to "Newer Entries", { :page => @entry_pages.current.previous } if @entry_pages.current.previous %>
31
32   <br />
33 <% end %>
34
35 <%= rss_link_to :action => 'rss' %>
36
37 <% content_for :head do %>
38 <%= auto_discovery_link_tag :atom, :action => 'rss' %>
39 <% end %>