]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.rhtml
Only include the home link if the user is logged in.
[rails.git] / app / views / site / index.rhtml
index 08cbfaedaac8f0e01b7c9a79d06b73dedc791788..85adb7ddb03823b92b596e42fd2e89b9e6c425eb 100644 (file)
@@ -1,3 +1,9 @@
+<% content_for :greeting do %>
+<% if !@user.home_lon.nil? and !@user.home_lat.nil? %>
+<%= link_to_function 'home', "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)" %> |
+<% end %>
+<% end %>
+
 <% content_for :left_menu do %>
 <%= link_to "Map key", "http://wiki.openstreetmap.org/index.php/Map_Key" %>
 <% end %>