From 4c2b8622e5f8feb4827bfb016915d0f7888ce1e6 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 26 May 2009 17:55:02 -0300 Subject: [PATCH] ActionItem1041: better "Enterprise" section --- app/views/profile/_person.rhtml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/profile/_person.rhtml b/app/views/profile/_person.rhtml index 002c4aa..faf638d 100644 --- a/app/views/profile/_person.rhtml +++ b/app/views/profile/_person.rhtml @@ -21,10 +21,15 @@ <%= display_field(_('Organization:'), profile, :organization) %> <%= display_field(_('Organization website:'), profile, :organization_website) { |url| link_to(url, url) }%> + + <% if !profile.enterprises.empty? %> - <% profile.enterprises.each_with_index do |item, i| %> + + <%= __('Enterprises') %> + + <% profile.enterprises.each do |item| %> - <%= __('Enterprises:') if (i == 0) %> + <%= button 'menu-enterprise', item.name, item.url %> <% end %> -- libgit2 0.21.2