diff --git a/app/views/wiki_pages/new.html.erb b/app/views/wiki_pages/new.html.erb index c81a54b15..f08708cfd 100644 --- a/app/views/wiki_pages/new.html.erb +++ b/app/views/wiki_pages/new.html.erb @@ -13,6 +13,22 @@ <%= render "form" %> + <% if @wiki_page.presenter.antecedent_tag_alias %> +

This tag has been aliased to <%= link_to @wiki_page.presenter.antecedent_tag_alias.consequent_name, posts_path(:tags => @wiki_page.presenter.antecedent_tag_alias.consequent_name) %>.

+ <% end %> + + <% if @wiki_page.presenter.consequent_tag_aliases.any? %> +

The following tags are aliased to this tag: <%= raw @wiki_page.presenter.consequent_tag_aliases.map {|x| link_to(x.antecedent_name, posts_path(:tags => x.antecedent_name))}.join(", ") %>.

+ <% end %> + + <% if @wiki_page.presenter.antecedent_tag_implications.any? %> +

This tag has been implicated to <%= raw @wiki_page.presenter.antecedent_tag_implications.map {|x| link_to(x.consequent_name, posts_path(:tags => x.consequent_name))}.join(", ") %>.

+ <% end %> + + <% if @wiki_page.presenter.consequent_tag_implications.any? %> +

The following tags are implicated to this tag: <%= raw @wiki_page.presenter.consequent_tag_implications.map {|x| link_to(x.antecedent_name, posts_path(:tags => x.antecedent_name))}.join(", ") %>.

+ <% end %> +

Posts

<%= @wiki_page.post_set.presenter.post_previews_html(self) %> diff --git a/app/views/wiki_pages/show.html.erb b/app/views/wiki_pages/show.html.erb index 96f832bd4..185f3c5ac 100644 --- a/app/views/wiki_pages/show.html.erb +++ b/app/views/wiki_pages/show.html.erb @@ -23,7 +23,7 @@

The following tags are aliased to this tag: <%= raw @wiki_page.presenter.consequent_tag_aliases.map {|x| link_to(x.antecedent_name, posts_path(:tags => x.antecedent_name))}.join(", ") %>.

<% end %> - <% if @wiki_page.presenter.antecedent_tag_implications %> + <% if @wiki_page.presenter.antecedent_tag_implications.any? %>

This tag has been implicated to <%= raw @wiki_page.presenter.antecedent_tag_implications.map {|x| link_to(x.consequent_name, posts_path(:tags => x.consequent_name))}.join(", ") %>.

<% end %>