The distance filter is only displayed when present

remotes/origin/master
echarp 4 years ago
parent 082aac4f88
commit fc194b6f0b
  1. 2
      app/views/pages/_search.haml

@ -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…
Cancel
Save