]> git.openstreetmap.org Git - rails.git/blob - app/views/site/_home_link.html.erb
Fix small-screen layout issues
[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                 :title => t("layouts.home_tooltip") %>
11   <% end %>
12 <% end %>