Fix #2931: mention automated implications on *_(cosplay) wikis.
This commit is contained in:
@@ -16,6 +16,13 @@ module TagsHelper
|
|||||||
html << ".</p>"
|
html << ".</p>"
|
||||||
end
|
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?
|
if tag.antecedent_implications.any?
|
||||||
html << "<p class='hint'>This tag implicates "
|
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(", "))
|
html << raw(tag.antecedent_implications.map {|x| link_to(x.consequent_name, show_or_new_wiki_pages_path(:title => x.consequent_name))}.join(", "))
|
||||||
|
|||||||
Reference in New Issue
Block a user