X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/bf29550db840c97cafffbe1e836750bef6c7942d..bed9cd00ed166ce346da4b8a9b654ddf86e64e70:/app/views/browse/_changeset_details.rhtml diff --git a/app/views/browse/_changeset_details.rhtml b/app/views/browse/_changeset_details.rhtml index 27335dd88..2b711611b 100644 --- a/app/views/browse/_changeset_details.rhtml +++ b/app/views/browse/_changeset_details.rhtml @@ -5,6 +5,11 @@ <%= h(changeset_details.created_at) %> + + Closed at: + <%= h(changeset_details.closed_at) %> + + <% if changeset_details.user.data_public? %> Belongs to: @@ -21,27 +26,52 @@ - <% end %> + <% else %> + + Tags + There are no tags for this changeset + + <% end %> - <% unless changeset_details.old_nodes.empty? %> + <% if changeset_details.max_lat.nil? or changeset_details.min_lat.nil? or changeset_details.max_lon.nil? or changeset_details.min_lon.nil? %> + + No bounding box has been stored for this changeset. + + <% else %> + + + + + + + + + + + +
Max Latitude: <%= changeset_details.max_lat/GeoRecord::SCALE.to_f -%>
Min Longitude: <%= changeset_details.min_lon/GeoRecord::SCALE.to_f -%>Max Longitude: <%= changeset_details.max_lon/GeoRecord::SCALE.to_f -%>
Min Latitude: <%= changeset_details.min_lon/GeoRecord::SCALE.to_f -%>
+ <% end %> + + <% unless @nodes.empty? %> - Has the following nodes: + Has the following <%= @node_pages.item_count %> nodes: - <% changeset_details.old_nodes.each do |node| %> + <% @nodes.each do |node| %> <% end %>
<%= link_to "Node #{node.id.to_s}, version #{node.version.to_s}", :action => "node", :id => node.id.to_s %>
+ <%= render :partial => 'paging_nav', :locals => { :pages => @node_pages, :page_param => "node_page"} %> <% end %> - <% unless changeset_details.old_ways.empty? %> + <% unless @ways.empty? %> - Has the following ways: + Has the following <%= @way_pages.item_count %> ways: - <% changeset_details.old_ways.each do |way| %> + <% @ways.each do |way| %> <% end %> <%= @@ -49,20 +79,22 @@ %>
<%= link_to "Way #{way.id.to_s}, version #{way.version.to_s}", :action => "way", :id => way.id.to_s %>
- + + <%= render :partial => 'paging_nav', :locals => { :pages => @way_pages, :page_param => "way_page" } %> <% end %> - <% unless changeset_details.old_relations.empty? %> + <% unless @relations.empty? %> - Has the following relations: + Has the following <%= @relation_pages.item_count %> relations: - <% changeset_details.old_relations.each do |relation| %> + <% @relations.each do |relation| %> <% end %>
<%= link_to "Relation #{relation.id.to_s}, version #{relation.version.to_s}", :action => "relation", :id => relation.id.to_s %>
+ <%= render :partial => 'paging_nav', :locals => { :pages => @relation_pages, :page_param => "relation_page" } %> <% end %>