Tags: sort list of relationships alphabetically
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
<% if tag.consequent_aliases.present? %>
|
<% if tag.consequent_aliases.present? %>
|
||||||
<p class="fineprint">
|
<p class="fineprint">
|
||||||
The following tags are aliased to this tag:
|
The following tags are aliased to this tag:
|
||||||
<%= to_sentence(tag.consequent_aliases.map { |ta| link_to_wiki ta.antecedent_name }) %>
|
<%= to_sentence(tag.consequent_aliases.sort_by(&:antecedent_name).map { |ta| link_to_wiki ta.antecedent_name }) %>
|
||||||
(<%= link_to_wiki "learn more", "help:tag_aliases" %>).
|
(<%= link_to_wiki "learn more", "help:tag_aliases" %>).
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
<% if tag.antecedent_implications.present? %>
|
<% if tag.antecedent_implications.present? %>
|
||||||
<p class="fineprint">
|
<p class="fineprint">
|
||||||
This tag implicates
|
This tag implicates
|
||||||
<%= to_sentence(tag.antecedent_implications.map { |ti| link_to_wiki ti.consequent_name }) %>
|
<%= to_sentence(tag.antecedent_implications.sort_by(&:consequent_name).map { |ti| link_to_wiki ti.consequent_name }) %>
|
||||||
(<%= link_to_wiki "learn more", "help:tag_implications" %>).
|
(<%= link_to_wiki "learn more", "help:tag_implications" %>).
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
<% if tag.consequent_implications.present? %>
|
<% if tag.consequent_implications.present? %>
|
||||||
<p class="fineprint">
|
<p class="fineprint">
|
||||||
The following tags implicate this tag:
|
The following tags implicate this tag:
|
||||||
<%= to_sentence(tag.consequent_implications.map { |ti| link_to_wiki ti.antecedent_name }) %>
|
<%= to_sentence(tag.consequent_implications.sort_by(&:antecedent_name).map { |ti| link_to_wiki ti.antecedent_name }) %>
|
||||||
(<%= link_to_wiki "learn more", "help:tag_implications" %>).
|
(<%= link_to_wiki "learn more", "help:tag_implications" %>).
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user