Add home location condition to user model

This commit is contained in:
Anton Khorev 2023-08-09 20:15:28 +03:00
parent f47eeb0632
commit 033c032ed6
9 changed files with 15 additions and 11 deletions

View file

@ -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"),
"#",