]> git.openstreetmap.org Git - rails.git/blob - app/views/diary_entry/list.rhtml
view changesets by user
[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
22 <% else %>
23         
24         <p>Recent diary entries:</p>
25         <hr />
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 %>
30         |
31         <% end %>
32         <%= link_to "Newer Entries", { :page => @entry_pages.current.previous } if @entry_pages.current.previous %>
33         
34         <br />
35         
36 <% end %>
37
38 <%= rss_link_to :action => 'rss' %>
39 <%= auto_discovery_link_tag :atom, :action => 'rss' %>
40
41
42 <br />
43 <br />