]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_changeset_details.rhtml
Merge 14394:14533 from trunk.
[rails.git] / app / views / browse / _changeset_details.rhtml
index baeb44508763dbb1a76a77ed3e2bdbe4cec084e2..12d4dfb25b84e616d8d0c9423bbdd0c9a92fba88 100644 (file)
 
   <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? %>
+    <% unless changeset_details.has_valid_bbox? %>
       <td>No bounding box has been stored for this changeset.</td>
-    <%
-       else
+    <% else
           minlon = changeset_details.min_lon/GeoRecord::SCALE.to_f
           minlat = changeset_details.min_lat/GeoRecord::SCALE.to_f
           maxlon = changeset_details.max_lon/GeoRecord::SCALE.to_f