From ac9a08c4ec97dac1735d1cf25d22d59078ed480b Mon Sep 17 00:00:00 2001 From: Toks Date: Tue, 17 Sep 2013 13:44:28 -0400 Subject: [PATCH] #1929: Don't show blank reason --- app/views/tag_aliases/show.html.erb | 2 +- app/views/tag_implications/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/tag_aliases/show.html.erb b/app/views/tag_aliases/show.html.erb index 103f9e5a9..91fcbba74 100644 --- a/app/views/tag_aliases/show.html.erb +++ b/app/views/tag_aliases/show.html.erb @@ -8,7 +8,7 @@ <% end %>
  • Creator <%= link_to_user @tag_alias.creator %>
  • Date <%= @tag_alias.created_at %>
  • - <% if @tag_alias.respond_to?(:reason) %> + <% if @tag_alias.respond_to?(:reason) && @tag_alias.reason.present? %>
  • Reason <%= format_text @tag_alias.reason %>
  • <% end %> diff --git a/app/views/tag_implications/show.html.erb b/app/views/tag_implications/show.html.erb index 00e4a5c2b..4d0e05ceb 100644 --- a/app/views/tag_implications/show.html.erb +++ b/app/views/tag_implications/show.html.erb @@ -8,7 +8,7 @@ <% end %>
  • Creator <%= link_to_user @tag_implication.creator %>
  • Date <%= @tag_implication.created_at %>
  • - <% if @tag_implication.respond_to?(:reason) %> + <% if @tag_implication.respond_to?(:reason) && @tag_implication.reason.present? %>
  • Reason <%= format_text @tag_implication.reason %>
  • <% end %>