From 80bfb709682a2b476aac8141bf6325f1deeae97e Mon Sep 17 00:00:00 2001 From: Toks Date: Thu, 28 Mar 2013 19:36:13 -0400 Subject: [PATCH] fixes #1122; fix typo in fix for #725 --- app/views/wiki_pages/new.html.erb | 16 ++++++++++++++++ app/views/wiki_pages/show.html.erb | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) 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 %>