From: Shaun McDonald Date: Sun, 31 May 2009 14:05:12 +0000 (+0000) Subject: Use a more rails like way for the new coordinates link, which also localizes the... X-Git-Tag: live~7319^2~21 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/afce15dd86d855381c78d4d31b4baba4db4ce152?hp=4766cccb543f0df53dc8f03dfbaab5dd2d8b07d7;ds=sidebyside Use a more rails like way for the new coordinates link, which also localizes the display of the lat lon numbers. Couple more translations. --- diff --git a/app/views/browse/_node_details.rhtml b/app/views/browse/_node_details.rhtml index 80680fcb1..7982e6805 100644 --- a/app/views/browse/_node_details.rhtml +++ b/app/views/browse/_node_details.rhtml @@ -3,8 +3,8 @@ <%= render :partial => "common_details", :object => node_details %> - Coordinates: -
<%= h(node_details.lat) %>, <%= h(node_details.lon) %>
+ <%= t 'browse.node_details.coordinates' %> +
<%= link_to ("#{number_with_delimiter(node_details.lat)}, #{number_with_delimiter(node_details.lon)}"), {:controller => 'site', :action => 'index', :lat => h(node_details.lat), :lon => h(node_details.lon), :zoom => "18"} %>
<% unless node_details.ways.empty? and node_details.containing_relation_members.empty? %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 6b071b58b..53d9098b3 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -33,6 +33,7 @@ en: deleted: "Deleted" view_larger_map: "View Larger Map" node_details: + coordinates: "Coordinates: " part_of: "Part of:" node_history: node_history: "Node History" diff --git a/config/routes.rb b/config/routes.rb index f2d644719..4b1161012 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -85,6 +85,7 @@ ActionController::Routing::Routes.draw do |map| map.connect '/browse/changesets', :controller => 'changeset', :action => 'list' # web site + map.root :controller => 'site', :action => 'index' map.connect '/', :controller => 'site', :action => 'index' map.connect '/edit', :controller => 'site', :action => 'edit' map.connect '/history', :controller => 'changeset', :action => 'list_bbox'