diff --git a/app/controllers/dashboards_controller.rb b/app/controllers/dashboards_controller.rb index 54dba26d3..cb73cc38f 100644 --- a/app/controllers/dashboards_controller.rb +++ b/app/controllers/dashboards_controller.rb @@ -9,7 +9,6 @@ class DashboardsController < ApplicationController before_action :check_database_readable def show - @user = current_user @followings = current_user.followings @nearby_users = current_user.nearby - @followings end diff --git a/app/views/dashboards/_contact.html.erb b/app/views/dashboards/_contact.html.erb index 8e78524de..021f1a335 100644 --- a/app/views/dashboards/_contact.html.erb +++ b/app/views/dashboards/_contact.html.erb @@ -11,8 +11,8 @@
<%= link_to contact.display_name, contact %> - <% if @user.home_location? and contact.home_location? %> - <% distance = @user.distance(contact) %> + <% if current_user.home_location? and contact.home_location? %> + <% distance = current_user.distance(contact) %> <% if distance < 1 %> (<%= t ".m away", :count => (distance * 1000).round %>) <% else %> diff --git a/app/views/dashboards/show.html.erb b/app/views/dashboards/show.html.erb index a198f534d..e110ad531 100644 --- a/app/views/dashboards/show.html.erb +++ b/app/views/dashboards/show.html.erb @@ -3,60 +3,58 @@ <% end %>
<%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), edit_profile_path)) %>
-<%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), edit_profile_path)) %>
+