From 31ac5d266728e88af933f2d9e81e25f89120792e Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 19 Jan 2020 16:16:26 +0100 Subject: [PATCH] Quick correction on the link to remove the gps coordinates filter --- app/views/regions/_filter.haml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/regions/_filter.haml b/app/views/regions/_filter.haml index ee72d1fe..376047bc 100644 --- a/app/views/regions/_filter.haml +++ b/app/views/regions/_filter.haml @@ -1,7 +1,7 @@ -# Choose a region to filter events with %ul.regions - %li#near-me{ class: ('selected' if (params[:near] && params[:near][:location]).present?) } - - if (params[:near] && params[:near][:location]).present? + - if params[:near].present? && params[:near][:location].present? + %li.selected %a(href="?near=") %em.fa.fa-map-pin = params[:near][:location] @@ -11,7 +11,8 @@ km %em.fa.fa-times - - else + - else + %li#near-me %a.near-me(href="?near[distance]=1&near[location]=[me]") %em.fa.fa-street-view = t '.nearMe'