From 2c492707baf00d95bf2e5432109d779f335d169a Mon Sep 17 00:00:00 2001 From: JoenioCosta Date: Wed, 2 Jul 2008 20:59:32 +0000 Subject: [PATCH] ActionItem489: check if profile is a person --- app/views/blocks/profile_info.rhtml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/views/blocks/profile_info.rhtml b/app/views/blocks/profile_info.rhtml index 800ca23..2966df5 100644 --- a/app/views/blocks/profile_info.rhtml +++ b/app/views/blocks/profile_info.rhtml @@ -23,14 +23,16 @@ <% end %> -
-<%= - [ [ profile.city, 'locality' ], - [ profile.state, 'region' ], - [ profile.country, 'country-name' ] - ].map{ |s,c| s =~ /^\s*$/ ? nil : content_tag( 'span', s, :class => c ) }.compact.join ' - ' -%> -
+<% if block.owner.person? %> +
+ <%= + [ [ profile.city, 'locality' ], + [ profile.state, 'region' ], + [ profile.country, 'country-name' ] + ].map{ |s,c| s =~ /^\s*$/ ? nil : content_tag( 'span', s, :class => c ) }.compact.join ' - ' + %> +
+<% end %>
<%= render :file => 'blocks/profile_info_actions/' + block.owner.class.name.underscore %> -- libgit2 0.21.2