From cb06a1e0ca8296ab56fad8037688b13a2891872a Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Thu, 17 Mar 2011 21:19:03 -0700 Subject: [PATCH] Don't display organization if none exists --- app/views/contents/_user_profile.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/contents/_user_profile.html.erb b/app/views/contents/_user_profile.html.erb index 2d049cf..383912a 100644 --- a/app/views/contents/_user_profile.html.erb +++ b/app/views/contents/_user_profile.html.erb @@ -1,2 +1,2 @@

<%= @hydrant.name ? @hydrant.name.titleize : "This hydrant" %> has been adopted by <%= @hydrant.user.name %>

-<%= @hydrant.user.organization ? "

of #{@hydrant.user.organization}

".html_safe : nil %> +<%= @hydrant.user.organization.blank? ? "

of #{@hydrant.user.organization}

".html_safe : nil %>