Add home location condition to user model
This commit is contained in:
parent
f47eeb0632
commit
033c032ed6
9 changed files with 15 additions and 11 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
<% content_for(:body_class) { "map-layout" } %>
|
||||
|
||||
<% if current_user and !current_user.home_lon.nil? and !current_user.home_lat.nil? %>
|
||||
<% if current_user&.has_home? %>
|
||||
<% content_for :greeting do %>
|
||||
<%= link_to t("layouts.home"),
|
||||
"#",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue