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