fix
This commit is contained in:
@@ -92,9 +92,9 @@ private
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_index?(template)
|
# def is_index?(template)
|
||||||
template.params[:action] == "index"
|
# template.params[:action] == "index"
|
||||||
end
|
# end
|
||||||
|
|
||||||
def build_list_item(tag, template, options)
|
def build_list_item(tag, template, options)
|
||||||
html = ""
|
html = ""
|
||||||
@@ -108,13 +108,13 @@ private
|
|||||||
html << %{<a class="wiki-link" href="/wiki_pages?title=#{u(tag)}">?</a> }
|
html << %{<a class="wiki-link" href="/wiki_pages?title=#{u(tag)}">?</a> }
|
||||||
end
|
end
|
||||||
|
|
||||||
if CurrentUser.user.is_privileged? && is_index?(template)
|
# if CurrentUser.user.is_privileged? && is_index?(template)
|
||||||
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> }
|
||||||
|
#
|
||||||
if current_query.present?
|
# if current_query.present?
|
||||||
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
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
|
|
||||||
humanized_tag = tag.tr("_", " ")
|
humanized_tag = tag.tr("_", " ")
|
||||||
|
|||||||
Reference in New Issue
Block a user