X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8da015ac88d9c9a2f7ca32f981061a6bc397a8fd..42d622b735a8f7ef9399e1dae54eb653d08ef112:/app/views/dashboards/show.html.erb?ds=sidebyside diff --git a/app/views/dashboards/show.html.erb b/app/views/dashboards/show.html.erb index 0f04dafb9..70dae774e 100644 --- a/app/views/dashboards/show.html.erb +++ b/app/views/dashboards/show.html.erb @@ -5,8 +5,8 @@
<% if current_user and @user.id == current_user.id %>
- <% if @user.home_lat.nil? or @user.home_lon.nil? %> -
+ <% if !@user.home_location? %> +

<%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), edit_profile_path)) %>

<% else %> @@ -19,33 +19,33 @@ :icon => image_path("marker-red.png"), :description => render(:partial => "popup", :object => current_user, :locals => { :type => "your location" }) } %> - <%= tag.div "", :id => "map", :class => "content_map", :data => { :user => user_data } %> + <%= tag.div "", :id => "map", :class => "content_map border border-secondary-subtle rounded z-0", :data => { :user => user_data } %> <% end %> - <% friends = @user.friends %> - <% nearby = @user.nearby - friends %> + <% followings = @user.followings %> + <% nearby = @user.nearby - followings %>
-

<%= t ".my friends" %>

+

<%= t ".followings" %>

- <% if friends.empty? %> - <%= t ".no friends" %> + <% if followings.empty? %> + <%= t ".no followings" %> <% else %> -
- <%= render :partial => "contact", :collection => friends, :locals => { :type => "friend" } %> +
+ <%= render :partial => "contact", :collection => followings, :locals => { :type => "following" } %>
<% end %>
-

<%= t ".nearby users" %>

+

<%= t ".nearby users" %>

<% if nearby.empty? %> <%= t ".no nearby users" %>