Commit 8d0004fb60952d76ec787bc0ad1add1a08103f70

Authored by Antonio Terceiro
1 parent d1078127

ActionItem1044: displaying number of members for organizations

Showing 1 changed file with 5 additions and 3 deletions   Show diff stats
app/views/profile/_organization.rhtml
... ... @@ -3,13 +3,15 @@
3 3 </tr>
4 4 <%= display_field(_('Name:'), profile, :name) { |name| link_to name, profile.url } %>
5 5 <tr>
6   - <td colspan='2'>
7   - <%= link_to _('Members'), :controller => 'profile', :action => 'members' %>
  6 + <td></td>
  7 + <td>
  8 + <%= link_to _('Members') + " (%s)" % profile.members.count, :controller => 'profile', :action => 'members' %>
8 9 </td>
9 10 </tr>
10 11 <% if profile.kind_of?(Enterprise) && !profile.environment.enabled?('disable_products_for_enterprises') %>
11 12 <tr>
12   - <td colspan='2'>
  13 + <td></td>
  14 + <td>
13 15 <%= link_to _('Products/Services'), :controller => 'catalog', :action => 'index' %>
14 16 </td>
15 17 </tr>
... ...