3 <div class='browse-section common'>
5 <h4><%= t 'browse.changeset_details.created_at' %></h4>
6 <p><%= l changeset_details.created_at %></p>
10 <h4><%= t 'browse.changeset_details.closed_at' %></h4>
11 <p><%= l changeset_details.closed_at %></p>
14 <% if changeset_details.user.data_public? %>
16 <h4><%= t 'browse.changeset_details.belongs_to' %></h4>
17 <p><%= link_to h(changeset_details.user.display_name), :controller => "user", :action => "view", :display_name => changeset_details.user.display_name %></p>
22 <%= render :partial => "tag_details", :object => changeset_details %>
24 <div class='browse-section clearfix'>
25 <h4><%= t 'browse.changeset_details.bounding_box' %></h4>
26 <% unless changeset_details.has_valid_bbox? %>
27 <p><%= t 'browse.changeset_details.no_bounding_box' %></p>
28 <% else bbox = changeset_details.bbox.to_unscaled %>
30 <div class='max_lat'><%=bbox.max_lat -%></div>
31 <div class='min_lon'><%=bbox.min_lon -%></div>
32 <div class='box'>(<%= link_to t('browse.changeset_details.box'), root_path(:minlon => bbox.min_lon, :minlat => bbox.min_lat, :maxlon => bbox.max_lon, :maxlat => bbox.max_lat, :box => 'yes'), :title => t('browse.changeset_details.show_area_box') %>)</div>
33 <div class='max_lon'><%=bbox.max_lon -%></div>
34 <div class='min_lat'><%= bbox.min_lat -%></div>
39 <% unless @nodes.empty? %>
40 <div class='browse-section clearfix'>
41 <h4><%= t 'browse.changeset_details.has_nodes', :count => @node_pages.item_count %></h4>
43 <% @nodes.each do |node| %>
44 <li><%= link_to h(printable_name(node, true)), { :action => "node", :id => node.node_id.to_s }, :class => link_class('node', node), :title => link_title(node) %></li>
48 <%= render :partial => 'paging_nav', :locals => { :pages => @node_pages, :page_param => "node_page"} %>
51 <% unless @ways.empty? %>
52 <div class='browse-section clearfix'>
53 <h4><%= t 'browse.changeset_details.has_ways', :count => @way_pages.item_count %></h4>
55 <% @ways.each do |way| %>
56 <li><%= link_to h(printable_name(way, true)), { :action => "way", :id => way.way_id.to_s }, :class => link_class('way', way), :title => link_title(way) %></li>
59 #render :partial => "containing_relation", :collection => changeset_details.containing_relation_members
63 <%= render :partial => 'paging_nav', :locals => { :pages => @way_pages, :page_param => "way_page" } %>
66 <% unless @relations.empty? %>
67 <div class='browse-section clearfix'>
68 <h4><%= t 'browse.changeset_details.has_relations', :count => @relation_pages.item_count %></h4>
70 <% @relations.each do |relation| %>
71 <li><%= link_to h(printable_name(relation, true)), { :action => "relation", :id => relation.relation_id.to_s }, :class => link_class('relation', relation), :title => link_title(relation) %></li>
75 <%= render :partial => 'paging_nav', :locals => { :pages => @relation_pages, :page_param => "relation_page" } %>