From 9b72debd9af91a5d312bdf41168c1e37bcbaa696 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 8 Apr 2009 13:35:35 +0000 Subject: [PATCH] Fix formatting of changeset details. --- app/views/browse/_changeset_details.rhtml | 37 ++++++++++++----------- 1 file changed, 20 insertions(+), 17 deletions(-) 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? %> -- 2.43.2