hide exclude tag if no query
This commit is contained in:
@@ -106,9 +106,12 @@ private
|
||||
|
||||
if CurrentUser.user.is_privileged?
|
||||
html << %{<a href="/posts?tags=#{u(current_query)}+#{u(tag)}" class="search-inc-tag">+</a> }
|
||||
|
||||
if current_query.present?
|
||||
html << %{<a href="/posts?tags=#{u(current_query)}+-#{u(tag)}" class="search-exl-tag">–</a> }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
humanized_tag = tag.tr("_", " ")
|
||||
path = options[:path_prefix] || "/posts"
|
||||
|
||||
Reference in New Issue
Block a user