hide exclude tag if no query

This commit is contained in:
albert
2012-10-30 17:38:12 -04:00
parent 7a8ea0456a
commit 39ee048503

View File

@@ -106,7 +106,10 @@ private
if CurrentUser.user.is_privileged?
html << %{<a href="/posts?tags=#{u(current_query)}+#{u(tag)}" class="search-inc-tag">+</a> }
html << %{<a href="/posts?tags=#{u(current_query)}+-#{u(tag)}" class="search-exl-tag">&ndash;</a> }
if current_query.present?
html << %{<a href="/posts?tags=#{u(current_query)}+-#{u(tag)}" class="search-exl-tag">&ndash;</a> }
end
end
end