Fix #2931: mention automated implications on *_(cosplay) wikis.

This commit is contained in:
evazion
2017-03-23 02:49:17 -05:00
parent 4fde2a26fb
commit 267d70bd52

View File

@@ -16,6 +16,13 @@ module TagsHelper
html << ".</p>"
end
automatic_tags = TagImplication.automatic_tags_for([tag.name])
if automatic_tags.any?
html << "<p class='hint'>This tag automatically adds "
html << raw(automatic_tags.map {|x| link_to(x, show_or_new_wiki_pages_path(:title => x))}.join(", "))
html << ".</p>"
end
if tag.antecedent_implications.any?
html << "<p class='hint'>This tag implicates "
html << raw(tag.antecedent_implications.map {|x| link_to(x.consequent_name, show_or_new_wiki_pages_path(:title => x.consequent_name))}.join(", "))