]> git.openstreetmap.org Git - rails.git/blob - app/views/diary_entry/list.rhtml
Link to a user's details from their diary page.
[rails.git] / app / views / diary_entry / list.rhtml
1 <% if @this_user %>
2   <h2><%= link_to @this_user.display_name, :controller => 'user', :action => 'view', :display_name => @this_user.display_name %>'s diary</h2>
3
4   <% if @user and @this_user.id == @user.id %>
5     <%= link_to 'new post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
6   <% end %>
7 <% end %>
8
9 <h3>Recent diary entries:</h3>
10
11 <%= render :partial => 'diary_entry/diary_entry', :collection => @entries %>
12
13 <%= link_to(image_tag("RSS.gif", :size => "16x16", :border => 0), :action => 'rss') %>
14 <%= auto_discovery_link_tag(:atom, :action => 'rss') %>