]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entries/_location.html.erb
Use body color in notes table legend
[rails.git] / app / views / diary_entries / _location.html.erb
index e85be917a27bb2541d03c54f167ee7440616323e..ae48e86b9f7694f4eb40f8e1fd343964004db34c 100644 (file)
@@ -1,7 +1,9 @@
 <%= t ".location" %>
 
-<a href="<%= url_for :controller => "site", :action => "index", :anchor => "map=14/#{location.latitude}/#{location.longitude}" %>">
-<abbr class="geo" title="<%= number_with_precision(location.latitude, :precision => 4) %>; <%= number_with_precision(location.longitude, :precision => 4) %>">
-<%= describe_location location.latitude, location.longitude, 14, location.language_code %>
-</abbr>
-</a>
+<%= link_to root_path(:anchor => "map=14/#{location.latitude}/#{location.longitude}") do
+      tag.abbr :class => "geo",
+               :title => t(".coordinates", :latitude => number_with_precision(location.latitude, :precision => 4),
+                                           :longitude => number_with_precision(location.longitude, :precision => 4)) do
+        describe_location location.latitude, location.longitude, 14, location.language_code
+      end
+    end %>