]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/_location.html.erb
Remove if_user and similar methods
[rails.git] / app / views / diary_entry / _location.html.erb
index a3ba473a8a67e54f11e08cfc79f314e9b3a4201a..6828cd4dc282b536567731a55ede2bcaa4d5e12a 100644 (file)
@@ -1,6 +1,6 @@
-<%= t 'diary_entry.location.location' %>
+<%= t '.location' %>
 
-<a href="<%= url_for :controller => 'site', :action => 'index', :lat => location.latitude, :lon => location.longitude, :zoom => 14 %>">
+<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>