Fix map controls on user settings page
[rails.git] / app / views / site / _home_link.html.erb
1 <% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
2   <% content_for :greeting do %>
3     <%= link_to t("layouts.home"),
4                 "#",
5                 :id => "homeanchor",
6                 :class => "set_position",
7                 :data => { :lat => @user.home_lat,
8                            :lon => @user.home_lon,
9                            :zoom => 15 } %>
10   <% end %>
11 <% end %>