Use a more rails like way for the new coordinates link, which also localizes the display of the lat lon numbers. Couple more translations.

This commit is contained in:
Shaun McDonald 2009-05-31 14:05:12 +00:00
parent 4766cccb54
commit afce15dd86
3 changed files with 4 additions and 2 deletions

View file

@ -3,8 +3,8 @@
<%= render :partial => "common_details", :object => node_details %>
<tr>
<th>Coordinates:</th>
<td><div class="geo"><a href="/?lat=<%= h(node_details.lat) %>&lon=<%= h(node_details.lon) %>&zoom=18"><span class="latitude"><%= h(node_details.lat) %></span>, <span class="longitude"><%= h(node_details.lon) %></span></a></div></td>
<th><%= t 'browse.node_details.coordinates' %></th>
<td><div class="geo"><%= link_to ("<span class='latitude'>#{number_with_delimiter(node_details.lat)}</span>, <span class='longitude'>#{number_with_delimiter(node_details.lon)}</span>"), {:controller => 'site', :action => 'index', :lat => h(node_details.lat), :lon => h(node_details.lon), :zoom => "18"} %></div></td>
</tr>
<% unless node_details.ways.empty? and node_details.containing_relation_members.empty? %>