readded + and - qualifiers
This commit is contained in:
@@ -108,14 +108,11 @@ private
|
||||
html << %{<a class="wiki-link" href="/wiki_pages?title=#{u(tag)}">?</a> }
|
||||
end
|
||||
|
||||
if CurrentUser.user.is_privileged? && is_index?(template)
|
||||
if CurrentUser.user.is_privileged? && is_index?(template) && current_query.present?
|
||||
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