Railsify the box link on the browse changeset page
This removes the whitespace in the url, and makes the root path a named route so that it can be nicely referenced.
This commit is contained in:
parent
3369743d6c
commit
0465fda75a
2 changed files with 2 additions and 3 deletions
|
@ -33,8 +33,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><%=bbox.min_lon -%></td>
|
||||
<td>(<a href='/?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' %>'><%= t 'browse.changeset_details.box' %></a>)</td>
|
||||
<td>(<%= 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') %>)</td>
|
||||
<td><%=bbox.max_lon -%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue