The distance filter is only displayed when present
This commit is contained in:
parent
082aac4f88
commit
fc194b6f0b
@ -7,7 +7,7 @@
|
||||
%a(href="?tag=")
|
||||
%em.fa.fa-times
|
||||
|
||||
- if params[:near].present?
|
||||
- if params[:near].present? && params[:near][:location].present? && params[:near][:distance].present?
|
||||
%span.near
|
||||
%em.fa.fa-map-pin
|
||||
= params[:near][:location]
|
||||
|
Loading…
Reference in New Issue
Block a user