diff --git a/app/views/tag_relationships/_alias_and_implication_list.html.erb b/app/views/tag_relationships/_alias_and_implication_list.html.erb index 0ead3409c..94e24d864 100644 --- a/app/views/tag_relationships/_alias_and_implication_list.html.erb +++ b/app/views/tag_relationships/_alias_and_implication_list.html.erb @@ -1,40 +1,42 @@ -<% if tag.antecedent_alias %> -
- This tag has been aliased to <%= link_to_wiki(tag.antecedent_alias.consequent_name) %> - (<%= link_to_wiki "learn more", "help:tag_aliases" %>). -
-<% end %> - -<% if tag.consequent_aliases.present? %> -- The following tags are aliased to this tag: - <%= to_sentence(tag.consequent_aliases.map { |ta| link_to_wiki ta.antecedent_name }) %> - (<%= link_to_wiki "learn more", "help:tag_aliases" %>). -
-<% end %> - -<% TagImplication.automatic_tags_for([tag.name]).tap do |automatic_tags| %> - <% if automatic_tags.present? %> +<% if tag.present? %> + <% if tag.antecedent_alias %>- This tag automatically adds - <%= to_sentence(automatic_tags.map { |tag| link_to_wiki tag }) %> - (<%= link_to_wiki "learn more", "help:autotags" %>). + This tag has been aliased to <%= link_to_wiki(tag.antecedent_alias.consequent_name) %> + (<%= link_to_wiki "learn more", "help:tag_aliases" %>). +
+ <% end %> + + <% if tag.consequent_aliases.present? %> ++ The following tags are aliased to this tag: + <%= to_sentence(tag.consequent_aliases.map { |ta| link_to_wiki ta.antecedent_name }) %> + (<%= link_to_wiki "learn more", "help:tag_aliases" %>). +
+ <% end %> + + <% TagImplication.automatic_tags_for([tag.name]).tap do |automatic_tags| %> + <% if automatic_tags.present? %> ++ This tag automatically adds + <%= to_sentence(automatic_tags.map { |tag| link_to_wiki tag }) %> + (<%= link_to_wiki "learn more", "help:autotags" %>). +
+ <% end %> + <% end %> + + <% if tag.antecedent_implications.present? %> ++ This tag implicates + <%= to_sentence(tag.antecedent_implications.map { |ti| link_to_wiki ti.consequent_name }) %> + (<%= link_to_wiki "learn more", "help:tag_implications" %>). +
+ <% end %> + + <% if tag.consequent_implications.present? %> ++ The following tags implicate this tag: + <%= to_sentence(tag.consequent_implications.map { |ti| link_to_wiki ti.antecedent_name }) %> + (<%= link_to_wiki "learn more", "help:tag_implications" %>).
<% end %> <% end %> - -<% if tag.antecedent_implications.present? %> -- This tag implicates - <%= to_sentence(tag.antecedent_implications.map { |ti| link_to_wiki ti.consequent_name }) %> - (<%= link_to_wiki "learn more", "help:tag_implications" %>). -
-<% end %> - -<% if tag.consequent_implications.present? %> -- The following tags implicate this tag: - <%= to_sentence(tag.consequent_implications.map { |ti| link_to_wiki ti.antecedent_name }) %> - (<%= link_to_wiki "learn more", "help:tag_implications" %>). -
-<% end %>