Commit 4c2b8622e5f8feb4827bfb016915d0f7888ce1e6

Authored by Antonio Terceiro
1 parent 72311d9d

ActionItem1041: better "Enterprise" section

Showing 1 changed file with 7 additions and 2 deletions   Show diff stats
app/views/profile/_person.rhtml
... ... @@ -21,10 +21,15 @@
21 21 </tr>
22 22 <%= display_field(_('Organization:'), profile, :organization) %>
23 23 <%= display_field(_('Organization website:'), profile, :organization_website) { |url| link_to(url, url) }%>
  24 +
  25 +
24 26 <% if !profile.enterprises.empty? %>
25   - <% profile.enterprises.each_with_index do |item, i| %>
  27 + <tr>
  28 + <th colspan='2'><%= __('Enterprises') %></th>
  29 + </tr>
  30 + <% profile.enterprises.each do |item| %>
26 31 <tr>
27   - <td class='field-name'><%= __('Enterprises:') if (i == 0) %></td>
  32 + <td></td>
28 33 <td><%= button 'menu-enterprise', item.name, item.url %></td>
29 34 </tr>
30 35 <% end %>
... ...