]> git.openstreetmap.org Git - rails.git/blob - app/views/site/_home_link.html.erb
e907b3fb1e62008a7c9b78bbd549f4f8454b7505
[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 %>