]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_home_link.html.erb
Refactor search JS
[rails.git] / app / views / site / _home_link.html.erb
index 615200b5eeee4c7dd4c4e25215fcd2e2823c8f2e..979ae7681fecfdfc8a3c3ba679a01a28088e005d 100644 (file)
@@ -1,5 +1,12 @@
 <% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
   <% content_for :greeting do %>
-    <%= link_to t("layouts.home"), "#", :class => "set_position", :data => { :lat => @user.home_lat, :lon => @user.home_lon, :zoom => 15 }, :title => t("layouts.home_tooltip") %> |
+    <%= link_to t("layouts.home"),
+                "#",
+                :id => "homeanchor",
+                :class => "set_position",
+                :data => { :lat => @user.home_lat,
+                           :lon => @user.home_lon,
+                           :zoom => 15 },
+                :title => t("layouts.home_tooltip") %>
   <% end %>
 <% end %>