Restore "Go to Home Location"

This commit is contained in:
John Firebaugh 2013-11-05 16:00:41 -08:00
parent 6681155865
commit b28a02a41f
2 changed files with 12 additions and 11 deletions

View file

@ -4,6 +4,18 @@
<% content_for(:body_class) { "map-layout" } %>
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
<% content_for :greeting do %>
<%= link_to t("layouts.home"),
"#",
:id => "homeanchor",
:class => "set_position",
:data => { :lat => @user.home_lat,
:lon => @user.home_lon,
:zoom => 15 } %>
<% end %>
<% end %>
<% content_for :content do %>
<div id="sidebar">
<%= form_tag search_path, :id => "search_form" do %>

View file

@ -1,11 +0,0 @@
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
<% content_for :greeting do %>
<%= link_to t("layouts.home"),
"#",
:id => "homeanchor",
:class => "set_position",
:data => { :lat => @user.home_lat,
:lon => @user.home_lon,
:zoom => 15 } %>
<% end %>
<% end %>