From: Tom Hughes Date: Wed, 8 Apr 2009 13:35:35 +0000 (+0000) Subject: Fix formatting of changeset details. X-Git-Tag: live~7601^2~38 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/9b72debd9af91a5d312bdf41168c1e37bcbaa696?ds=sidebyside Fix formatting of changeset details. --- diff --git a/app/views/browse/_changeset_details.rhtml b/app/views/browse/_changeset_details.rhtml index 2b711611b..5b724012a 100644 --- a/app/views/browse/_changeset_details.rhtml +++ b/app/views/browse/_changeset_details.rhtml @@ -33,24 +33,27 @@ <% end %> - <% if changeset_details.max_lat.nil? or changeset_details.min_lat.nil? or changeset_details.max_lon.nil? or changeset_details.min_lon.nil? %> - + + Bounding box: + <% 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 %> + <% else %> + + + + + + + + + + + + +
<%= changeset_details.max_lat/GeoRecord::SCALE.to_f -%>
<%= changeset_details.min_lon/GeoRecord::SCALE.to_f -%><%= changeset_details.max_lon/GeoRecord::SCALE.to_f -%>
<%= changeset_details.min_lon/GeoRecord::SCALE.to_f -%>
+ + <% end %> + <% unless @nodes.empty? %>