]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entries/_location.html.erb
Merge pull request #4496 from tomhughes/disabled-auth-error
[rails.git] / app / views / diary_entries / _location.html.erb
index d5860f11d8e4db5e549b331d0dd3be2ca52754d2..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="<%= t ".coordinates", :latitude => number_with_precision(location.latitude, :precision => 4), :longitude => 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 %>