1 <% content_for :heading do %>
2 <h1><%= t ".title" %></h1>
5 <svg class="d-none"><defs><%= render :partial => "layouts/control_icons", :locals => { :icons => %w[zoomin zoomout geolocate] } %></defs></svg>
8 <div class="col-md order-md-last">
9 <% if !current_user.home_location? %>
10 <div id="map" class="content_map border border-secondary-subtle">
11 <p class="m-3"><%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), profile_path)) %></p>
14 <% content_for :head do %>
15 <%= javascript_include_tag "dashboard" %>
18 :lon => current_user.home_lon,
19 :lat => current_user.home_lat,
20 :icon => "MARKER_RED",
21 :description => render(:partial => "popup", :object => current_user, :locals => { :type => "your location" })
23 <%= tag.div "", :id => "map", :class => "content_map border border-secondary-subtle rounded z-0", :data => { :user => user_data } %>
28 <h2><%= t ".followings" %></h2>
30 <% if @followings.empty? %>
31 <%= t ".no followings" %>
33 <nav class='secondary-actions mb-3'>
35 <li><%= link_to t(".followed_changesets"), friend_changesets_path %></li>
36 <li><%= link_to t(".followed_diaries"), friends_diary_entries_path %></li>
40 <%= render :partial => "contact", :collection => @followings, :locals => { :type => "following" } %>
46 <h2><%= t ".nearby users" %></h2>
48 <% if @nearby_users.empty? %>
49 <%= t ".no nearby users" %>
51 <nav class='secondary-actions mb-3'>
53 <li><%= link_to t(".nearby_changesets"), nearby_changesets_path %></li>
54 <li><%= link_to t(".nearby_diaries"), nearby_diary_entries_path %></li>
57 <div id="nearbyusers">
58 <%= render :partial => "contact", :collection => @nearby_users, :locals => { :type => "nearby mapper" } %>