1 <% content_for :heading do %>
2 <h1><%= t ".title" %></h1>
6 <div class="col-md order-md-last">
7 <% if !current_user.home_location? %>
8 <div id="map" class="content_map border border-secondary-subtle">
9 <p class="m-3"><%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), edit_profile_path)) %></p>
12 <% content_for :head do %>
13 <%= javascript_include_tag "user" %>
16 :lon => current_user.home_lon,
17 :lat => current_user.home_lat,
18 :icon => image_path("marker-red.png"),
19 :description => render(:partial => "popup", :object => current_user, :locals => { :type => "your location" })
21 <%= tag.div "", :id => "map", :class => "content_map border border-secondary-subtle rounded z-0", :data => { :user => user_data } %>
26 <h2><%= t ".followings" %></h2>
28 <% if @followings.empty? %>
29 <%= t ".no followings" %>
31 <nav class='secondary-actions mb-3'>
33 <li><%= link_to t(".followed_changesets"), friend_changesets_path %></li>
34 <li><%= link_to t(".followed_diaries"), friends_diary_entries_path %></li>
38 <%= render :partial => "contact", :collection => @followings, :locals => { :type => "following" } %>
44 <h2><%= t ".nearby users" %></h2>
46 <% if @nearby_users.empty? %>
47 <%= t ".no nearby users" %>
49 <nav class='secondary-actions mb-3'>
51 <li><%= link_to t(".nearby_changesets"), nearby_changesets_path %></li>
52 <li><%= link_to t(".nearby_diaries"), nearby_diary_entries_path %></li>
55 <div id="nearbyusers">
56 <%= render :partial => "contact", :collection => @nearby_users, :locals => { :type => "nearby mapper" } %>