]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/map.html.erb
Improve changeset template
[rails.git] / app / views / layouts / map.html.erb
index 8be2aff81de3f91a9252feb5c79398d0409b954a..d6ac18a66d8f884410d1cacff5fbe3b675a78206 100644 (file)
@@ -4,6 +4,18 @@
 
 <% content_for(:body_class) { "map-layout" } %>
 
+<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
+  <% content_for :greeting do %>
+    <%= link_to t("layouts.home"),
+                "#",
+                :id => "homeanchor",
+                :class => "set_position",
+                :data => { :lat => @user.home_lat,
+                           :lon => @user.home_lon,
+                           :zoom => 15 } %>
+  <% end %>
+<% end %>
+
 <% content_for :content do %>
   <div id="sidebar">
     <%= form_tag search_path, :id => "search_form" do %>