]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_changeset_details.rhtml
Use correct names for member types.
[rails.git] / app / views / browse / _changeset_details.rhtml
index baeb44508763dbb1a76a77ed3e2bdbe4cec084e2..fdcc96c19de86bbe66081c5cfc941750f2fb741a 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
@@ -41,7 +40,7 @@
             <td><%=maxlon -%></td>
           </tr>
           <tr>
-            <td colspan="3" style="text-align:center"><%= minlon -%></td>
+            <td colspan="3" style="text-align:center"><%= minlat -%></td>
           </tr>
         </table>
       </td>