]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_changeset_details.rhtml
Quick fix to reference relation rather than relation_member when linking to the relat...
[rails.git] / app / views / browse / _changeset_details.rhtml
index baeb44508763dbb1a76a77ed3e2bdbe4cec084e2..13b64d3405f2cff622ee8e7ef45f950bab2a9749 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>
@@ -52,7 +51,7 @@
     <tr valign="top">
       <th>Has the following <%= @node_pages.item_count %> nodes:</th>
       <td>
-        <table padding="0">
+        <table cellpadding="0">
           <% @nodes.each do |node| %>
             <tr><td><%= link_to "Node #{node.id.to_s}, version #{node.version.to_s}", :action => "node", :id => node.id.to_s %></td></tr>
           <% end %>
@@ -66,7 +65,7 @@
     <tr valign="top">
       <th>Has the following <%= @way_pages.item_count %> ways:</th>
       <td>
-        <table padding="0">
+        <table cellpadding="0">
           <% @ways.each do |way| %>
             <tr><td><%= link_to "Way #{way.id.to_s}, version #{way.version.to_s}", :action => "way", :id => way.id.to_s %></td></tr>
           <% end %>
@@ -83,7 +82,7 @@
     <tr valign="top">
       <th>Has the following <%= @relation_pages.item_count %> relations:</th>
       <td>
-        <table padding="0">
+        <table cellpadding="0">
           <% @relations.each do |relation| %>
             <tr><td><%= link_to "Relation #{relation.id.to_s}, version #{relation.version.to_s}", :action => "relation", :id => relation.id.to_s %></td></tr>
           <% end %>