]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_changeset_details.rhtml
Merge 14059:14394 from trunk.
[rails.git] / app / views / browse / _changeset_details.rhtml
index 765fe4778d721d7b38a4e31f7e54d0ca0cf2abfc..5b724012abd4d5807c170ea528e5b4477e7e0d70 100644 (file)
     </tr>
   <% end %>
 
+  <tr>
+    <th>Bounding box:</th>
+    <% if changeset_details.max_lat.nil? or changeset_details.min_lat.nil? or changeset_details.max_lon.nil? or changeset_details.min_lon.nil? %>
+      <td>No bounding box has been stored for this changeset.</td>
+    <% else %>
+      <td>
+        <table>
+          <tr>
+            <td colspan="2" style="text-align:center"><%= changeset_details.max_lat/GeoRecord::SCALE.to_f -%></td>
+          </tr>
+          <tr>
+            <td><%= changeset_details.min_lon/GeoRecord::SCALE.to_f -%></td>
+            <td><%= changeset_details.max_lon/GeoRecord::SCALE.to_f -%></td>
+          </tr>
+          <tr>
+            <td colspan="2" style="text-align:center"><%= changeset_details.min_lon/GeoRecord::SCALE.to_f -%></td>
+          </tr>
+        </table>
+      </td>
+    <% end %>
+  </tr>
+
   <% unless @nodes.empty? %>
     <tr valign="top">
       <th>Has the following <%= @node_pages.item_count %> nodes:</th>