Only include the home link if the user is logged in.
This commit is contained in:
parent
6cd8db7bff
commit
215958fa0f
1 changed files with 2 additions and 0 deletions
|
@ -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" %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue