fixes #1714
This commit is contained in:
@@ -92,10 +92,6 @@ private
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_index?(template)
|
|
||||||
template.params[:action] == "index"
|
|
||||||
end
|
|
||||||
|
|
||||||
def build_list_item(tag, template, options)
|
def build_list_item(tag, template, options)
|
||||||
html = ""
|
html = ""
|
||||||
html << %{<li class="category-#{categories[tag]}">}
|
html << %{<li class="category-#{categories[tag]}">}
|
||||||
@@ -108,7 +104,7 @@ private
|
|||||||
html << %{<a class="wiki-link" href="/wiki_pages/show_or_new?title=#{u(tag)}">?</a> }
|
html << %{<a class="wiki-link" href="/wiki_pages/show_or_new?title=#{u(tag)}">?</a> }
|
||||||
end
|
end
|
||||||
|
|
||||||
if CurrentUser.user.is_gold? && is_index?(template) && current_query.present?
|
if CurrentUser.user.is_gold? && current_query.present?
|
||||||
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-inc-tag">+</a> }
|
||||||
html << %{<a href="/posts?tags=#{u(current_query)}+-#{u(tag)}" class="search-exl-tag">–</a> }
|
html << %{<a href="/posts?tags=#{u(current_query)}+-#{u(tag)}" class="search-exl-tag">–</a> }
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user