From 215958fa0f1819e4cfe594464ac996b1a18b2235 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 24 Aug 2007 17:47:57 +0000 Subject: [PATCH] Only include the home link if the user is logged in. --- app/views/site/index.rhtml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index b9525c71a..85adb7ddb 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -1,6 +1,8 @@ <% 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" %> -- 2.43.2