From 5bbbfed911fdcd9968df4c432c7cbe408e7f09d2 Mon Sep 17 00:00:00 2001 From: Sagarpreet Chadha Date: Tue, 6 Feb 2018 21:24:36 +0530 Subject: [PATCH] Not to show marker on profile page map if tag blurred:true exists . #2230 (#2245) * Indentation + blurred:true tag Removes marker if the blurred:true tag exists . * remove marker feature --- app/controllers/users_controller.rb | 2 +- app/views/map/_userLeaflet.html.erb | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index e5cf1b99623..d98af39aea2 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -139,7 +139,7 @@ def profile if @profile_user.has_power_tag("lat") && @profile_user.has_power_tag("lon") @map_lat = @profile_user.get_value_of_power_tag("lat").to_f @map_lon = @profile_user.get_value_of_power_tag("lon").to_f - @map_blurred = @profile_user.has_tag("location:blurred") + @map_blurred = @profile_user.has_tag("blurred:true") end if @user.status == 0 diff --git a/app/views/map/_userLeaflet.html.erb b/app/views/map/_userLeaflet.html.erb index 0c71a01d129..8886a2e828d 100644 --- a/app/views/map/_userLeaflet.html.erb +++ b/app/views/map/_userLeaflet.html.erb @@ -1,17 +1,17 @@ -<% if haslocation == true %> - <% unique_id = rand(100) %> - -
- -<% else %> + + <% else %>
@@ -21,4 +21,4 @@ $('.blurred-location-input').click() ; } -<% end %> + <% end %>