]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/_changeset_details.rhtml
765fe4778d721d7b38a4e31f7e54d0ca0cf2abfc
[rails.git] / app / views / browse / _changeset_details.rhtml
1 <table>
2
3   <tr>
4     <th>Created at:</th>
5     <td><%= h(changeset_details.created_at) %></td>
6   </tr>
7   
8   <tr>
9     <th>Closed at:</th>
10     <td><%= h(changeset_details.closed_at) %></td>
11   </tr>
12   
13   <% if changeset_details.user.data_public? %>
14     <tr>
15       <th>Belongs to:</th>
16       <td><%= link_to h(changeset_details.user.display_name), :controller => "user", :action => "view", :display_name => changeset_details.user.display_name %></td>
17     </tr>
18   <% end %>
19   
20   <% unless changeset_details.tags_as_hash.empty? %>
21     <tr valign="top">
22       <th>Tags:</th>
23       <td>
24         <table padding="0">
25           <%= render :partial => "tag", :collection => changeset_details.tags_as_hash %>
26         </table>
27       </td>
28     </tr>
29   <% else %>
30     <tr>
31       <th>Tags</th>
32       <td>There are no tags for this changeset</td>
33     </tr>
34   <% end %>
35
36   <% unless @nodes.empty? %>
37     <tr valign="top">
38       <th>Has the following <%= @node_pages.item_count %> nodes:</th>
39       <td>
40         <table padding="0">
41           <% @nodes.each do |node| %>
42             <tr><td><%= link_to "Node #{node.id.to_s}, version #{node.version.to_s}", :action => "node", :id => node.id.to_s %></td></tr>
43           <% end %>
44         </table>
45       </td>
46     </tr>
47     <%= render :partial => 'paging_nav', :locals => { :pages => @node_pages, :page_param => "node_page"} %>
48   <% end %>
49   
50   <% unless @ways.empty? %>
51     <tr valign="top">
52       <th>Has the following <%= @way_pages.item_count %> ways:</th>
53       <td>
54         <table padding="0">
55           <% @ways.each do |way| %>
56             <tr><td><%= link_to "Way #{way.id.to_s}, version #{way.version.to_s}", :action => "way", :id => way.id.to_s %></td></tr>
57           <% end %>
58           <%=
59           #render :partial => "containing_relation", :collection => changeset_details.containing_relation_members 
60           %>
61         </table>
62       </td>
63     </tr>
64     <%= render :partial => 'paging_nav', :locals => { :pages => @way_pages, :page_param => "way_page" } %>
65   <% end %>
66   
67   <% unless @relations.empty? %>
68     <tr valign="top">
69       <th>Has the following <%= @relation_pages.item_count %> relations:</th>
70       <td>
71         <table padding="0">
72           <% @relations.each do |relation| %>
73             <tr><td><%= link_to "Relation #{relation.id.to_s}, version #{relation.version.to_s}", :action => "relation", :id => relation.id.to_s %></td></tr>
74           <% end %>
75         </table>
76       </td>
77     </tr>
78     <%= render :partial => 'paging_nav', :locals => { :pages => @relation_pages, :page_param => "relation_page" } %>
79   <% end %>
80
81 </table>