]> git.openstreetmap.org Git - rails.git/blob - app/views/diary_entry/list.rhtml
user images
[rails.git] / app / views / diary_entry / list.rhtml
1 <h2><%= @title %></h2>
2
3 <% if @this_user.image %>
4  <%= image_tag url_for_file_column(@this_user, "image") %>
5 <% end %>
6 <br />
7
8 <% if @this_user %>
9   <% if @user == @this_user %>
10     <%= link_to 'New diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
11   <% end %>
12 <% else %>
13   <% if @user %>
14     <%= link_to 'New diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
15   <% end %>
16 <% end %>
17
18 <h3>Recent diary entries:</h3>
19
20 <%= render :partial => 'diary_entry', :collection => @entries %>
21
22 <%= link_to "Older Entries", { :page => @entry_pages.current.next } if @entry_pages.current.next %>
23 <% if @entry_pages.current.next and @entry_pages.current.previous %>
24 |
25 <% end %>
26 <%= link_to "Newer Entries", { :page => @entry_pages.current.previous } if @entry_pages.current.previous %>
27
28 <br />
29
30 <%= link_to(image_tag("RSS.gif", :size => "16x16", :border => 0), :action => 'rss') %>
31 <%= auto_discovery_link_tag(:atom, :action => 'rss') %>