Restore "Go to Home Location"
This commit is contained in:
parent
6681155865
commit
b28a02a41f
2 changed files with 12 additions and 11 deletions
|
@ -4,6 +4,18 @@
|
||||||
|
|
||||||
<% content_for(:body_class) { "map-layout" } %>
|
<% 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 %>
|
<% content_for :content do %>
|
||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
<%= form_tag search_path, :id => "search_form" do %>
|
<%= form_tag search_path, :id => "search_form" do %>
|
||||||
|
|
|
@ -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 %>
|
|
Loading…
Add table
Add a link
Reference in a new issue