]> git.openstreetmap.org Git - rails.git/blob - app/views/diary_entry/list.rhtml
Add the marker to the map correctly.
[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 <br />
8
9 <% if @this_user %>
10   <% if @user == @this_user %>
11     <%= link_to 'New diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
12   <% end %>
13 <% else %>
14   <% if @user %>
15     <%= link_to 'New diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
16   <% end %>
17 <% end %>
18
19 <h3>Recent diary entries:</h3>
20
21 <%= render :partial => 'diary_entry', :collection => @entries %>
22
23 <%= link_to "Older Entries", { :page => @entry_pages.current.next } if @entry_pages.current.next %>
24 <% if @entry_pages.current.next and @entry_pages.current.previous %>
25 |
26 <% end %>
27 <%= link_to "Newer Entries", { :page => @entry_pages.current.previous } if @entry_pages.current.previous %>
28
29 <br />
30
31 <%= rss_link_to :action => 'rss' %>
32 <%= auto_discovery_link_tag :atom, :action => 'rss' %>