Don't display organization if none exists

This commit is contained in:
Erik Michaels-Ober 2011-03-17 21:19:03 -07:00
parent 009912765b
commit cb06a1e0ca
1 changed files with 1 additions and 1 deletions

View File

@ -1,2 +1,2 @@
<h2><%= @hydrant.name ? @hydrant.name.titleize : "This hydrant" %> has been adopted by <%= @hydrant.user.name %></h2> <h2><%= @hydrant.name ? @hydrant.name.titleize : "This hydrant" %> has been adopted by <%= @hydrant.user.name %></h2>
<%= @hydrant.user.organization ? "<h3>of #{@hydrant.user.organization}</h3>".html_safe : nil %> <%= @hydrant.user.organization.blank? ? "<h3>of #{@hydrant.user.organization}</h3>".html_safe : nil %>