- <td><%= t 'browse.changeset_details.no_bounding_box' %></td>
- <% 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
- maxlat = changeset_details.max_lat/GeoRecord::SCALE.to_f
- %>
- <td>
- <table>
- <tr>
- <td colspan="3" style="text-align:center"><%=maxlat -%></td>
- </tr>
- <tr>
- <td><%=minlon -%></td>
- <td>(<a href='/?minlon=<%= minlon %>&minlat=<%= minlat %>&maxlon=<%= maxlon %>&maxlat=<%= maxlat %>&box=yes' title='<%= t 'browse.changeset_details.show_area_box' %>' rel='nofollow'><%= t 'browse.changeset_details.box' %></a>)</td>
- <td><%=maxlon -%></td>
- </tr>
- <tr>
- <td colspan="3" style="text-align:center"><%= minlat -%></td>
- </tr>
- </table>
- </td>
+ <p><%= t 'browse.changeset_details.no_bounding_box' %></p>
+ <% else bbox = changeset_details.bbox.to_unscaled %>
+ <div class='bbox'>
+ <div class='max_lat'><%=bbox.max_lat -%></div>
+ <div class='min_lon'><%=bbox.min_lon -%></div>
+ <div class='box'>(<%= link_to t('browse.changeset_details.box'), root_path(:minlon => bbox.min_lon, :minlat => bbox.min_lat, :maxlon => bbox.max_lon, :maxlat => bbox.max_lat, :box => 'yes'), :title => t('browse.changeset_details.show_area_box') %>)</div>
+ <div class='max_lon'><%=bbox.max_lon -%></div>
+ <div class='min_lat'><%= bbox.min_lat -%></div>
+ </div>