]> git.openstreetmap.org Git - rails.git/blob - app/views/diary_entry/list.rhtml
Display the image of the user who made the diary entry, not that of
[rails.git] / app / views / diary_entry / list.rhtml
1 <h2><%= @title %></h2>
2
3 <% if @user.image %>
4  <%= image_tag url_for_file_column(@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 <%= link_to(image_tag("RSS.gif", :size => "16x16", :border => 0), :action => 'rss') %>
32 <%= auto_discovery_link_tag(:atom, :action => 'rss') %>