- <% if !@user.home_location? %>
-
-
<%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), edit_profile_path)) %>
-
- <% else %>
- <% content_for :head do %>
- <%= javascript_include_tag "user" %>
- <% end %>
- <% user_data = {
- :lon => current_user.home_lon,
- :lat => current_user.home_lat,
- :icon => image_path("marker-red.png"),
- :description => render(:partial => "popup", :object => current_user, :locals => { :type => "your location" })
- } %>
- <%= tag.div "", :id => "map", :class => "content_map border border-secondary-subtle rounded z-0", :data => { :user => user_data } %>
+
+ <% if !current_user.home_location? %>
+
+
<%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), edit_profile_path)) %>
+
+ <% else %>
+ <% content_for :head do %>
+ <%= javascript_include_tag "user" %>
<% end %>
-
+ <% user_data = {
+ :lon => current_user.home_lon,
+ :lat => current_user.home_lat,
+ :icon => image_path("marker-red.png"),
+ :description => render(:partial => "popup", :object => current_user, :locals => { :type => "your location" })
+ } %>
+ <%= tag.div "", :id => "map", :class => "content_map border border-secondary-subtle rounded z-0", :data => { :user => user_data } %>
+ <% end %>
+
-
<%= t ".followings" %>
+
+
<%= t ".followings" %>
- <% if @followings.empty? %>
- <%= t ".no followings" %>
- <% else %>
-
-
- <%= render :partial => "contact", :collection => @followings, :locals => { :type => "following" } %>
-
- <% end %>
+ <% if @followings.empty? %>
+ <%= t ".no followings" %>
+ <% else %>
+
+
+ <%= render :partial => "contact", :collection => @followings, :locals => { :type => "following" } %>
+
+ <% end %>
-
+
-
<%= t ".nearby users" %>
+
<%= t ".nearby users" %>
- <% if @nearby_users.empty? %>
- <%= t ".no nearby users" %>
- <% else %>
-
-
- <%= render :partial => "contact", :collection => @nearby_users, :locals => { :type => "nearby mapper" } %>
-
- <% end %>
-
- <% end %>
+ <% if @nearby_users.empty? %>
+ <%= t ".no nearby users" %>
+ <% else %>
+
+
+ <%= render :partial => "contact", :collection => @nearby_users, :locals => { :type => "nearby mapper" } %>
+
+ <% end %>
+